Having -ObjC linker flag on Universal Architecture project results in Mach-O Linker error?

橙三吉。 提交于 2019-12-05 03:08:33

I think you are having multiple Vungle SDKs imported referenced inside your project. All you have to do is remove one of them. If you think one of them is older and the other is newer and don't which one is which, then remove both of them and then reimport the latest Vungle SDK.

Also, I found another possible issue from the logs you posted

ld: warning: directory not found for option '-F"/Users/user/Desktop/qwer/../../Documents/Unity Projects/Unity 5.0.0 projects/MyGame/Assets/Editor/Vungle/VungleSDK"'

It seems like that path to your Vungle SDK is enclosed in ""(inverted Commas) in your 'FrameWork Search Paths'. Check your path it should look like as in reference image below.

Note that the path $(SRCROOT)/../../Assets/Editor/Vungle/VungleSDK is not enclosed in ""(inverted commas).

Update 1 Most of these Issues occur when path are not entered correctly inside your Framework Search Path. In my case I had multiple plugins and had to check not only the Framework Search Paths but also the Header Search Paths and Library Search Paths. I also had "" in my Library Search Paths and removed them as well (be careful while removing "" - one wrong removal and you will have to create a new xcode project). I have attached my other Search Paths images

Header Search Paths

Library Search Paths

I don't have experience with Unity but when i get weird linker errors on my app I just have to run a clean to fix them.

I guess you can fix the warning: directory not found for option issue by making Search Paths of your SDKs as Recursive.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!