灳灳
灳灳
  • 发布:2024-05-24 20:13
  • 更新:2024-07-11 11:31
  • 阅读:366

ios插件开发,object-c + swift 混合开发

分类:插件市场

在本地使用模拟器及真机运行都没有问题,可生成插件包后,放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)

2024-05-24 20:13 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com

灳灳

灳灳 (作者) - 他很懒

xcode: 15.4
SDK: 4.14

DCloud_heavensoft

DCloud_heavensoft

是什么类型插件?uts插件吗?如果是app原生插件,那不维护了

要回复问题请先登录注册