k***@qq.com
k***@qq.com
  • 发布:2025-12-17 18:26
  • 更新:2025-12-17 22:18
  • 阅读:52

Hbuilderx打包IOS云端打包过程中报错失败

分类:HBuilderX

HBuilderX.4.85,云端打包IOS应用,排队开始打包后报错。

以下是HBuilderX云打包编译错误信息,分析一下是什么原因?

Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild archive -sdk iphoneos18.1 -project [PackagePath]/HBuilder.xcodeproj -archivePath [PackagePath]/XArchive/HBuilder.xcarchive -scheme HBuilder -configuration Debug

User defaults from command line:
IDEArchivePathOverride = [PackagePath]/XArchive/HBuilder.xcarchive
IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
SDKROOT = iphoneos18.1

Prepare packages

ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (1 target)
Target 'HBuilder' in project 'HBuilder' (no dependencies)

..... 中间正常的省略,后面是两个错误 .....

ld: warning: -ld_classic is deprecated and will be removed in a future release
ld: warning: arm64 function not 4-byte aligned: _dc_ffi_call_SYSV from [SourcePath]/libs/UniSDK/liblibPGInvocation.a(sysv_arm64.o)
ld: warning: arm64 function not 4-byte aligned: _ffi_closure_SYSV from [SourcePath]/libs/UniSDK/liblibPGInvocation.a(sysv_arm64.o)
ld: warning: method '-modelCustomWillTransformFromDictionary:' in category from [UniPluginPath]RY-TencentUGCUpload/ios//QCloudCOSXML.framework/QCloudCOSXML(QCloudListAllMyBucketsResult+CustomModelTransfer.o) overrides method from class in [UniPluginPath]RY-TencentUGCUpload/ios//QCloudCOSXML.framework/QCloudCOSXML(QCloudListAllMyBucketsResult.o)
ld: warning: method '-filteHeaders' in category from [UniPluginPath]RY-TencentUGCUpload/ios//QCloudCore.framework/QCloudCore(QCloudAuthentationV5Creator.o) conflicts with same method from another category
ld: warning: method '-imageLoaded:userInfo:' in category from [SourcePath]/libs/UniSDK/libDCUniVideo.a(UIImageView+WXVideo.o) conflicts with same method from another category
ld: warning: method '-imageLoaded:type:userInfo:' in category from [SourcePath]/libs/UniSDK/libDCUniVideo.a(UIImageView+WXVideo.o) conflicts with same method from another category
ld: warning: pointer not aligned at address 0x1013E1A3A ('_dbl_lnds_data_TileDataRespMsg_fields' + 50 from [SourcePath]/libs/Universal/MAMapKit.framework/MAMapKit(MAMapKit-arm64-master.o))
ld: warning: pointer not aligned at address 0x1013E1B5E ('_dbl_lnds_mapping_TileSdHdLinkMappingRespMsg_fields' + 79 from [SourcePath]/libs/Universal/MAMapKit.framework/MAMapKit(MAMapKit-arm64-master.o))
ld: unaligned pointer(s) for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (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 issue, 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')--- 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-001214A41AFB401E, name:My Mac }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:9792BF79-55A3-464B-BCC4-8FC5553530ED, OS:18.1, name:iPhone 16 }
{ platform:iOS Simulator, id:9792BF79-55A3-464B-BCC4-8FC5553530ED, OS:18.1, name:iPhone 16 }
{ platform:iOS Simulator, id:FAC75CB8-1EC1-4FB5-8324-EE9A612ECB9B, OS:18.1, name:iPhone 16 Plus }
{ platform:iOS Simulator, id:FAC75CB8-1EC1-4FB5-8324-EE9A612ECB9B, OS:18.1, name:iPhone 16 Plus }
{ platform:iOS Simulator, id:AB6D4465-81D1-4AF2-985E-F2A1C9B6C2F8, OS:18.1, name:iPhone 16 Pro }
{ platform:iOS Simulator, id:AB6D4465-81D1-4AF2-985E-F2A1C9B6C2F8, OS:18.1, name:iPhone 16 Pro }
{ platform:iOS Simulator, id:511D2F9C-27B8-4D6D-9286-680201248FA4, OS:18.1, name:iPhone 16 Pro Max }
{ platform:iOS Simulator, id:511D2F9C-27B8-4D6D-9286-680201248FA4, OS:18.1, name:iPhone 16 Pro Max }
{ platform:iOS Simulator, id:0AC78C3F-3568-4E22-BF08-AA07F1DDA01F, OS:18.1, name:iPhone SE (3rd generation) }
{ platform:iOS Simulator, id:0AC78C3F-3568-4E22-BF08-AA07F1DDA01F, OS:18.1, name:iPhone SE (3rd generation) }
ARCHIVE FAILED The following build commands failed:
Ld /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-hjykktwsxofzuqccgzxxcylxfcfh/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/InstallationBuildProductsLocation/Applications/HBuilder.app/HBuilder normal (in target 'HBuilder' from project 'HBuilder')
Archiving project HBuilder with scheme HBuilder
(2 failures)

2025-12-17 18:26 负责人:无 分享
已邀请:
Ask小助手

Ask小助手

根据错误日志分析,主要问题是链接阶段出现"unaligned pointer(s) for architecture arm64"错误,这通常由以下原因导致:

  1. 第三方库兼容性问题:错误日志显示liblibPGInvocation.aMAMapKit.framework存在arm64架构指针未对齐问题,特别是_dc_ffi_call_SYSV_ffi_closure_SYSV函数

  2. 插件冲突:多个category方法冲突警告,如-modelCustomWillTransformFromDictionary:-filteHeaders-imageLoaded:userInfo:等方法被重复定义

解决方案建议:

  1. 升级HBuilderX:当前使用4.85正式版,建议升级到最新alpha版(4.86),已修复多项iOS打包兼容性问题

  2. 检查插件兼容性:特别是TencentUGCUpload和DCUniVideo插件,确保使用最新版本。可前往插件市场搜索更新

  3. 清理项目缓存:删除项目下/ios/build目录和/DerivedData文件夹后再尝试打包

  4. 检查Xcode版本:云端打包使用Xcode 18.1,确认项目配置与iOS 18.1兼容

  5. 联系官方支持:若问题持续,建议通过HBuilderX菜单【帮助】-【提交问题反馈】提供详细日志给DCloud官方团队处理

注意:iOS打包对第三方库要求严格,确保所有原生插件都经过最新Xcode版本测试。

内容为 AI 生成,仅供参考
k***@qq.com

k***@qq.com (作者) - 123

问题找到了:

更新苹果ios的profile文件后正常

要回复问题请先登录注册