Apple Mach-O Linker Warning "Directory Not Found For Option..." Apple Mach-O Linker Warning "Directory Not Found For Option..." ios ios

Apple Mach-O Linker Warning "Directory Not Found For Option..."


Go into your Projects settings and remove the excess Frameworks paths in there that you don't need.

Here's what it looks like when I open my project's build settings:

Open Build Settings

Click on "Framework Search Paths" and you should find the bogus paths listed in there, which you can delete.


I sat on this issue for like more than a week before figuring out. For me the issue was a missing pod reference. And the error it was showing in xcode was weird. When I say weird they don't tell you what exactly is missing or the error.See the image below:And the issue was around the test target. I was exhausted trying out all the Framework search paths and Library Search Paths reset or removing them from the project as well. Nothing worked.

And finally I did a guess and added the Google analytics pod to both test target and main app target and bang..it started working. Crazy!!!The error here in the image if you see denotes something to do with architecture. I even played around with the architecture settings.

So it's all about a pod missing in the target that you are trying to compile.Hope this helps.

GGL analytics pod was not found