React native React本机生成在终端中失败,但在Xcode中运行正常

React native React本机生成在终端中失败,但在Xcode中运行正常,react-native,React Native,当我尝试在终端中运行我的react本机生成时,出现以下错误: clang-4.0: error: no such file or directory: '/Users/myname/project-x/ios/build/ProjectX/Index/DataStore' error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To deb

当我尝试在终端中运行我的react本机生成时,出现以下错误:

    clang-4.0: error: no such file or directory: '/Users/myname/project-x/ios/build/ProjectX/Index/DataStore'

     error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening ProjectX.xcworkspace
生成命令信息失败:

    The following build commands failed:
CompileC /Users/danstein/project-x/ios/build/ProjectX/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/double-conversion.build/Objects-normal/x86_64/diy-fp.o /Users/myname/project-x/node_modules/react-native/third-party/double-conversion-1.1.6/src/diy-fp.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/danstein/project-x/ios/build/ProjectX/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/double-conversion.build/Objects-normal/x86_64/bignum-dtoa.o /Users/myname/project-x/node_modules/react-native/third-party/double-conversion-1.1.6/src/bignum-dtoa.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/danstein/project-x/ios/build/ProjectX/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/double-conversion.build/Objects-normal/x86_64/cached-powers.o /Users/myname/project-x/node_modules/react-native/third-party/double-conversion-1.1.6/src/cached-powers.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/danstein/project-x/ios/build/ProjectX/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/double-conversion.build/Objects-normal/x86_64/bignum.o /Users/myname/project-x/node_modules/react-native/third-party/double-conversion-1.1.6/src/bignum.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
4次失败

这是为我团队的另一个人工作。在Xcode中,一切都可以正常构建和运行


有时我在运行create react应用程序时会遇到问题,因为我使用的是anaconda python安装,所以我必须“杀死主机”,但这并不能解决此问题。

转到您的AppDelegate.m文件并更改jsCodeLocation。

谢谢,将其更改为what and where?这不是答案。