【问题标题】:React Native Failed to build iOS project. We ran “xcodebuild” command but it exited with error code 65. The problem is with all projectsReact Native 无法构建 iOS 项目。我们运行了“xcodebuild”命令,但它以错误代码 65 退出。问题出在所有项目上
【发布时间】:2021-07-23 05:06:17
【问题描述】:

尝试使用 React-native run-ios 运行任何项目时出现以下错误:

我已经尝试了所有解决方案,还有更多,但没有任何效果。

error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65

错误无法构建 iOS 项目。我们运行了“xcodebuild”命令,但它以错误代码 65 退出。要进一步调试构建日志,请考虑通过打开 proj.xcworkspace 使用 Xcode.app 构建您的应用程序。使用 --verbose 标志运行 CLI 以获取更多详细信息。

命令行调用: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace proj.xcworkspace -configuration Debug -scheme proj -destination id=13B67855-76F9-4755-A1A5-7B5AEBC6D1C5

命令行中的用户默认值: IDEPackageSupportUseBuiltinSCM = 是

准备构建 警告:旧版构建系统将在未来的版本中删除。您可以在文件 > 工作区设置中配置选定的构建系统和此弃用消息。 === 使用配置调试构建项目 Pod 的目标 glog ===

检查依赖关系

Libtool /Users/user/Work/weber/mobile-app/proj-mobile/ios/build/Debug-iphonesimulator/glog/libglog.a 正常 x86_64 cd /Users/user/Work/weber/mobile-app/proj-mobile/ios/Pods 导出 IPHONEOS_DEPLOYMENT_TARGET=10.0 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/ usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/user/Library/Android/sdk/tools:/Users/user/Library/Android/sdk/platform-工具” /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -D -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/ SDKs/iPhoneSimulator14.5.sdk -L/Users/user/Work/weber/mobile-app/proj-mobile/ios/build/Debug-iphonesimulator/glog -filelist /Users/user/Work/weber/mobile-app/ proj-mobile/ios/build/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/x86_64/glog.LinkFileList -o /Users/user/Work/weber/mobile-app/proj-mobile/ios/ build/Debug-iphonesimulator/glog/libglog.a

=== BUILD TARGET DoubleConversion of PROJECT Pods WITH CONFIGURATION Debug === 检查依赖关系

Libtool /Users/user/Work/weber/mobile-app/proj-mobile/ios/build/Debug-iphonesimulator/DoubleConversion/libDoubleConversion.a 正常 x86_64 cd /Users/user/Work/weber/mobile-app/proj-mobile/ios/Pods 导出 IPHONEOS_DEPLOYMENT_TARGET=10.0 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/ usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/user/Library/Android/sdk/tools:/Users/user/Library/Android/sdk/platform-工具” /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -D -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/ SDKs/iPhoneSimulator14.5.sdk -L/Users/user/Work/weber/mobile-app/proj-mobile/ios/build/Debug-iphonesimulator/DoubleConversion -filelist /Users/user/Work/weber/mobile-app/ proj-mobile/ios/build/Pods.build/Debug-iphonesimulator/DoubleConversion.build/Objects-normal/x86_64/DoubleConversion.LinkFileList -o /Users/user/Work/weber/mobile-app/proj-mobile/ios/ build/Debug-iphonesimulator/DoubleConversion/libDoubleConversion.a

=== BUILD AGGREGATE TARGET boost-for-react-native OF PROJECT Pods WITH CONFIGURATION Debug ===

检查依赖关系

=== 构建目标 React-Core-AccessibilityResources 带有配置调试的项目 Pod === 检查依赖关系

ProcessInfoPlistFile /Users/user/Work/weber/mobile-app/proj-mobile/ios/build/Debug-iphonesimulator/React-Core/AccessibilityResources.bundle/Info.plist Target\ Support\ Files/React-Core/ ResourceBundle-AccessibilityResources-React-Core-Info.plist cd /Users/user/Work/weber/mobile-app/proj-mobile/ios/Pods export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/ usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/user/Library/Android/sdk/tools:/Users/user/Library/Android/sdk/platform-工具” builtin-infoPlistUtility /Users/user/Work/weber/mobile-app/proj-mobile/ios/Pods/Target\ Support\ Files/React-Core/ResourceBundle-AccessibilityResources-React-Core-Info.plist -expandbuildsettings -format binary -platform iphonesimulator -o /Users/user/Work/weber/mobile-app/proj-mobile/ios/build/Debug-iphonesimulator/React-Core/AccessibilityResources.bundle/Info.plist

ProcessProductPackaging "" /Users/user/Work/weber/mobile-app/proj-mobile/ios/build/Pods.build/Debug-iphonesimulator/React-Core-AccessibilityResources.build/AccessibilityResources.bundle-Simulated.xcent cd /Users/user/Work/weber/mobile-app/proj-mobile/ios/Pods export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/ usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/user/Library/Android/sdk/tools:/Users/user/Library/Android/sdk/platform-工具”

【问题讨论】:

标签: ios reactjs xcode react-native


【解决方案1】:

我有不同的外观错误,也与您在此处给出的错误相似,每次都是由于 '准备构建失败,遗留构建等'。

我只是将构建系统从旧系统更改为新系统,所有项目都运行顺利。试试看,让我知道它是否也适合你。

设置路径为:Xcode->文件->工作空间设置->构建系统

【讨论】:

    猜你喜欢
    • 2021-04-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-07
    • 1970-01-01
    • 1970-01-01
    • 2021-11-14
    • 1970-01-01
    相关资源
    最近更新 更多