Joel Derfner
Joel Derfner

Reputation: 2207

library linked but Xcode says "file not found."

This just started happening with my project and I have no idea what to do.

I've been using the Parse framework and everything has been fine so far. But now, even though the library is included:

enter image description here

and linked:

enter image description here

I still get a "'Parse/Parse.h' file not found" error when I import it into classes. Even weirder (at least to me), the project still builds and runs. When I build or clean the project, the warning disappears, but then it reappears right away.

Any idea how I can fix this?

Upvotes: 3

Views: 4216

Answers (5)

Artin
Artin

Reputation: 241

For all who have not found issue:

  1. Go to Build settings and search for "Framework Search Paths", then remove everything and put ./ and make it recursive (by double-clicking on it)

  2. IMPORTANT - Don't download Parse framework on Windows and then copy to Mac! inside framework there are some links and while copying they get corrupted. Download the framework directly from Mac and when added to xcode make sure it has "Headers" folder under it in XCode frameworks.

I hope it helps some people.

Upvotes: 6

ZwEin
ZwEin

Reputation: 124

I have the same problem when I use the demo called "TodoTable", and I solve this by deleting the link in target -> Build Phases -> Link Binary With Libraries -> Parse.framework, and then, adding it again. You may do it by clicking + button, and choosing Add other..., then, in the project folder, you can find the Parse.framework file. After that, rebuilding your project, and it will be ok.

Upvotes: -1

simalone
simalone

Reputation: 2768

How many targets do you have? If more than one, maybe the debug target doesn't include the framework.

Upvotes: 0

nicky_zs
nicky_zs

Reputation: 3773

The compiler will search for the header files in a special search path. In your case, it seems that the file "Parse/Parse.h" is not in your compiler's header file search path. Check this in your compiler settings.

Upvotes: 0

Bharath
Bharath

Reputation: 324

have you tried by changing the #import "Parse/Parse.h" to #import ?

Upvotes: 0

Related Questions