简体   繁体   English

Unity,Xcode和Clang:错误:链接器命令失败,退出代码为1

[英]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)。

Try Disabling Bit code in Build Setting 尝试在构建设置中禁用位代码

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 铛:错误:链接器命令失败,退出代码为1,Xcode链接器错误 - clang: error: linker command failed with exit code 1, Xcode Linker Error Xcode clang:错误:链接器命令失败,退出代码为 1(UNITY 用于创建) - Xcode clang: error: linker command failed with exit code 1 (UNITY used for creation) 铛:错误:链接器命令失败,退出代码为1(Unity中的XMPP库已导出xcode - clang: error: linker command failed with exit code 1 (XMPP library in Unity exported xcode Unity 3D iOS游戏构建失败Xcode 8.32:“clang错误链接器命令失败,退出代码为1” - Unity 3D iOS Game Build Fail Xcode 8.32: “clang error linker command failed with exit code 1” 链接器命令失败,退出代码1 clang:错误 - linker command failed with exit code 1 clang:error xcode中的错误:clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) - error in xcode : clang: error: linker command failed with exit code 1 (use -v to see invocation) Xcode 5- clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) - Xcode 5- clang: error: linker command failed with exit code 1 (use -v to see invocation) 修复-Xcode 9.1-铛:错误:链接器命令失败,退出代码为1(使用-v查看调用) - Fix - Xcode 9.1 - clang: error: linker command failed with exit code 1 (use -v to see invocation) clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)Xcode 9 - clang: error: linker command failed with exit code 1 (use -v to see invocation) Xcode 9 clang:错误:在xcode上进行单元测试时,链接器命令失败,退出代码为1(使用-v查看调用) - clang: error: linker command failed with exit code 1 (use -v to see invocation) when doing unit test on xcode
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM