This site article is Li Himi original, reproduced must be clearly noted:
Reprinted from "Black Rice gamedev Block" original link: http://www.himigame.com/react-native/2315.html
Himi recently encountered command/bin/sh failed with exit code 1 error in a real machine run, the emulator runs without any problems. This issue has been resolved, where the solution is shared.
First look at the error log, such as:
650) this.width=650; "class=" Alignnone size-medium wp-image-2316 "src=" http://www.himigame.com/wp-content/uploads/ 2016/06/112321-300x149.png "alt=" 112321 "width=" "height=" 149 "style=" margin:0px;padding:1px;border:1px solid RGB (97,146,140); font-family:inherit;font-size:inherit;font-style:inherit;line-height:inherit;height:auto; "/>
It is mainly the underlined part:
1.PhaseScriptExecution bundle\ react\ native\ code\ and\ images ...
2. Command/bin/sh failed with exit code 1
Workaround:
1. Select item, Targets->build phases-> "Bundle React Native code and images"
2. Tick "Run script only when installing", such as:
650) this.width=650; "class=" Alignnone size-medium wp-image-2320 "src=" http://www.himigame.com/wp-content/uploads/ 2016/06/34231-300x104.png "alt=" 34231 "width=" "height=" 104 "style=" margin:0px;padding:1px;border:1px solid RGB ( 97,146,140); font-family:inherit;font-size:inherit;font-style:inherit;line-height:inherit;height:auto; "/>
3.Clean Project, re-run it.
This article is from the "Li Himi" blog, please be sure to keep this source http://xiaominghimi.blog.51cto.com/2614927/1785442
"REACT NATIVE Series Tutorial Ten" Real machine operation error command/bin/sh FAILED with EXIT CODE 1 workaround