本站文章均为
李华明Himi 原创,转载务必在明显处注明:
转载自【黑米GameDev街区】 原文链接: http://www.himigame.com/react-native/2315.html
转载自【黑米GameDev街区】 原文链接: http://www.himigame.com/react-native/2315.html
Himi最近在真机运行遇到 Command /bin/sh failed with exit code 1 的错误, 模拟器运行没有任何问题。此问题已解决,这里分享下解决方案。
先来看下错误日志,如下图:
主要是划线的部分:
1.PhaseScriptExecution Bundle\ React\ Native\ code\ and\ p_w_picpaths ……
2. Command /bin/sh failed with exit code 1
解决方法:
1. 选中项目 -> TARGETS->Build Phases-> “Bundle React Native code and p_w_picpaths”
2.勾选 “Run script only when installing” ,如下图:
3.Clean 项目,重新运行即可。
转载于:https://blog.51cto.com/xiaominghimi/1785442