react-native run-ios 出現錯誤:CFBundleIdentifier", Does Not Exist
来源:1-5 项目底部导航菜单开发
highlander
2018-07-14
老師您好,我是新購課的學員,我是在Mac開發,ios環境是 xcode 9.4.1 android環境使用 android-studio3
依照課程所說 react-native init imoc_gp —version 0.40.0;
執行 react-native run-android沒有任何問題
但執行 react-native run-ios 卻沒辦法執行,出現以下文字
CompileC /Users/highlander/rn/imoc_gp/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTJavaScriptLoader.o Base/RCTJavaScriptLoader.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/imoc_gp.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/imoc_gp.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
1回答
-
CrazyCodeBoy
2018-07-15
问题分析:
出现此错误一般是iOS项目中Native代码部分报错。
解决方案:
用XCode打开iOS项目然后通过点击红色按钮快速定位到出现问题的地方,根据提示进行修改
如果项目是基于RN0.40版本,可能会提示如下错误,解决版本就是将_total转成int即可:[_total intValue]
152018-07-20
相似问题