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:
and related:
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?
source to share
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.
source to share
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.
source to share