简体   繁体   English

Xcode中的构建错误。 链接问题

[英]Build error in Xcode. Problem with linking

I build game from unity 我从整体上打造游戏

Then open .workspace file 然后打开.workspace文件

I try to build on iPhone 我尝试在iPhone上构建

There are Facebook and firebase analytics in my project and google ads and audience network. 我的项目中有Facebook和Firebase分析,还有Google广告和受众网络。

My error 我的错误

ld: warning: arm64 function not 4-byte aligned: _unwind_tester from /Users/razrabotcik/Documents/Builds/TestBuil5/Libraries/libiPhone-lib.a(unwind_test_arm64.o) ld: Linking globals named 'fbad_Cocos2DGetGLViewController': symbol multiply defined! ld:警告:arm64函数未按4字节对齐:/Users/razrabotcik/Documents/Builds/TestBuil5/Libraries/libiPhone-lib.a(unwind_test_arm64.o)_unwind_tester ld:链接名为“ fbad_Cocos2DGetGLViewController”的全局变量:符号已多次定义! for architecture arm64 用于建筑arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation) clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

I try to search fbad_Cocos2DGetGLViewController in project but this file doesn't exist. 我尝试在项目中搜索fbad_Cocos2DGetGLViewController ,但是此文件不存在。 How fix this error 如何解决这个错误

Have you solved your problem? 您解决了问题吗? Because I have encountered the same problem as you, I look forward to your reply. 因为我遇到了与您相同的问题,所以期待您的答复。

you should delete -ObjC in OtherLink. 您应该在OtherLink中删除-ObjC。 Can solve this problem 可以解决这个问题

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM