2***@qq.com
2***@qq.com
  • 发布:2021-01-08 17:09
  • 更新:2021-01-13 15:39
  • 阅读:2097

3.0.4 IOS SDK打包报错,是少引用了什么吗

分类:HBuilderX

Undefined symbols for architecture arm64:
"_kCGImagePropertyWebPDictionary", referenced from:
+[SDImageAWebPCoder initialize] in libSDWebImage.a(SDImageAWebPCoder.o)
"_CTRadioAccessTechnologyNR", referenced from:
+[PTNetInfo reachabilityStatusForFlags:] in liblibPDRCore.a(PDRToolSystemEx.o)
"_kCGImagePropertyWebPLoopCount", referenced from:
+[SDImageAWebPCoder initialize] in libSDWebImage.a(SDImageAWebPCoder.o)
"_kCGImagePropertyWebPDelayTime", referenced from:
+[SDImageAWebPCoder initialize] in libSDWebImage.a(SDImageAWebPCoder.o)
"_CTRadioAccessTechnologyNRNSA", referenced from:
+[PTNetInfo reachabilityStatusForFlags:] in liblibPDRCore.a(PDRToolSystemEx.o)
"_kCGImagePropertyWebPUnclampedDelayTime", referenced from:
+[SDImageAWebPCoder initialize] in libSDWebImage.a(SDImageAWebPCoder.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

报错信息如上面所示

2021-01-08 17:09 负责人:无 分享
已邀请:
2***@qq.com

2***@qq.com (作者)

  • CLP

    你Xcode是什么版本的? 升级到最新版本试试

    2021-01-08 17:32

  • 2***@qq.com (作者)

    回复 CLP: XCode 11.7,我升级一下试试

    2021-01-08 17:36

  • CLP

    回复 千日千月: Xcode版本是12.0以上吗

    2021-01-13 15:59

千日千月

千日千月 - 沈阳千日千月

我3.0.7的版本xcode12.3也出现了和上面相似的问题,请问下怎么解决,xcode已经是最新的版本了
ld: warning: directory not found for option '-L/Users/clare/qrqy/iOS/UniAppDemo/UniAppTest/UniAppTest/UniMPSDK/Core/Libs'
ld: warning: directory not found for option '-L/Users/clare/qrqy/iOS/UniAppDemo/UniAppTest/UniAppTest/UniMPSDK/Features/Libs'
ld: warning: directory not found for option '-F/Users/clare/qrqy/iOS/UniAppDemo/UniAppTest/UniAppTest/UniMPSDK/Core/Libs'
ld: warning: directory not found for option '-F/Users/clare/qrqy/iOS/UniAppDemo/UniAppTest/UniAppTest/UniMPSDK/Features/Libs'
ld: warning: arm64 function not 4-byte aligned: _ffi_call_SYSV from /Users/clare/qrqy/iOS/UniAppDemo/UniAppTest/UniAppTest/UniMap/Core/Libs/liblibPGInvocation.a(sysv_arm64.o)
ld: warning: arm64 function not 4-byte aligned: _ffi_closure_SYSV from /Users/clare/qrqy/iOS/UniAppDemo/UniAppTest/UniAppTest/UniMap/Core/Libs/liblibPGInvocation.a(sysv_arm64.o)
Undefined symbols for architecture arm64:
"_CTRadioAccessTechnologyNRNSA", referenced from:
+[PTNetInfo reachabilityStatusForFlags:] in liblibPDRCore.a(PDRToolSystemEx.o)
"_CTRadioAccessTechnologyNR", referenced from:
+[PTNetInfo reachabilityStatusForFlags:] in liblibPDRCore.a(PDRToolSystemEx.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

  • CLP

    你Mac上不会有多个Xcode吧,重启电脑看看,删除缓存等等,这个问题就是Xcode版本低了

    2021-01-13 20:43

  • 千日千月

    回复 CLP: 谢谢,我这边卸载了Xcode重新安装后,可以正常运行,删除缓存,重启都不行

    2021-01-14 10:49

该问题目前已经被锁定, 无法添加新回复