‘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:48

go check out which framework is missing , then go to

=> Build Phases => Link Binary With Libraries

remove the library and then add back

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

I've looked into all [Library Search Paths - Framework Search Paths - Header Search Paths]. but there are no paths to remove, so I was able to make this alert go away by going into the Xcode bundle and creating an empty directory at the path location that the alert was complaining about.

查看更多
几人难应
4楼-- · 2018-12-31 17:48

Because of the custom directories that have entered to the search paths ( frameworks and library ), the project overrides pod's directories. so it can't find it.

To solve this problem, delete all custom directories from

Search Paths -> Library Paths and Framework Paths,

only see ${inherited}.

I hope this helps. It worked for me.

查看更多
还给你的自由
5楼-- · 2018-12-31 17:49

Make sure only 1 "libFlurry.a" selected in target

worked for me.

enter image description here

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

Follow this step-by-step solution:

  1. Click on your project (targets);
  2. Click on Build Settings;
  3. Under Library Search Paths, delete the paths;
  4. Add ./** on Library Search Paths.
查看更多
旧人旧事旧时光
7楼-- · 2018-12-31 17:52

you should check option for this:

Build Settings-> Framework Search Paths-> {input Your Project Path}

查看更多
登录 后发表回答