I have created an Xcode 4 project template for iOS that needs to reference sqlite3.dylib. I can get the template to create a valid project if I set the PathType to Absolute for sqlite3.dylib in the Definitions element of the template.
I would like to be able to define the PathType to be relative to the SDK, can anybody offer suggestions as to what the correct PathType is to make the library reference relative to the SDK.
Thanks.
This one took me a couple of hours. I also faced the same problem and without any documentation from Apple it was nearly impossible to figure out. I did some reverse engineering on the XCode binaries and I found an evidence in the
Xcode3UIbinary. They defined the following (internal) enum:I tested it and definitely it was the case. Following are ALL valid values for PathType:
I think you are very interested in the “CurrentSDK” value.
Hope this helps & Regards, Kristian