首页 > 解决方案 > 如何避免Build react native ios错误代码65

问题描述

创建应用程序后,我创建了一个新的反应本机应用npx react-native init tester 程序我命令 npx react-native run-ios 构建失败,error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. 这里是完整的响应:

info Found Xcode workspace "tester.xcworkspace"
info Building (using "xcodebuild -workspace tester.xcworkspace -configuration Debug -scheme tester -destination id=D43BF393-7548-4D27-AB83-DF77E90C0041")
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 tester.xcworkspace.
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace tester.xcworkspace -configuration Debug -scheme tester -destination id=D43BF393-7548-4D27-AB83-DF77E90C0041

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
/Users/mospro/Documents/DEV/RN/tester/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'boost-for-react-native' from project 'Pods')
warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the tester editor. (in target 'tester' from project 'tester')
/Users/mospro/Documents/DEV/RN/tester/ios/tester.xcodeproj: error: The linked library 'libPods-tester.a' is missing one or more architectures required by this target: arm64. (in target 'tester' from project 'tester')
/Users/mospro/Documents/DEV/RN/tester/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'YogaKit' from project 'Pods')
/Users/mospro/Documents/DEV/RN/tester/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'Flipper-Glog' from project 'Pods')
/Users/mospro/Documents/DEV/RN/tester/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.4, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'Flipper-PeerTalk' from project 'Pods')


objc[9754]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1f060fad8) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1141a82b8). One of the two will be used. Which one is undefined.
objc[9754]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1f060fb28) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1141a8308). One of the two will be used. Which one is undefined.
** BUILD FAILED **




标签: iosreactjsreact-nativecocoapodsreact-native-ios

解决方案


推荐阅读