To add files to your generic iOS library make sure the header file you want to include is in the target header section. Like this.


Note – if you click on the headers section and you don’t see the class you want to add, try dragging it from the left project area into the header section. Thank you Johan.



Screen Shot 2015-11-24 at 7.25.35 AM

Screen Shot 2015-11-24 at 7.25.55 AM

Trouble shooting

Linker Errors

If you get linker errors like this

Screen Shot 2016-02-16 at 4.20.04 PM

Add the offending file *.m to the compile build phase.


Screen Shot 2016-02-16 at 4.20.24 PM

Drag it over from the left into Compile Sources. Then try again. It should work.

Linking error in library

If you get an error in your core library passes the build but fails when you run the tests

Screen Shot 2016-02-16 at 4.51.09 PM

Check your test build scheme and verify that you don’t have the file added here also. It should only be added to one build scheme – probably the project. But not both.

Screen Shot 2016-02-16 at 4.51.36 PM

Screen Shot 2016-02-16 at 4.55.52 PM

Can’t find header

Remember that when you add a new file to the sublibrary, you need to add it to the public headers of the sublibrary.

Screen Shot 2016-03-09 at 9.44.08 AM.png