INIT RN 后启动app出现错误
来源:1-1 课程学习指南(一定要最先看)
kuangmichael07
2018-09-11
我按照学习指南init的RN 0.40.0版本貌似已经太旧了,run-ios之后出现这个错误:
Installing build/Build/Products/Debug-iphonesimulator/gp2.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/gp2.app/Info.plist
Print: Entry, “:CFBundleIdentifier”, Does Not Exist
但是init最新版的就不会。是不是第一章和第四章的内容要删掉了?
1回答
-
CrazyCodeBoy
2018-09-11
问题分析
出现此错误一般是iOS项目中Native代码部分报错;
解决方案
用XCode打开iOS项目然后通过点击红色按钮快速定位到出现问题的地方,根据提示进行修改
如果项目是基于RN0.40版本,可能会提示如下错误,解决版本就是将_total转成int即可:[_total intValue]
00
相似问题