Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode project/app name with spaces issue - framework not found

Tags:

Is it possible that Xcode 6.1 doesn't finds my previously imported frameworks because of my 3 word app name? I'm using Parse and never ever had any problems with it. But actually when I open my project in Xcode I got an error that the framework doesn't found, which is absurd because it worked well earlier and I don't removed it. However if I delete the frameworks and add them again everything is fine. Am I doing something wrong or is it an Xcode bug?

ld: warning: directory not found for option '-F/Users/donip/Documents/Fl Travel Guide/Fl'
ld: warning: directory not found for option '-FTravel'
ld: warning: directory not found for option '-FGuide'
ld: framework not found ParseFacebookUtils
clang: error: linker command failed with exit code 1 (use -v to see invocation)
like image 975
rihe Avatar asked Jan 26 '15 18:01

rihe


3 Answers

Simply enclose your framework path in double quotes(""). For example:

"$(SRCROOT)/my framework/path"

enter image description here

like image 105
Muhammad Zeeshan Avatar answered Sep 21 '22 05:09

Muhammad Zeeshan


"directory not found for option '-F/..."

Here '-F/..' shows it's a Framework Error. There could be 2 reasons for this.

  1. Missing escape "\" character.

    It seems search paths are broken up on several lines in the Framework Search Path or Library Search Paths. Or having spaces in path. Add the escape "\" character to fix it.

  2. Click on your project (targets)-> Click on Build Settings-> Under Frameworks Search Paths, delete the paths.

like image 28
Saurabh Shukla Avatar answered Sep 24 '22 05:09

Saurabh Shukla


I'm sure this is Xcode bug. Since a lot of other developers have problems with frameworks paths, such as Absolute path issues I'm sure You will find other issues too in SO.

I have encountered this issues myself too. Best solution for me just commit working project files, and then reset/revert new/wrong changes which done by Xcode.

like image 43
David V Avatar answered Sep 21 '22 05:09

David V