PCH file rocks!
As a Java developer, I am very familiar with the concept of importing classes so that you can make references to them. One thing that I have just learned in my journey of iphone development is the PCH file in xcode.
Basically, adding an import here will be global for all your classes in the project. I am going to use the iphone location libraries, and had to do an import:
Part 2....
Well adding a reference to the system library to the PCH file does not cut to. Adding something to the PCH is analogous to putting your import statement into a java source file, it does not tell your runtime environment (ant, eclipse, whatever) where those classes are.
To do this, one needs to add your classes to the "Frameworks" in your xcode project. Here it a pic of the frameworks that you need to add your reference to. I chose "Add Existing Frameworks" and navigated to the Core Location folder on my system.

- Categories:

Comments
Post new comment