‘ld: warning: directory not found for option’

2018-12-31 16:57发布

When I'm building my Xcode 4 apps I'm getting this warning:

ld: warning: directory not found for option '-L/Users/frenck/Downloads/apz/../../../Downloads/Google Analytics SDK/Library'
ld: warning: directory not found for option '-L/Users/frenck/Downloads/apz/../Google Analytics SDK/Library'

But I do not have Google Analytics in my app, I deleted all of it how can I remove the error? And archiving an app gives me the error:

clang: error: no such file or directory: 'armv6'
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

I've tried so many things but I'm still getting this error when I'm trying to make an .IPA file

标签: xcode
24条回答
路过你的时光
2楼-- · 2018-12-31 17:26

Do not forget to create the same configuration for Pod project in your workspace, If you change into MainApps new configuration.

For example,

In my case, to resolve this issue I had to create ReleaseOfficial configuration as well for Pod projects when I created ReleaseOfficial configuration for my MainApp.

查看更多
弹指情弦暗扣
3楼-- · 2018-12-31 17:29

You need to do this:

  1. Click on your project (targets)
  2. Click on Build Settings
  3. Under Library Search Paths, delete the paths

And regarding the second error, sorry i can't help you out with that one. Hope someone else can help you out.

查看更多
其实,你不懂
4楼-- · 2018-12-31 17:29

This is what worked for me:

  1. Click on Project
  2. Click on Build Settings
  3. Search for "Framework Search Paths"
  4. Clear the path and type "$(inherited)"
查看更多
其实,你不懂
5楼-- · 2018-12-31 17:29

I had a similar problem that went away when I created a new scheme and used it to rebuild???

查看更多
梦该遗忘
6楼-- · 2018-12-31 17:30

In my case the problem was Framework Search paths that had incomplete, dead, old links or multiple frameworks of same type. Remove them and your project will compile without any problem.

be sure to do Build -> clean

enter image description here

查看更多
呛了眼睛熬了心
7楼-- · 2018-12-31 17:30

For me I have also Tests enabled. The search path for tests was also filled incorrect.

Clear the Framework Search Path for both the regular code and the test code!

查看更多
登录 后发表回答