rn问题汇总

1,xcrun: error: unable to find utility "instruments", not a developer tool or in PATH

参考资料:http://blog.csdn.net/u010411264/article/details/62888873

用web storm 运行react-native 工程时,出错:xcrun: error: unable to find utility "instruments", not a developer tool or in PATH

解决办法:

 

解决方法:在 终端执行如下命令 sudo xcode-select -s /Applications/Xcode.app/Contents/Developer/

注意:前提是你已经安装了xcode

~~!不解决这个   pod 'GLog'会报错(一脸懵逼~~!)

pod 'GLog', :podspec => '../node_modules/react-native/third-party-podspecs/GLog.podspec'  

 

 

2.导入yoga 开发库 运行iOS工程会报错

 

 导入yoga 开发库   运行iOS工程会报错    Implicit conversion loses integer precision: 'size_type' (aka 'unsigned long 之类的问题   

解决:在podfile文件里加入第三方库警告忽略 

# 忽略cocoapods里的警告

inhibit_all_warnings!

 

pod "yoga", :path => "../node_modules/react-native/ReactCommon/yoga"

 

然后可以正常运行iOS工程了

posted on 2018-01-24 14:52  yuzx  阅读(730)  评论(0编辑  收藏  举报

导航