z***@foxmail.com
z***@foxmail.com
  • 发布:2023-01-28 15:37
  • 更新:2023-01-28 15:40
  • 阅读:673

#插件讨论# 【 支付宝原生扫码插件 - mPaaS 】iOS打包报错

分类:uni-app

尾部错误信息如下:

CompileC /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/main.o [PackagePath]/HBuilder/source/main.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'HBuilder' from project 'HBuilder')
cd [PackagePath]
export LANG\=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target arm64-apple-ios9.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -std\=gnu11 -fobjc-arc -fobjc-weak -fmodules -gmodules -fmodules-cache-path\=/Users/[Name]/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/[Name]/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Wquoted-include-in-framework-header -Wno-implicit-atomic-properties -Werror\=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror\=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DNS_BLOCK_ASSERTIONS\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility\=hidden -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -iquote /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/HBuilder-generated-files.hmap -I/Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/HBuilder-own-target-headers.hmap -I/Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/HBuilder-all-target-headers.hmap -iquote /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/HBuilder-project-headers.hmap -I/Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/BuildProductsPath/Release-iphoneos/include -I/Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/DerivedSources-normal/arm64 -I/Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/DerivedSources/arm64 -I/Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/DerivedSources -F/Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/BuildProductsPath/Release-iphoneos -F[SourcePath]/libs/UniSDK/Base -F[SourcePath]/libs/UniSDK -F[SourcePath]/libs/Universal/GTSDK.xcframework/ios-arm64_armv7 -F[UniPluginPath]Lyuan-AMap/ios -F[PackagePath]/wgtRoot/UNIE26F979/nativeplugins/Mpaas-Scan/ios -F[SourcePath]/libs/Universal -F[SourcePath]/libs/UniSDK/Base -F[SourcePath]/libs/UniSDK -F[SourcePath]/libs/Universal/GTSDK.xcframework/ios-arm64_armv7 -F[UniPluginPath]Lyuan-AMap/ios -F[PackagePath]/wgtRoot/UNIE26F979/nativeplugins/Mpaas-Scan/ios -F[SourcePath]/libs/Universal -MMD -MT dependencies -MF /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/main.d --serialize-diagnostics /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/main.dia -c [PackagePath]/HBuilder/source/main.m -o /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/main.o

Ld /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/Binary/HBuilder normal arm64 (in target 'HBuilder' from project 'HBuilder')
cd [PackagePath]
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-ios9.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk -L/Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/BuildProductsPath/Release-iphoneos -L[SourcePath]/libs/UniSDK/Base -L[SourcePath]/libs/UniSDK -L[SourcePath]/libs/Universal/GTSDK.xcframework/ios-arm64_armv7/ -L[UniPluginPath]Lyuan-AMap/ios/ -L[PackagePath]/wgtRoot/UNIE26F979/nativeplugins/Mpaas-Scan/ios/ -L[SourcePath]/libs/Universal -F/Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/BuildProductsPath/Release-iphoneos -F[SourcePath]/libs/UniSDK/Base -F[SourcePath]/libs/UniSDK -F[SourcePath]/libs/Universal/GTSDK.xcframework/ios-arm64_armv7/ -F[UniPluginPath]Lyuan-AMap/ios/ -F[PackagePath]/wgtRoot/UNIE26F979/nativeplugins/Mpaas-Scan/ios/ -F[SourcePath]/libs/Universal -F[SourcePath]/libs/UniSDK/Base -F[SourcePath]/libs/UniSDK -F[SourcePath]/libs/Universal/GTSDK.xcframework/ios-arm64_armv7/ -F[UniPluginPath]Lyuan-AMap/ios/ -F[PackagePath]/wgtRoot/UNIE26F979/nativeplugins/Mpaas-Scan/ios/ -F[SourcePath]/libs/Universal -filelist /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/HBuilder.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/HBuilder_lto.o -Xlinker -final_output -Xlinker /Applications/HBuilder.app/HBuilder -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/HBuilder.swiftmodule -ObjC -llibLoader -llibAccelerometer -lopencore-amrnb -lmp3lame -llibMedia -llibCache -llibLog -llibIO -llibPGInvocation -llibNativeObj -llibNativeUI -llibNavigator -llibPGProximity -llibStorage -llibUI -llibXHR -llibZip -llibGeolocation -llibPush -lAMapLocationPlugin -lUniPush -weak_framework Accelerate -weak_framework AudioToolbox -weak_framework AVFoundation -weak_framework CFNetwork -weak_framework CoreFoundation -weak_framework CoreGraphics -weak_framework CoreMedia -weak_framework CoreTelephony -weak_framework CoreText -weak_framework CoreVideo -weak_framework Foundation -weak_framework ImageIO -weak_framework JavaScriptCore -weak_framework MobileCoreServices -weak_framework MediaPlayer -weak_framework QuartzCore -weak_framework QuickLook -weak_framework Security -weak_framework SystemConfiguration -weak_framework UIKit -weak_framework WebKit -lc++ -lz -lxml2 -lsqlite3 -weak_framework MetalKit -weak_framework GLKit -weak_framework CoreLocation -weak_framework UserNotifications -licucore -liconv -weak_framework ExternalAccessory -weak_framework security -weak_framework AMapFoundationKit -weak_framework AMapLocationKit -weak_framework GTSDK -lresolv -weak_framework CoreMotion -weak_framework AMapNaviKit -weak_framework AMapPlugin -weak_framework MPMasAdapter -weak_framework TBScanSDK -weak_framework APRemoteLogging -weak_framework mPaas -weak_framework UTDID -weak_framework TBDecodeSDK -weak_framework Mpaas_Scan -weak_framework APProtocolBuffers -weak_framework APLog -weak_framework DCUniBase -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/HBuilder_dependency_info.dat -o /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/Binary/HBuilder
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: ignoring file [PackagePath]/wgtRoot/UNIE26F979/nativeplugins/Mpaas-Scan/ios//UTDID.framework/UTDID, building for iOS-arm64 but attempting to link with file built for unknown-unsupported file format ( 0x56 0x65 0x72 0x73 0x69 0x6F 0x6E 0x73 0x2F 0x43 0x75 0x72 0x72 0x65 0x6E 0x74 )
Undefined symbols for architecture arm64:
\"_OBJCCLASS$_ALAssetsLibrary\", referenced from:
objc-class-ref in TBScanSDK(TBScanViewController.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Ld /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/armv7/Binary/HBuilder normal armv7 (in target 'HBuilder' from project 'HBuilder')
cd [PackagePath]
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target armv7-apple-ios9.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk -L/Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/BuildProductsPath/Release-iphoneos -L[SourcePath]/libs/UniSDK/Base -L[SourcePath]/libs/UniSDK -L[SourcePath]/libs/Universal/GTSDK.xcframework/ios-arm64_armv7/ -L[UniPluginPath]Lyuan-AMap/ios/ -L[PackagePath]/wgtRoot/UNIE26F979/nativeplugins/Mpaas-Scan/ios/ -L[SourcePath]/libs/Universal -F/Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/BuildProductsPath/Release-iphoneos -F[SourcePath]/libs/UniSDK/Base -F[SourcePath]/libs/UniSDK -F[SourcePath]/libs/Universal/GTSDK.xcframework/ios-arm64_armv7/ -F[UniPluginPath]Lyuan-AMap/ios/ -F[PackagePath]/wgtRoot/UNIE26F979/nativeplugins/Mpaas-Scan/ios/ -F[SourcePath]/libs/Universal -F[SourcePath]/libs/UniSDK/Base -F[SourcePath]/libs/UniSDK -F[SourcePath]/libs/Universal/GTSDK.xcframework/ios-arm64_armv7/ -F[UniPluginPath]Lyuan-AMap/ios/ -F[PackagePath]/wgtRoot/UNIE26F979/nativeplugins/Mpaas-Scan/ios/ -F[SourcePath]/libs/Universal -filelist /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/armv7/HBuilder.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/armv7/HBuilder_lto.o -Xlinker -final_output -Xlinker /Applications/HBuilder.app/HBuilder -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/armv7/HBuilder.swiftmodule -ObjC -llibLoader -llibAccelerometer -lopencore-amrnb -lmp3lame -llibMedia -llibCache -llibLog -llibIO -llibPGInvocation -llibNativeObj -llibNativeUI -llibNavigator -llibPGProximity -llibStorage -llibUI -llibXHR -llibZip -llibGeolocation -llibPush -lAMapLocationPlugin -lUniPush -weak_framework Accelerate -weak_framework AudioToolbox -weak_framework AVFoundation -weak_framework CFNetwork -weak_framework CoreFoundation -weak_framework CoreGraphics -weak_framework CoreMedia -weak_framework CoreTelephony -weak_framework CoreText -weak_framework CoreVideo -weak_framework Foundation -weak_framework ImageIO -weak_framework JavaScriptCore -weak_framework MobileCoreServices -weak_framework MediaPlayer -weak_framework QuartzCore -weak_framework QuickLook -weak_framework Security -weak_framework SystemConfiguration -weak_framework UIKit -weak_framework WebKit -lc++ -lz -lxml2 -lsqlite3 -weak_framework MetalKit -weak_framework GLKit -weak_framework CoreLocation -weak_framework UserNotifications -licucore -liconv -weak_framework ExternalAccessory -weak_framework security -weak_framework AMapFoundationKit -weak_framework AMapLocationKit -weak_framework GTSDK -lresolv -weak_framework CoreMotion -weak_framework AMapNaviKit -weak_framework AMapPlugin -weak_framework MPMasAdapter -weak_framework TBScanSDK -weak_framework APRemoteLogging -weak_framework mPaas -weak_framework UTDID -weak_framework TBDecodeSDK -weak_framework Mpaas_Scan -weak_framework APProtocolBuffers -weak_framework APLog -weak_framework DCUniBase -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/armv7/HBuilder_dependency_info.dat -o /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/armv7/Binary/HBuilder
ld: warning: ignoring file [PackagePath]/wgtRoot/UNIE26F979/nativeplugins/Mpaas-Scan/ios//UTDID.framework/UTDID, building for iOS-armv7 but attempting to link with file built for unknown-unsupported file format ( 0x56 0x65 0x72 0x73 0x69 0x6F 0x6E 0x73 0x2F 0x43 0x75 0x72 0x72 0x65 0x6E 0x74 )
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:559D69E0-7CC0-4E36-9B8D-F5CFC783DF6D, OS:15.2, name:iPad (9th generation) }
{ platform:iOS Simulator, id:C21E697B-3B9D-4AD0-9AAB-4EE56847008F, OS:15.2, name:iPad Air (4th generation) }
{ platform:iOS Simulator, id:41B63ECC-4E02-4E0F-9B09-A76B91338044, OS:15.2, name:iPad Pro (9.7-inch) }
{ platform:iOS Simulator, id:32ACE9CC-0033-4B65-9156-D9DA43931CED, OS:15.2, name:iPad Pro (11-inch) (3rd generation) }
{ platform:iOS Simulator, id:FED19C1E-4F4B-422C-BD6B-D33ADEC280E3, OS:15.2, name:iPad Pro (12.9-inch) (5th generation) }
{ platform:iOS Simulator, id:92D82B42-6575-4E88-8BFD-BE2E566C335F, OS:15.2, name:iPad mini (6th generation) }
{ platform:iOS Simulator, id:5A0D0E23-D596-4A64-805E-00EA7A4F4381, OS:15.2, name:iPhone 8 }
{ platform:iOS Simulator, id:BCB2C6B0-08E7-4F0F-8EBB-F89A0C39B9F4, OS:15.2, name:iPhone 8 Plus }
{ platform:iOS Simulator, id:1DBEBED2-721A-4DDA-B2DF-F7576E36533E, OS:15.2, name:iPhone 11 }
{ platform:iOS Simulator, id:3973CDB0-9E87-4404-AF1B-CAF544420F01, OS:15.2, name:iPhone 11 Pro }
{ platform:iOS Simulator, id:72A5376C-1648-4EF5-8A06-D25A123D5468, OS:15.2, name:iPhone 11 Pro Max }
{ platform:iOS Simulator, id:1A9654A5-4FD3-4C9C-8132-0DD056B7319F, OS:15.2, name:iPhone 12 }
{ platform:iOS Simulator, id:46387548-2DC5-43CA-9109-BCBE5DDE0F29, OS:15.2, name:iPhone 12 Pro }
{ platform:iOS Simulator, id:02BAFC11-2769-4A27-A9FA-1FBC6C1F4CE8, OS:15.2, name:iPhone 12 Pro Max }
{ platform:iOS Simulator, id:78DE2F06-144B-431A-992A-A3C1CB013FD8, OS:15.2, name:iPhone 12 mini }
{ platform:iOS Simulator, id:7EE3FC33-6522-43AB-81CD-CA309B1AC666, OS:15.2, name:iPhone 13 }
{ platform:iOS Simulator, id:4503601B-CD57-4790-9336-B73638F0893A, OS:15.2, name:iPhone 13 Pro }
{ platform:iOS Simulator, id:EC4A748C-9322-4020-B935-4B26A129B447, OS:15.2, name:iPhone 13 Pro Max }
{ platform:iOS Simulator, id:A9D92374-ACDF-4EF7-87A9-244952181F5D, OS:15.2, name:iPhone 13 mini }
{ platform:iOS Simulator, id:20A45FF7-9AE6-4C1F-A2A0-4D44A956BF18, OS:15.2, name:iPhone SE (2nd generation) }
{ platform:iOS Simulator, id:4F838648-CF79-4C1C-8751-D3A1999902EC, OS:15.2, name:iPod touch (7th generation) }
ARCHIVE FAILED The following build commands failed:
Ld /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-elozzgnltddkzidiggzrgzdrgjqx/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/Binary/HBuilder normal arm64 (in target 'HBuilder' from project 'HBuilder')
(1 failure)

2023-01-28 15:37 负责人:无 分享
已邀请:
BoredApe

BoredApe - 有问题就会有答案。

为了避免App隐私合规检测报包含麦克风、相机/相册、运动等敏感权限,从HBuilderX3.6.11版本开始,将App打包默认包含的Barcode(扫码)、Camera&Gallery(相机和相册)、Orientation(传感器)、Record(录音)等调整为独立功能模块。您使用的支付宝原生扫码插件使用了Camera&GalleryOrientation模块中配置的系统库AssetsLibrary.frameworkCoreMotion.framework,您打包时没有勾选以上模块,所以打包失败,可以通过以下解决方案处理:
方案一. 在manifest.json的源码视图(可视化界面中没有使用Orientation模块配置)中配置以下模块:

"app-plus" : {    
    "modules" : {    
        "Camera": {},    
        "Orientation": {}    
    }    
}

方案二. 在manifest.json中配置依赖的系统库,如下:

"app-plus" : {    
    "distribute" : {    
        "ios": {    
            "frameworks": [    
                "AssetsLibrary.framework",    
                "CoreMotion.framework"    
            ]    
        }    
    }    
}

请参考:注意事项

  • z***@foxmail.com (作者)

    采用方案一可以正常打包,方案二不行。但是打包出来点开扫码界面,是黑屏的,照明开关也无效

    2023-02-01 09:07

要回复问题请先登录注册