0评论

Xcode编译提示Undefined symbols for architecture arm64

文章来自CSDN博客 2018-08-09 9浏览

想免费获取内部独家PPT资料库?观看行业大牛直播?点击加入腾讯游戏学院游戏开发行业精英群711501594

Unity发布Xcode工程在Xcode7.x版本中提示:Undefined symbols for architecture arm64。本文就给大家介绍下针对这类异常问题的解决办法。

解决方法:
ld: warning: arm64 function not 4-byte aligned: ltmp0 from /Users/mac/Desktop/UnityXcode/Diet2/Libraries/libiPhone-lib.a(PLCrashAsyncThread_current-5565F35D16E4818B.o)

ld: warning: arm64 function not 4-byte aligned: _plcrash_async_thread_state_current from /Users/mac/Desktop/UnityXcode/Diet2/Libraries/libiPhone-lib.a(PLCrashAsyncThread_current-5565F35D16E4818B.o)

Undefined symbols for architecture arm64:
"_deflate", referenced from:

添加如下几个依赖库就可以(一般情况下添加 libz.tbd就可以):
CoreTelephony.framework
libsqlite3.0.tbd
libz.tbd