xcodebuild 打包 xcframework 失败
2021-04-27 本文已影响0人
_一叶孤帆
➜ RTC_QuickDemo git:(e054599) ✗ pod --version
Ignoring ffi-1.13.1 because its extensions are not built. Try: gem pristine ffi --version 1.13.1
1.9.3
1.9.3 版本打包 使用 xcodebuild 打包 ipa ,发现打包出来的 xcarchive 文件 里面 ipa 的 Frameworks 是空的
正常情况应该是下面这种情况:
截屏2021-04-27 上午11.56.19.png查看日志发现有下面这种警告
PhaseScriptExecution [CP]\ Prepare\ Artifacts /Users/yifan/Library/Developer/Xcode/DerivedData/RCRTCQuickDemo-chxannwzugvnoieqlfnszvlgaemq/Build/Intermediates.noindex/ArchiveIntermediates/RCRTCQuickDemo/IntermediateBuildFilesPath/RCRTCQuickDemo.build/Release-iphoneos/RCRTCQuickDemo.build/Script-A727968B4131BB2D4746A66A.sh (in target 'RCRTCQuickDemo' from project 'RCRTCQuickDemo')
cd /Users/yifan/.jenkins/workspace/RTC_QuickDemo
/bin/sh -c /Users/yifan/Library/Developer/Xcode/DerivedData/RCRTCQuickDemo-chxannwzugvnoieqlfnszvlgaemq/Build/Intermediates.noindex/ArchiveIntermediates/RCRTCQuickDemo/IntermediateBuildFilesPath/RCRTCQuickDemo.build/Release-iphoneos/RCRTCQuickDemo.build/Script-A727968B4131BB2D4746A66A.sh
warning: [CP] Unable to find matching .xcframework slice in '� true ios-armv7_arm64/RongChatRoom.framework ios-i386_x86_64-simulator/RongChatRoom.framework' for the current build architectures (arm64 armv7).
warning: [CP] Unable to find matching .xcframework slice in '� true ios-armv7_arm64/RongCustomerService.framework ios-i386_x86_64-simulator/RongCustomerService.framework' for the current build architectures (arm64 armv7).
warning: [CP] Unable to find matching .xcframework slice in '� true ios-armv7_arm64/RongDiscussion.framework ios-i386_x86_64-simulator/RongDiscussion.framework' for the current build architectures (arm64 armv7).
warning: [CP] Unable to find matching .xcframework slice in '� true ios-i386_x86_64-simulator/RongIMKit.framework ios-armv7_arm64/RongIMKit.framework' for the current build architectures (arm64 armv7).
warning: [CP] Unable to find matching .xcframework slice in '� true ios-i386_x86_64-simulator/RongIMLib.framework ios-armv7_arm64/RongIMLib.framework' for the current build architectures (arm64 armv7).
warning: [CP] Unable to find matching .xcframework slice in '� true ios-i386_x86_64-simulator/RongIMLibCore.framework ios-armv7_arm64/RongIMLibCore.framework' for the current build architectures (arm64 armv7).
warning: [CP] Unable to find matching .xcframework slice in '� true ios-armv7_arm64/RongLocation.framework ios-i386_x86_64-simulator/RongLocation.framework' for the current build architectures (arm64 armv7).
warning: [CP] Unable to find matching .xcframework slice in '� true ios-armv7_arm64/RongPublicService.framework ios-i386_x86_64-simulator/RongPublicService.framework' for the current build architectures (arm64 armv7).
Artifact list stored at /Users/yifan/Library/Developer/Xcode/DerivedData/RCRTCQuickDemo-chxannwzugvnoieqlfnszvlgaemq/Build/Intermediates.noindex/ArchiveIntermediates/RCRTCQuickDemo/BuildProductsPath/Release-iphoneos/cocoapods-artifacts-Release.txt
解决方案:
升级 pod 到 1.10. 之后的版本