Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding a framework in Xcode

Im trying to add a third party framework in Xcode but I'm getting an error that it can't be found

error: MKAbeFook/MKAbeFook.h: No Such File or Directory

I've added it in the Linked Frameworks group and added it to the Target for this project. I've also added it to a new Copy Files build phase for that target.

Basically I've followed the instructions here: http://pointlesscrap.net/mkabefook/desktop/gettingstarted

Any ideas where I'm going wrong?

like image 538
Gromski Avatar asked Aug 28 '26 12:08

Gromski


1 Answers

Best way to diagnose this is to post the compiler invocation line, not just the error (you can just drag and drop the line from the Build Results window that says "Compiling foo.m"). My expectation is that you don't have a Frameworks Search Path set up for the location of the framework. Xcode usually adds that manually when you add the framework, but if you put it in certain kinds of places, or added it in certain ways, you need to manually point your target's Framework Search Paths at its directory.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!