Shoutem:“ react-native run-ios”构建失败

时间:2018-10-22 05:52:55

标签: ios react-native shoutem

我一直在遵循shoutem教程here,但无法设置本地环境。关于本教程,我已将所有内容安装在“前提条件”下,克隆了在构建器中制作的空白shoutem应用程序,并按照以下步骤为ios here运行本地环境。运行“ react-native run-ios”会出现以下错误:

    error: Build input file cannot be found: '/Users/USERNAME/TestApp/node_modules/react-native/third-party/double-conversion-1.1.5/src/diy-fp.cc'



** BUILD FAILED **


The following build commands failed:

    CompileC /Users/USERNAME/TestApp/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/double-conversion.build/Objects-normal/x86_64/diy-fp.o /Users/USERNAME/TestApp/node_modules/react-native/third-party/double-conversion-1.1.5/src/diy-fp.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Installing build/Build/Products/Debug-iphonesimulator/TestApp.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The bundle identifier of the application could not be determined.
Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/TestApp.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

我尝试卸载并重新安装node_modules,并升级react-native。我尝试了许多其他建议,其中一些让我更改了xcode的构建路径,但没有一个奏效(不幸的是,我尝试了太多记不起来)。我没有足够的经验来了解到底发生了什么。

我当前的版本:

react-native-cli:2.0.1
react-native:0.56.0
纱:1.10.1
npm:6.4.1
xcode:10

0 个答案:

没有答案