3

I have totally no idea about what does it mean: ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks'

Yunfei Lu
  • 389
  • 1
  • 5
  • 18
  • possible duplicate of [Xcode 7 Beta Library search path warning](http://stackoverflow.com/questions/30827022/xcode-7-beta-library-search-path-warning) – Paul R Sep 21 '15 at 15:10

5 Answers5

13

For me it ended up being in the TestTarget Build Settings.

  1. Go to Build Settings
  2. Click the up/down arrows next to your project name (above the Basic/All buttons) to select your Test Target
  3. In the search bar, type in Search Paths
  4. Delete any conflicting paths under the Framework Search Paths or Library Search Paths
  5. Clean
  6. Build

In my case, I had a path under Framework Search Paths pointing at Developer/Library/Frameworks

JasonH
  • 1,221
  • 2
  • 19
  • 19
4

Go to Project Settings, and delete/remove excess framework paths that you don't need.

or Click on projects CLick on build settings and then under library search paths, delete the paths.

UPDATE:

if you cannot find it, then click on 'Find', then 'Find in Project', search 'path', you may then get the result, from there select framework search paths. you will see framework search paths. I hope this helps.

Nix
  • 142
  • 3
  • 13
  • I had nothing in framework path either. When I checked framework path for my project's tests, that's where I did have a framework path. I removed that, cleaned and built, and the error is now gone. – Scott Kilbourn Sep 18 '15 at 03:38
1

I meet a same problem.And I resolve it by https://forums.developer.apple.com/thread/3729

You can click on testsTarget and click build settings and open the Framework Search Paths to remove the warning Path.

warren
  • 11
  • 1
0

In my project I was using Carthage to implement the Pod. The problem I was having is that I had not yet installed Carthage on my machine and it was necessary to give Build

$ brew install carthage
$ carthage build
-1

What is working for me is:

  1. Go to ' General ' in Xcode and click 'Embedded Binaries'

  2. Add the .dylib and .a file to your project

  3. Lastly, goto 'Build Settings' search for 'Other Linker Flags' ,then copy your library commad line argument and add it there.

Retterdesdialogs
  • 3,180
  • 1
  • 21
  • 42