Apple Mach-O Linker Warning “Directory Not Found For Option…”

我们两清 提交于 2019-11-27 11:52:28

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:

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.

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