reactjs 获取我们运行了“xcodebuild”命令,但当我在Visual Studio上运行现有代码时,它退出并返回错误代码65

ejk8hzay  于 4个月前  发布在  React
关注(0)|答案(1)|浏览(58)

我已经从github克隆了一个repo,我试图使用Visual Studio Code运行它。我能够在Android上运行它,但是当我试图在iOS上使用npx react-native run-ios命令运行它时,我得到了以下错误

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 NuSocial.xcworkspace.
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace NuSocial.xcworkspace -configuration Debug -scheme NuSocial -destination id=B405F422-198F-452F-A774-05044D5780CB

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Prepare packages

Computing target dependency graph and provisioning inputs

字符串
下面是完整的错误

r: unable to open configuration settings file
note: Building targets in dependency order
error: Unable to load contents of file list: '/Target Support Files/Pods-NuSocial/Pods-NuSocial-frameworks-Debug-input-files.xcfilelist' (in target 'NuSocial' from project 'NuSocial')
error: Unable to load contents of file list: '/Target Support Files/Pods-NuSocial/Pods-NuSocial-frameworks-Debug-output-files.xcfilelist' (in target 'NuSocial' from project 'NuSocial')
error: Unable to load contents of file list: '/Target Support Files/Pods-NuSocial/Pods-NuSocial-resources-Debug-input-files.xcfilelist' (in target 'NuSocial' from project 'NuSocial')
error: Unable to load contents of file list: '/Target Support Files/Pods-NuSocial/Pods-NuSocial-resources-Debug-output-files.xcfilelist' (in target 'NuSocial' from project 'NuSocial')
warning: Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'NuSocial' from project 'NuSocial')
warning: Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'NuSocial' from project 'NuSocial')
warning: Run script build phase 'Upload Debug Symbols to Sentry' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'NuSocial' from project 'NuSocial')
warning: Run script build phase '[CP-User] [RNFB] Core Configuration' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'NuSocial' from project 'NuSocial')
warning: Run script build phase '[CP] Copy Pods Resources' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'NuSocial' from project 'NuSocial')
warning: Run script build phase '[CP] Embed Pods Frameworks' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'NuSocial' from project 'NuSocial')
warning: Unable to read contents of XCFileList '/Target Support Files/Pods-NuSocial/Pods-NuSocial-frameworks-Debug-output-files.xcfilelist' (in target 'NuSocial' from project 'NuSocial')
warning: Unable to read contents of XCFileList '/Target Support Files/Pods-NuSocial/Pods-NuSocial-resources-Debug-output-files.xcfilelist' (in target 'NuSocial' from project 'NuSocial')

** BUILD FAILED **

hujrc8aj

hujrc8aj1#

1.如果您还没有安装可可pod,则必须安装它们。
sudo宝石安装椰子足
1.运行cd ios
1.运行pod install // mac with intel chip
1.运行arch -x86_64 pod install // mac with m1 chip
1.光盘..
1.删除生成文件夹
1.运行react-native run-ios

如果问题仍然存在

1.再次删除生成文件夹
1.在x-code中打开/ios文件夹
1.导航文件->项目设置->构建系统->更改(共享工作区设置和每个用户工作区设置):构建系统->旧版构建系统`

Github链接:

  1. https://github.com/facebook/react-native/issues/33477
  2. https://github.com/facebook/react-native/issues/25240
    您可以按照以下步骤找到问题的答案。

相关问题