uniapp打包ios失败

1. 第一种报错链接点开是这样的

--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00008112-000D29A41AFB401E }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:AF7F5F12-29C4-4CDB-A8D4-5603948745DB, OS:16.4, name:iPad (10th generation) }
{ platform:iOS Simulator, id:AF7F5F12-29C4-4CDB-A8D4-5603948745DB, OS:16.4, name:iPad (10th generation) }
{ platform:iOS Simulator, id:224291B0-1399-41E1-AE05-ED724962A0B5, OS:16.4, name:iPad Air (5th generation) }
{ platform:iOS Simulator, id:224291B0-1399-41E1-AE05-ED724962A0B5, OS:16.4, name:iPad Air (5th generation) }
{ platform:iOS Simulator, id:9878090D-1EF6-4864-AC10-1C07F231BC0D, OS:16.4, name:iPad Pro (11-inch) (4th generation) }
{ platform:iOS Simulator, id:9878090D-1EF6-4864-AC10-1C07F231BC0D, OS:16.4, name:iPad Pro (11-inch) (4th generation) }
{ platform:iOS Simulator, id:5BD02C56-30E5-4F7E-8CE7-271DD7D6ABC7, OS:16.4, name:iPad Pro (12.9-inch) (6th generation) }
{ platform:iOS Simulator, id:5BD02C56-30E5-4F7E-8CE7-271DD7D6ABC7, OS:16.4, name:iPad Pro (12.9-inch) (6th generation) }
{ platform:iOS Simulator, id:B80E7CE7-AE0A-4178-BBD8-10BC76FBEE33, OS:16.4, name:iPad mini (6th generation) }
{ platform:iOS Simulator, id:B80E7CE7-AE0A-4178-BBD8-10BC76FBEE33, OS:16.4, name:iPad mini (6th generation) }
{ platform:iOS Simulator, id:2BB942E1-CEEE-4AAA-B44A-9FCE7EFDBF28, OS:16.4, name:iPhone 14 }
{ platform:iOS Simulator, id:2BB942E1-CEEE-4AAA-B44A-9FCE7EFDBF28, OS:16.4, name:iPhone 14 }
{ platform:iOS Simulator, id:C213015F-D697-4D85-9B50-1109E2ABCADE, OS:16.4, name:iPhone 14 Plus }
{ platform:iOS Simulator, id:C213015F-D697-4D85-9B50-1109E2ABCADE, OS:16.4, name:iPhone 14 Plus }
{ platform:iOS Simulator, id:A3177264-6DCF-463A-931B-58042A0DCE90, OS:16.4, name:iPhone 14 Pro }
{ platform:iOS Simulator, id:A3177264-6DCF-463A-931B-58042A0DCE90, OS:16.4, name:iPhone 14 Pro }
{ platform:iOS Simulator, id:90595022-88AF-4077-9222-017F2F5B9C6E, OS:16.4, name:iPhone 14 Pro Max }
{ platform:iOS Simulator, id:90595022-88AF-4077-9222-017F2F5B9C6E, OS:16.4, name:iPhone 14 Pro Max }
{ platform:iOS Simulator, id:131B1694-5FA9-4CEF-9640-E23AF2E231FA, OS:16.4, name:iPhone SE (3rd generation) }
{ platform:iOS Simulator, id:131B1694-5FA9-4CEF-9640-E23AF2E231FA, OS:16.4, name:iPhone SE (3rd generation) }
** ARCHIVE FAILED **The following build commands failed:
CompileAssetCatalog /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-fewupuzvtvrcyabepeenghvpwich/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/InstallationBuildProductsLocation/Applications/HBuilder.app [PackagePath]/HBuilder/Assets.xcassets (in target 'HBuilder' from project 'HBuilder')
(1 failure)

这个问题是因为HBuilderX3.6.11+版本 调整 Camera&Gallery、Barcode、Orientation、Record等模块从引擎内置调整为独立模块,解决iOS平台隐私合规检测可能报包含麦克风、相机/相册、运动等权限的问题。云端打包默认不再包含以上模块,如需要请手动在 manifest.json -> 模块配置 中勾选

可参考官方解释【报Bug】最新正式版ios打包失败,日志看不明白 - DCloud问答

第二种报错:

CompileAssetCatalog [PackagePath]/build/Release-iphonesimulator/HBuilder.app [PackagePath]/HBuilder/Assets.xcassets (in target 'HBuilder' from project 'HBuilder')
cd [PackagePath]
/Applications/Xcode.app/Contents/Developer/usr/bin/actool --output-format human-readable-text --notices --warnings --export-dependency-info [PackagePath]/build/HBuilder.build/Release-iphonesimulator/HBuilder.build/assetcatalog_dependencies --output-partial-info-plist [PackagePath]/build/HBuilder.build/Release-iphonesimulator/HBuilder.build/assetcatalog_generated_info.plist --app-icon AppIcon --compress-pngs --enable-on-demand-resources YES --development-region en --target-device iphone --target-device ipad --minimum-deployment-target 9.0 --platform iphonesimulator --compile [PackagePath]/build/Release-iphonesimulator/HBuilder.app [PackagePath]/HBuilder/Assets.xcassets
/* com.apple.actool.errors */
[PackagePath]/HBuilder/Assets.xcassets: error: The stickers icon set or app icon set named \"AppIcon\" did not have any applicable content.
/* com.apple.actool.document.warnings */
[PackagePath]/HBuilder/Assets.xcassets:./AppIcon.appiconset/[][ipad][83.5x83.5][][][2x][][][]: warning: AppIcon.appiconset/icon167-app-ipadpro@2x.png is 512x512 but should be 167x167.
[PackagePath]/HBuilder/Assets.xcassets:./AppIcon.appiconset/[][iphone][60x60][][][2x][][][]: warning: AppIcon.appiconset/icon120-app@2x.png is 512x512 but should be 120x120.
[PackagePath]/HBuilder/Assets.xcassets:./AppIcon.appiconset/[][iphone][60x60][][][3x][][][]: warning: AppIcon.appiconset/icon180-app@3x.png is 512x512 but should be 180x180.
[PackagePath]/HBuilder/Assets.xcassets:./AppIcon.appiconset/[][ipad][40x40][][][2x][][][]: warning: AppIcon.appiconset/icon80-spotlight-ipad@2x.png is 512x512 but should be 80x80.
[PackagePath]/HBuilder/Assets.xcassets:./AppIcon.appiconset/[][iphone][40x40][][][3x][][][]: warning: AppIcon.appiconset/icon120-spotlight@3x.png is 512x512 but should be 120x120.
[PackagePath]/HBuilder/Assets.xcassets:./AppIcon.appiconset/[][ios-marketing][1024x1024][][][1x][][][]: warning: AppIcon.appiconset/icon1024.png is 512x512 but should be 1024x1024.
[PackagePath]/HBuilder/Assets.xcassets:./AppIcon.appiconset/[][ipad][40x40][][][1x][][][]: warning: AppIcon.appiconset/icon40-spotlight-ipad.png is 512x512 but should be 40x40.
/* com.apple.actool.compilation-results */
[PackagePath]/build/HBuilder.build/Release-iphonesimulator/HBuilder.build/assetcatalog_generated_info.plist[PackagePath]/HBuilder.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'HBuilder' from project 'HBuilder')
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking \"Based on dependency analysis\" in the script phase. (in target 'HBuilder' from project 'HBuilder')2023-10-26 18:00:29.355 xcodebuild[35648:1652897] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
** BUILD FAILED **The following build commands failed:
CompileAssetCatalog [PackagePath]/build/Release-iphonesimulator/HBuilder.app [PackagePath]/HBuilder/Assets.xcassets (in target 'HBuilder' from project 'HBuilder')
(1 failure)

这是因为在manifest.json中配置的icon不符合要求,修改就可以了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值