我正在笔记本电脑中设置React-Native。我用于不同工具的版本如下: Node.js:v10.7.0 react-native-cli:2.0.1 反应本机:0.56.0
在运行命令“ react-native run-ios”时,出现如下错误:
The following build commands failed:
CompileC /Users/mshikher/Documents/react-native-workspace/firstProject/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/firstProject.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/firstProject.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
我在StackOverflow中尝试了很多答案,但到目前为止没有任何效果。可能是这背后的问题。
我最近遇到的错误是:
The following build commands failed:
CompileC /Users/mshikher/Documents/react-native-workspace/secondProject/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/secondProject.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/secondProject.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
答案 0 :(得分:0)
我安装了与macOS 10.12.6兼容的xcode 9.2。这对我有用。