【REACT NATIVE 系列教程之十】真机运行报错COMMAND /BIN/SH FAILED WITH EXIT CODE 1 的解决方法

本站文章均为  李华明Himi 原创,转载务必在明显处注明: 
转载自【黑米GameDev街区】 原文链接:  http://www.himigame.com/react-native/2315.html

Himi最近在真机运行遇到  Command /bin/sh failed with exit code 1  的错误, 模拟器运行没有任何问题。此问题已解决,这里分享下解决方案。

先来看下错误日志,如下图:

112321

主要是划线的部分:

1.PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images ……

2. Command /bin/sh failed with exit code 1

解决方法:

1. 选中项目 -> TARGETS->Build Phases-> “Bundle React Native code and images”

2.勾选 “Run script only when installing” ,如下图:

34231

3.Clean 项目,重新运行即可。


猜你喜欢

转载自blog.csdn.net/xiaominghimi/article/details/51565430