0

This is the warning:

ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks'

How can I fix the problem (if any)?

Vatsal Manot
  • 17,695
  • 9
  • 44
  • 80
jerfin
  • 803
  • 1
  • 13
  • 28
  • Does the app work in the Simulator? Does everything work as intended? – TheInnerParty Nov 07 '15 at 06:41
  • yes, app is working but why do i get this warning. – jerfin Nov 07 '15 at 06:43
  • the error means **'-F/Applications** some framework path is missing , check once for reference see this link http://stackoverflow.com/questions/27772151/apple-mach-o-linker-warning-directory-not-found-for-option – Anbu.Karthik Nov 07 '15 at 06:44

2 Answers2

1

This is a common error when converting a older project to Swift 2.x in Xcode 7 (though you might see it in other conversions, too). Specifically, I frequently see this error in the tests target when opening old projects:

enter image description here

This is often a result of incorrect value in the "Framework Search Paths" of the tests target:

enter image description here

If you remove the string in that "Framework Search Paths" for the appropriate target, that error will go away. For some reason, Xcode doesn't generally introduce this error in the main target, but only the tests target.

--

As an aside, when opening up an old project, it's good practice to select the target and then choosing "Validate Settings..." from the "Editor" menu. A lot of cryptic error messages will be resolved when you do that.

Rob
  • 415,655
  • 72
  • 787
  • 1,044
0

Go to Project Target->build Phase Check is there any red mark in file.enter image description here

Check The copy Bundle Resource ,compile Source everything ,if you are upgraded to xcode 7 ,then check the path if there is no red mark .

if you are using any third party library please give the path for that.

enter image description here

That search path is available in build setting in project target..

Hope this will helps you :)

Kishore Kumar
  • 4,265
  • 3
  • 26
  • 47
  • if my answer is correct please choose it as right @Arun ,may be it will help to others who struggle with the same issues ..... – Kishore Kumar Nov 07 '15 at 11:40