【发布时间】:2018-07-28 20:29:18
【问题描述】:
我正在笔记本电脑中设置 React-Native。我用于不同工具的版本如下: Node.js:v10.7.0 反应原生 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
【问题讨论】:
-
这对我不起作用。我仍然遇到同样的错误。我将 xocde 升级到 8.2.1 ,但我仍然面临同样的问题。
-
你试过 react-native run-ios --simulator="iPhone 7" 吗?
-
不,这对我不起作用。我用最近遇到的错误更新了问题。
标签: react-native xcode8 react-native-ios