Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Categories/Interfaces From Static Libs Not Autocompleting?

Thanks to this post and the now built-in static library template, I am able to put some of the pieces of my project elsewhere. Everything compiles with no warnings and runs fine. However, I used to get autocomplete for the categories in my import statement. This is no longer happening. How can I get autocomplete for categories in a static library?

like image 502
Dan Rosenstark Avatar asked Sep 27 '10 16:09

Dan Rosenstark


2 Answers

Take the info of your project's 'Target'

Go to 'Other Linker Flags' and add '-all_load'.

Hope this helps :)

like image 60
jithinroy Avatar answered Oct 01 '22 13:10

jithinroy


The problem is that XCode doesn't know where to look for your header files.

To fix this, do the following - In the "User Header Search Paths" of your app's target, point to the location of your category header. That tells XCode where to look for it, and autocomplete should work. In case of multiple targets, you could fix it for each target or at the project's settings.

like image 23
Tejas Avatar answered Oct 01 '22 15:10

Tejas