Apple Mach -O Linker (Id) Error?

孤街醉人 提交于 2019-11-30 06:47:10

This problem has different solutions , one of them is to set Enable Bitcode to No . ( I don't know why by default it is Yes )

This problem is a ghost like problem . Clearing Cache , Restarting Xcode , Simulator and MAC ,Ensuring proper linking of Frameworks ,Changing app Architecture or , Sometimes just doing nothing can solve this problem .

This issue was connected to "Link Binary With Libraries". I've renamed the target, and there were two .framework files for the Pods. Thus, after removing the outdated one - the issue was solved.

If you just installed/ uninstalled a pod you might want to look at this. Here's what worked for me:

  1. First make sure you are opening the .xcworkspace file not the .xcodeproj. But this is probable not what's causing the issue.

  2. Delete the pod that was recently just installed.

  3. In the project directory on Xcode, open the frameworks folder and if the pod which was just removed is still listed there as one recentlyremovedpod.framework, delete it from there also. This step is what made my project compile eventually.

Another possible cause is if you rename one of your targets (why did I do that?) and you're using pods. You end up with a version of your old target name in the Frameworks folder in your main project (not the Pods project), like pods_oldtarget_framework which no longer exists.

Just delete the old version (or name your target back to it's original and delete the new one), and you should be good to go.

I was having the same issue, and resolved by

  1. installing the latest CocoaPods
  2. then do pod setup

For me I had the problem because I was using Xcode 9 (beta), then I open the same project with another Xcode 8.3. To solve the problem for me just Clean then Run again.

For me it was missing frameworks. Try searching the errors you get on Google and find out which frameworks they're part of, then import them in the Build phases tab.

If building on mac for ios in unity, make sure that in the build settings you disable "Metal Editor Support" under other settings for the ios platform.

I used xcode 9.3 and I got this same error. But with 9.2 it works. The error may happen because of incompatibilities between the artifacts produced by the two xcodes. The project that threw the error included a framework built with xcode 9.2

I added libstdc++.tbd to "BuildPhases >> Link Binary With Libraries". It works for me.

I had to change the deployment target to get it working

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