react0.45.0版本问题 An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
2017-06-16 14:17
2071 查看
The following build commands failed:
PhaseScriptExecution Install\ Third\ Party /Users/*****/sungithub/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/sungithub.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/sungithub.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
如果是因为下载了最新的react-native-cli,然后init的项目
在package.json里面,看到自己的react-native的版本是0.45.*以后的,出现这个错误
这是因为是0.45官方有重大改动,无法使用react-native init项目来启动,
直接react-native init mydemo --version 0.44.3指定之前的版本就可以了
当然相信后面会修复,也就没有这个问题了
PhaseScriptExecution Install\ Third\ Party /Users/*****/sungithub/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/sungithub.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/sungithub.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
如果是因为下载了最新的react-native-cli,然后init的项目
在package.json里面,看到自己的react-native的版本是0.45.*以后的,出现这个错误
这是因为是0.45官方有重大改动,无法使用react-native init项目来启动,
直接react-native init mydemo --version 0.44.3指定之前的版本就可以了
当然相信后面会修复,也就没有这个问题了
相关文章推荐
- 解决“An error was encountered while running (Domain = FBSOpenApplicationErrorDomain, Code = 4)”的问题
- IOS_XCODE6_beta7(An error was encountered while running (Domain = NSPOSIXErrorDomain, Code = 22)
- iOS模拟器问题: An error was encountered while running (Domain = FBSOpenApplicationErrorDomain, Code = 4)
- IOS_XCODE6_beta7(An error was encountered while running (Domain = NSPOSIXErrorDomain, Code = 22)
- An error was encountered while running(Domain=FBSOpenApplicationErrorDomain, Code=4)
- An error was encountered while running (Domain = NSPOSIXErrorDomain, Code = 3)解决方法
- 解决方案:An error was encountered while running(Domain=FBSOpenApplicationErrorDomain, Code=4)
- An error was encountered while running(Domain=LaunchSerivcesError, Code=0)
- An error was encountered while running (Domain = NSPOSIXErrorDomain, Code = 3)
- An error was encountered while running (Domain = NSPOSIXErrorDomain, Code = 3)
- An error was encountered while running (Domain = FBSOpenApplicationErrorDomain, Code = 4)
- An error was encountered while running (Domain = LaunchServicesError, Code = 0)
- An error was encountered while running (Domain = LaunchServicesError, Code = 0)
- An error was encountered while running(Domain=LaunchSerivcesError, Code=0)
- iOS:An error was encountered while running (Domain = FBSOpenApplicationErrorDomain, Code = 4)
- 解决vs2008 sp1 创建工作流遇到“An error was encountered during code generation……”的问题
- iOS An error was encountered while running (Domain = FBSOpenApplicationErrorDomain, Code = 4)
- An error was encountered while running (Domain = FBSOpenApplicationErrorDomain, Code = 4)
- An error was encountered while running (Domain = FBSOpenApplicationErrorDomain, Code = 4)
- An error was encountered while running(Domain=LaunchSerivcesError, Code=0)