The library is linked, but Xcode says "file not found".

This just started with a project of mine and I have no idea what to do.

I am using the Parse framework and everything was fine so far. But now, although the library is included:

enter image description here

and related:

enter image description here

I still get the "Parse / Parse.h" file not found "error when importing into classes. An even weirder (at least to me) project still builds and works. When I create or clean up the project, the warning disappears, but then it appears immediately.

Any idea how I can fix this?

+3


source to share


5 answers


For anyone else who didn't find the problem:

  • Go to Build Settings and look for Database Search Paths, then delete everything and put. / And make it recursive (by double clicking on it).

  • IMPORTANT: Do not download the framework on Windows or copy it to Mac! there are some links inside the frame and when copied they get broken. Download the framework directly from Mac and add it to xcode, make sure it has a Headers folder in Xcode frameworks.



I hope this helps some people.

+6


source


Have you tried changing #import "Parse / Parse.h" to #import?



0


source


The compiler will look for header files in a special search path. In your case, it seems that the file "Parse / Parse.h" is missing in the search path of the compiler header file. Check it out in your compiler settings.

0


source


How many goals do you have? If more than one, it is possible that the debug target does not include the framework.

0


source


I have the same problem when I use a demo called "TodoTable" and I solve it by removing the link in target -> Build Phases -> Link Binary With Libraries -> Parse.framework

and then adding it again. You can do this by clicking the button +

and selecting Add other...

, then in the project folder you can find the file Parse.framework

. After that, rebuild your project and you should be fine.

-1


source







All Articles