退出后,React Native将无法构建

时间:2018-07-22 13:45:40

标签: ios xcode react-native

因此,我已经下载并安装了最新版本的React native。然后,我创建了一个名为myApp的新项目,但是当我创建一个新项目并运行yarn eject并尝试在iOS上运行该项目时,我得到:

The following build commands failed:
    CompileC /Users/myuser/workspace/myApp/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/myApp.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/myApp.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

在react社区中搜索最常见的建议是确保路径中没有特殊字符,升级到最新的React Native版本,确保您正在运行最新的节点版本。我已经完成了所有这些工作,这是使用命令行工具全新创建的应用程序。我还能做什么?

0 个答案:

没有答案