[React-Native]编译失败Print: Entry,
2018-08-30 本文已影响0人
猎手Andy
问题描述
react-native run-ios
编译失败,提示Print: Entry, ":CFBundleIdentifier", Does Not Exist。
但在Xcode中Native编译运行OK,不存在代码错误。
解决方法
-
rm -rf node_modules
-
rm -rf ~/.rncache
-
用Xcode打开当前项目, 找到File|Project Setting或Workspace Setting|找到Derived Data下方的Advanced,点击打开。
选择Custom,下拉选择Relative to Workspace,在路径前方增加"build"
Products修改为build/Build/Products
Intermediates修改为:build/Build/Intermediates
image
-
npm install
或 `yarn`` -
react-native link
-
react-native run-ios
-
succeed!