将 XCode 更新为 XCode 12.2 / React Native 0.63.2 构建失败

Posted

技术标签:

【中文标题】将 XCode 更新为 XCode 12.2 / React Native 0.63.2 构建失败【英文标题】:Updated XCode to XCode 12.2 / React Native 0.63.2 Build Fails 【发布时间】:2021-03-22 10:58:00 【问题描述】:

我尝试过更新 XCode 命令行、更新 Cocoa Pod、更新位置和构建位置(尝试过 Xcode Default 和 Legacy)。这是错误日志:

react-native run-ios info 找到 Xcode 工作区“iPlayuListen.xcworkspace” 信息构建(使用“xcodebuild -workspace iPlayuListen.xcworkspace -configuration Debug -scheme iPlayuListen -destination id=70107D6F-22AC-4326-A24C-EE0F879B7DE6”) ..................................................... ………………………………………………………………………………………… 错误 无法构建 iOS 项目。我们运行了“xcodebuild”命令,但它以错误代码 65 退出。要进一步调试构建日志,请考虑通过打开 iPlayuListen.xcworkspace 使用 Xcode.app 构建您的应用程序。使用 --verbose 标志运行 CLI 以获取更多详细信息。 命令行调用: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace iPlayuListen.xcworkspace -configuration Debug -scheme iPlayuListen -destination id=70107D6F-22AC-4326-A24C-EE0F879B7DE6 注意:使用新的构建系统 注意:并行构建目标 注:规划建设 注意:使用磁盘中的构建描述 PhaseScriptExecution Start\ Packager /Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Intermediates.noindex/iPlayuListen.build/Debug-iphonesimulator/iPlayuListen.build/Script-FD10A7F022414F080027D42C.sh(在目标'iPlayuListen来自项目“iPlayuListen”) cd /Users/iplayulisten/Projects/IPUL/2020/ipul-rn-ios-app/ios /bin/sh -c /Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Intermediates.noindex/iPlayuListen.build/Debug-iphonesimulator/iPlayuListen.build/Script-FD10A7F022414F080027D42C.sh 连接到 localhost 端口 8081 [tcp/sunproxyadmin] 成功! Ld /Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products/Debug-iphonesimulator/iPlayuListen.app/iPlayuListen normal(在项目'iPlayuListen'的目标'iPlayuListen'中) cd /Users/iplayulisten/Projects/IPUL/2020/ipul-rn-ios-app/ios /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios12 .0-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk -L/Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla /Build/Products/Debug-iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault .xctoolchain/usr/lib/swift-5.0/iphonesimulator -L/Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products/Debug-iphonesimulator/BVLinearGradient -L/Users/iplayulisten/Library/Developer /Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products/Debug-iphonesimulator/BoringSSL-GRPC -L/Users /iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products/Debug-iphonesimulator/CocoaAsyncSocket -L/Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products-simulator/ /DoubleConversion -L/Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products/Debug-iphonesimulator/FBReactNativeSpec -L/Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrv/ /Products/Debug-iphonesimulator/FirebaseAuth -L/Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products/Debug-iphonesimulator/FirebaseCore -L/Users/iplayulisten/Library/Developer/Xcode/DerivedData /iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products/Debug-iphonesimulator/FirebaseCoreDiagnostics -L/Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqix kdtzqrvwqgmoqla/Build/Products/Debug-iphonesimulator/FirebaseDatabase -L/Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products/Debug-iphonesimulator/FirebaseFirestore -L/Users/iplayulisten/Library/Developer/ Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products/Debug-iphonesimulator/FirebaseInstallations -L/Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products/Debug-iphonesimulator/FirebaseInstanceID -L/Users/ iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products/Debug-iphonesimulator/FirebaseMessaging-L/Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products/-Debugiphonesimulator/ FirebaseStorage -L/Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products/Debug-iphonesimulator/Flipper -L/User s/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products/Debug-iphonesimulator/Flipper-DoubleConversion-L/Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla// Debug-iphonesimulator/Flipper-Folly -L/Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products/Debug-iphonesimulator/Flipper-Glog -L/Users/iplayulisten/Library/Developer/Xcode/ DerivedData/iPlL/Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products/Debug-iphonesimulator/react-native-safe-area-context-L/Users/iplayulisten/Library/Developer/Xcode/ DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products/Debug-iphonesimulator/react-native-slider -L/Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products/Debug-iphonesimulator/react-native-旋转套件 - L/Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products/Debug-iphonesimulator/react-native-track-player-L/Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen- auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products/Debug-iphonesimulator/react-native-video -L/Users/iplayulisten/Projects/IPUL/2020/ipul-rn-ios-app/ios/Pods/CocoaLibEvent/lib -L/Users/iplayulisten/项目/IPUL/2020/ipul-rn-ios-app/ios/Pods/OpenSSL-Universal/ios/lib -F/Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products/Debug- iphonesimulator -F/Users/iplayulisten/Projects/IPUL/2020/ipul-rn-ios-app/ios/Pods/FirebaseAnalytics/Frameworks -F/Users/iplayulisten/Projects/IPUL/2020/ipul-rn-ios-app/ ios/Pods/GoogleAppMeasurement/Frameworks -filelist /Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Intermediates.noindex/iPlayuListen.build/Debug-iphonesimulator /iPlayuListen.build/Objects-normal/x86_64/iPlayuListen.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/iplayulisten/Library /Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Intermediates.noindex/iPlayuListen.build/Debug-iphonesimulator/iPlayuListen.build/Objects-normal/x86_64/iPlayuListen_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lBVLinearGradient -lBoringSSL-GRPC -lCocoaAsyncSocket -lDoubleConversion -lFBReactNativeSpec -lFirebaseAuth -lFirebaseCore -lFirebaseCoreDiagnostics -lFirebaseDatabase -lFirebaseFirestore -lFirebaseInstallations -lFirebaseInstanceID -lFirebaseMessaging -lFirebase-FlStorage -lFlipper DoubleConversion -lFlipper-Folly -lFlipper-Glog -lFlipper-PeerTalk -lFlipper-RSocket -lFlipperKit -lFolly -lGTMSessionFetcher -lGoogleDataTransport -lGoogleUtilities -lPromisesObjC -lProtobuf -lRCTTypeSafety -lRNCAsyncStorage -lRNCMaskedView -lRNCPushNotificationIOS -lRNFBApp -lRNFBAuth -lRNFBDatabase -lRNFBFirestore -lRNFBMessaging -lRNFBStorage -lRNFastImage -lRNGestureHandler -lRNImageCropPicker -lRNInAppBrowser -lRNReanimated -lRNScreens -lRNSharedElement -lRNSnackbar -lRNVectorIcons -lReact核-lReact -CoreModules -lReact-RCTAnimation -lReact-RCTBlob -lReact-RCTImage -lReact-RCTLinking -lReact-RCTNetwork -lReact-RCTSettings -lReact-RCTText -lReact-RCTVibration -lReact-cxxreact -lReact-jsi -lReact-jsiexecutor -lReact-jsinspector -lReactCommon -lReactNativeART -lSDWebImage -lSDWebImageWebPCoder -lTOCropViewController -lYoga -lYogaKit -labseil -lc++ -lcrypto -levent -levent_core -levent_extra -levent_pthreads -lgRPC-C++ -lgRPC-Core -lglog -licucore -lleveldb-library -llibwebp -lnanopb -lreact -native-blur -lreact-native-camera -lreact-native-image-picker -lreact-native-safe-area-context -lreact-native-slider -lreact-native-spink它 -lreact-native-track-player -lreact-native-video -lsqlite3 -lssl -lstdc++ -lz -framework AudioToolbox -framework CFNetwork -framework CoreTelephony -framework FIRAnalyticsConnector -framework FirebaseAnalytics -framework Foundation -framework GoogleAppMeasurement -framework ImageIO -framework javascriptCore -framework MobileCoreServices -framework Photos -framework QuartzCore -framework SafariServices -framework Security -framework StoreKit -framework SystemConfiguration -framework UIKit -weak_framework UserNotifications -ObjC -lc++ -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/iplayulisten/Library/ Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Intermediates.noindex/iPlayuListen.build/Debug-iphonesimulator/iPlayuListen.build/iPlayuListen.app-Simulated.xcent -lPods-iPlayuListen -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /用户/iplayulisten/库/开发者/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtz qrvwqgmoqla/Build/Intermediates.noindex/iPlayuListen.build/Debug-iphonesimulator/iPlayuListen.build/Objects-normal/x86_64/iPlayuListen_dependency_info.dat -o /Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/ Products/Debug-iphonesimulator/iPlayuListen.app/iPlayuListen ld:警告:找不到或使用自动链接库“swiftCoreMIDI” ld:警告:找不到或使用自动链接库“swiftUniformTypeIdentifiers” 架构 x86_64 的未定义符号: “_swift_FORCE_LOAD$_swiftUniformTypeIdentifiers”,引用自: swift_FORCE_LOAD$swiftUniformTypeIdentifiers$_react_native_track_player 在 libreact-native-track-player.a(AVPlayerObserver.o) _swift_FORCE_LOAD$swiftUniformTypeIdentifiers$_react_native_track_player 在 libreact-native-track-player.a(RNTrackPlayer.o) _swift_FORCE_LOAD$swiftUniformTypeIdentifiers$_react_native_track_player 在 libreact-native-track-player.a(AVPlayerItemObserver.o) _swift_FORCE_LOAD$swiftUniformTypeIdentifiers$_react_native_track_player 在 libreact-native-track-player.a(Track.o) _swift_FORCE_LOAD$swiftUniformTypeIdentifiers$_react_native_track_player 在 libreact-native-track-player.a(APError.o) _swift_FORCE_LOAD$swiftUniformTypeIdentifiers$_react_native_track_player 在 libreact-native-track-player.a(AudioItem.o) swift_FORCE_LOAD$swiftUniformTypeIdentifiers$_react_native_track_player 在 libreact-native-track-player.a(AudioPlayer.o) ... (也许你的意思是:_swift_FORCE_LOAD$swiftUniformTypeIdentifiers$_react_native_track_player) “_swift_FORCE_LOAD$_swiftCoreMIDI”,引用自: _swift_FORCE_LOAD$swiftCoreMIDI$_react_native_track_player 在 libreact-native-track-player.a(AVPlayerObserver.o) _swift_FORCE_LOAD$swiftCoreMIDI$_react_native_track_player 在 libreact-native-track-player.a(RNTrackPlayer.o) _swift_FORCE_LOAD$swiftCoreMIDI$_react_native_track_player 在 libreact-native-track-player.a(AVPlayerItemObserver.o) _swift_FORCE_LOAD$swiftCoreMIDI$_react_native_track_player 在 libreact-native-track-player.a(Track.o) _swift_FORCE_LOAD$swiftCoreMIDI$_react_native_track_player 在 libreact-native-track-player.a(APError.o) _swift_FORCE_LOAD$swiftCoreMIDI$_react_native_track_player 在 libreact-native-track-player.a(AudioItem.o) _swift_FORCE_LOAD$swiftCoreMIDI$_react_native_track_player 在 libreact-native-track-player.a(AudioPlayer.o) ... (也许你的意思是:_swift_FORCE_LOAD$swiftCoreMIDI$_react_native_track_player) ld:未找到架构 x86_64 的符号 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 8.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“FirebaseAuth”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 6.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“OpenSSL-Universal”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 8.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“GoogleAppMeasurement”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 8.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“FirebaseCore”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 8.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“RNImageCropPicker-QBImagePicker”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 5.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“leveldb-library”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 6.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“libwebp”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 8.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“CocoaLibEvent”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 8.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“GoogleDataTransport”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 8.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“GoogleUtilities”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 8.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“FirebaseInstanceID”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 8.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“TOCropViewController-TOCropViewControllerBundle”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 8.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“react-native-video”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 8.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“FirebaseCoreDiagnostics”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 5.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“CocoaAsyncSocket”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 8.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“SDWebImageWebPCoder”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 7.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“abseil”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 8.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“YogaKit”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 4.3,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“nanopb”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 8.4,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“Flipper-PeerTalk”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 7.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“react-native-image-picker”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 7.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“gRPC-Core”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 7.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“BoringSSL-GRPC”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 8.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“FirebaseDatabase”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 8.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“Flipper”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 8.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“react-native-blur”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 7.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“gRPC-C++”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 8.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“Flipper-Folly”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 8.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“Firebase”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 8.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“FirebaseStorage”中) 警告:iOS 模拟器部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 7.0,但支持的部署目标版本范围为 9.0 到 14.2.99。 (在项目“Pods”的目标“react-native-spinkit”中) iPlays-MBP:ipul-rn-ios-app iplayulisten$ npm run ios iplayulisten@0.0.2 ios /Users/iplayulisten/Projects/IPUL/2020/ipul-rn-ios-app react-native run-ios info 找到 Xcode 工作区“iPlayuListen.xcworkspace” 信息构建(使用“xcodebuild -workspace iPlayuListen.xcworkspace -configuration Debug -scheme iPlayuListen -destination id=70107D6F-22AC-4326-A24C-EE0F879B7DE6”) ..................................................... ..................................... 错误 无法构建 iOS 项目。我们运行了“xcodebuild”命令,但它以错误代码 65 退出。要进一步调试构建日志,请考虑通过打开 iPlayuListen.xcworkspace 使用 Xcode.app 构建您的应用程序。使用 --verbose 标志运行 CLI 以获取更多详细信息。 命令行调用: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace iPlayuListen.xcworkspace -configuration Debug -scheme iPlayuListen -destination id=70107D6F-22AC-4326-A24C-EE0F879B7DE6 注意:使用新的构建系统 注意:并行构建目标 注:规划建设 注意:使用磁盘中的构建描述 PhaseScriptExecution Start\ Packager /Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Intermediates.noindex/iPlayuListen.build/Debug-iphonesimulator/iPlayuListen.build/Script-FD10A7F022414F080027D42C.sh(在目标'iPlayuListen来自项目“iPlayuListen”) cd /Users/iplayulisten/Projects/IPUL/2020/ipul-rn-ios-app/ios /bin/sh -c /Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Intermediates.noindex/iPlayuListen.build/Debug-iphonesimulator/iPlayuListen.build/Script-FD10A7F022414F080027D42C.sh 连接到 localhost 端口 8081 [tcp/sunproxyadmin] 成功! ** 构建失败 ** 以下构建命令失败: ld /Users/iplayulisten/Library/Developer/Xcode/DerivedData/iPlayuListen-auaptgmjpfqixkdtzqrvwqgmoqla/Build/Products/Debug-iphonesimulator/iPlayuListen.app/iPlayuListen normal (1 次失败) npm 错误!代码生命周期 npm 错误!错误号 1 npm 错误! iplayulisten@0.0.2 ios: react-native run-ios npm 错误!退出状态 1 npm 错误! npm 错误! iplayulisten@0.0.2 ios 脚本失败。

【问题讨论】:

您是否尝试删除 pods 文件夹并重新安装 pod cd ios && pod install 你可以在下面的链接***.com/questions/55725042/…找到答案 【参考方案1】:

我今天遇到了同样的错误。 这对我有用。 请运行此命令

cd ios && pod install

【讨论】:

以上是关于将 XCode 更新为 XCode 12.2 / React Native 0.63.2 构建失败的主要内容,如果未能解决你的问题,请参考以下文章

有没有办法在iOS 12.2上使用过时版本的Xcode和macOS运行应用程序?

如何使用户定义的运行时属性在 xcode 10.2.1 和 ios 12.2 中起作用

哪个版本的 Xcode 支持 iOS 12.2?

Xcode 11.2 缺少模拟器 [重复]

Xcode 11 Beta - Storyboard ViewControllers 出现黑色

Xcode 12.2 安全密码文本字段不良行为