在使用React Native最新版0.46.1的時(shí)候發(fā)現(xiàn)了問(wèn)題:
Failed to install the requested applicationAn application bundle was not found at the provided path.Provide a valid path to the desired application bundle.Print: Entry, ":CFBundleIdentifier", Does Not ExistCommand failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/ReactNativexx.app/Info.plistPrint: Entry, ":CFBundleIdentifier", Does Not Exist
使用各種方法都沒(méi)有解決
比如react-native upgrade
后面終于找到了原因
node_modules/react-native/ios-install-third-party.sh執(zhí)行結(jié)果不正確缩搅,可能是網(wǎng)絡(luò)原因抗果。
手動(dòng)下載
https://github.com/google/glog/archive/v0.3.4.tar.gz
https://github.com/google/double-conversion/archive/v1.1.5.tar.gz
https://github.com/react-native-community/boost-for-react-native/releases/download/v1.63.0-0/boost_1_63_0.tar.gz
https://github.com/facebook/folly/archive/v2016.09.26.00.tar.gz
1.放進(jìn) ~/.rncache/.
2.解壓到node_modules/react-native/third-party/
在xcode中運(yùn)行,會(huì)發(fā)現(xiàn)報(bào)錯(cuò),缺少glob config.h
1.進(jìn)入終端cd node_modules/react-native/third-party/glog-0.3.4
2.運(yùn)行../../scripts/ios-configure-glog.sh
會(huì)發(fā)現(xiàn)腳本幫忙生成了很多東西葵擎,包括config.h
再次在Xcode運(yùn)行,就成功了码撰。