ios - 如何避免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 **
解决方案
推荐阅读
- python - 使用 Python 将 pdf 文档转换为分层 JSON 格式
- android - 如何从 Webrtc 捏放大/缩小 SurfaceViewRenderer?
- python - 如何生成两个数据框之间未共享的项目列表
- android - 如何将何时/如果添加到按钮(viewBinding)
- angular - Angular 11:通过两个多选下拉列表过滤列表的功能
- c++ - 在给定的列和行约束下打印交替 X 和 O 的矩阵?
- python - 函数在python中写入一个json文件
- rust - tokio 的 UdpSocket 没有特征,但 tokio 的 TcpStream 是的?
- python - 如何在一个函数中使用合并和连接?
- sql - 从一个表或视图插入另一个但避免组合重复 - 这可以在 SQL 中完成吗?如果有怎么办?