首页 文章

ReactNative无法将构建部署到iOS模拟器,但会将其部署到Android模拟器

提问于
浏览
0

ReactNative无法将构建部署到iOS模拟器,但会将其部署到Android模拟器

随附的屏幕截图显示了这两者 .

脚步:

  • 创建了本机应用程序

react-native init proto

  • 在我启动模拟器后在Android模拟器上运行应用程序

react-native run-android

这在Android模拟器上正常运行

  • 在iOS simmulator上运行应用程序

反应原生的run-ios

根据屏幕截图,这会产生错误

Error

** BUILD FAILED **


The following build commands failed:
    CompileC /Users/dinob/reactnativework/proto/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTShadowView+Internal.o Views/RCTShadowView+Internal.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Installing build/Build/Products/Debug-iphonesimulator/proto.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/proto.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Versions

MacBookPro OSX El Capitain

react-native 0.55.3

react-native-cli 2.0.1

npm 5.5.1

node v8.9.1

watchman 4.9.0

enter image description here

enter image description here

1 回答

相关问题