我是React Native的新手,在运行 react-native run-ios
时收到编译时警告 .
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/OneModelPlace.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
我在Xcode中设置了一些配置但不想使用 react native upgrade
. 有没有其他方法来运行我的项目?
2 回答
发生这种情况时,我尝试了几件事情:
关闭你的模拟器,关闭你的打包器 .
rm -rf node_modules && yarn
rm -rf ios/build
删除Xcode派生数据( Xcode > Preferences > Locations 中可用的路径)
react-native run-ios
我做了 following things 这解决了我的问题
在Xcode中打开我的项目
编译并清理了我的项目
如果这会导致构建中出现问题,请删除所有外部库
重建项目并使用Xcode运行项目
你完成了