[英]Unity, Xcode and clang: error: linker command failed with exit code 1
I ma trying to build my project to iPhone but I keep getting this error: 我试图将我的项目构建为iPhone,但我不断收到此错误消息:
ld: warning: arm64 function not 4-byte aligned: ltmp0 from /Volumes/MacBackup1/AppsProduction/MyGame/Builds/iOS/Libraries/libiPhone-lib.a(unwind_test_arm64.o) ld: warning: arm64 function not 4-byte aligned: _unwind_tester from /Volumes/MacBackup1/AppsProduction/MyGame/Builds/iOS/Libraries/libiPhone-lib.a(unwind_test_arm64.o) ld: '/Volumes/MacBackup1/AppsProduction/MyGame/Builds/iOS/Frameworks/FacebookSDK/Plugins/iOS/FBSDKShareKit.framework/FBSDKShareKit(FBSDKLikeBoxView.o)' does not contain bitcode.
ld:警告:arm64功能未按4字节对齐:/Volumes/MacBackup1/AppsProduction/MyGame/Builds/iOS/Libraries/libiPhone-lib.a(unwind_test_arm64.o)中的ltmp0 ld:警告:arm64功能未按4字节对齐:_unwind_tester from /Volumes/MacBackup1/AppsProduction/MyGame/Builds/iOS/Libraries/libiPhone-lib.a(unwind_test_arm64.o)ld:'/ Volumes / MacBackup1 / AppsProduction / MyGame / Builds / iOS / Frameworks / FacebookSDK / Plugins / iOS / FBSDKShareKit.framework / FBSDKShareKit(FBSDKLikeBoxView.o)'不包含位码。 You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target.
您必须在启用位码(Xcode设置为ENABLE_BITCODE)的情况下重建它,从供应商处获取更新的库,或禁用此目标的位码。 file '/Volumes/MacBackup1/AppsProduction/MyGame/Builds/iOS/Frameworks/FacebookSDK/Plugins/iOS/FBSDKShareKit.framework/FBSDKShareKit' for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
适用于架构arm64 clang的文件'/Volumes/MacBackup1/AppsProduction/MyGame/Builds/iOS/Frameworks/FacebookSDK/Plugins/iOS/FBSDKShareKit.framework/FBSDKShareKit':错误:链接器命令失败,退出代码为1(使用-v查看调用)
I have been looking around for an answer, and there is a lot of post regarding clang: error: linker command failed with exit code 1 (use -v to see invocation), but none seems to work in my case. 我一直在寻找答案,关于clang的文章很多:错误:链接器命令失败,退出代码为1(使用-v查看调用),但在我的情况下似乎没有任何作用。
I am stuck at this moment and are hoping for some help. 我现在被困住了,希望能有所帮助。 Any help is appreciated.
任何帮助表示赞赏。
I am using Xcode Version 9.2 (9C40b) and Unity3D 2017.3.0p4. 我正在使用Xcode版本9.2(9C40b)和Unity3D 2017.3.0p4。 I am also using the latest Facebook SDK (v7.11.0) for Unity.
我还为Unity使用了最新的Facebook SDK(v7.11.0)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.