在本地使用模拟器及真机运行都没有问题,可生成插件包后,放HBuilder X里面进行云打包,就没有成功过
错误日志:https://app.liuyingyong.cn/build/errorLog/9f895260-19c5-11ef-bb68-2d3aa025a551
截取关键部分
ld: warning: -ld64 is deprecated, use -ld_classic instead
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: Could not find or use auto-linked library 'swiftXPC'
ld: warning: Could not find or use auto-linked framework 'CoreAudioTypes'
Undefined symbols for architecture arm64:
\"swift_FORCELOAD$_swiftXPC\", referenced from:
swift_FORCELOAD$swiftXPC$_FgMapbox in FgMapbox(ComponentHandler.o)
swift_FORCELOAD$swiftXPC$_FgMapbox in FgMapbox(UIImage.o)
swift_FORCELOAD$swiftXPC$_FgMapbox in FgMapbox(Util.o)
swift_FORCELOAD$swiftXPC$_FgMapbox in FgMapbox(UIImageView.o)
swift_FORCELOAD$swiftXPC$_FgMapbox in FgMapbox(UIColor.o)
swift_FORCELOAD$swiftXPC$_FgMapbox in FgMapbox(MarkerRender.o)
swift_FORCELOAD$swiftXPC$_FgMapbox in FgMapbox(UITapGestureRecognizer.o)
...
(maybe you meant: __swift_FORCELOAD$swiftXPC$_FgMapbox)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
3 个回复
1***@qq.com
遇到同样的问题了,原因是15.4编译的framework在15.2用不了,云打包用的是xcode 15.2。
解决方案:
用xcode 15.2编译oc+swift混编插件
参考:
https://forums.developer.apple.com/forums/thread/749915
下载:
xcode 15.2
iOS_17.2_Simulator_Runtime
手动安装iOS 17.2 runtime
灳灳 (作者) - 他很懒
xcode: 15.4
SDK: 4.14
DCloud_heavensoft
是什么类型插件?uts插件吗?如果是app原生插件,那不维护了