Reputation: 6287
I made two version of my library to fit different platform as device and simulator
How to make xcode automatically choosing the correct platform lib(.a) with the config of the target's "Base SDK" ?
and By using the same header files. I know Admob could do this without any modify but configuring the Base SDK.
Upvotes: 3
Views: 175
Reputation: 11594
You can use lipo to merge the .a file from both platforms into one .a file. Once you do that, it will automatically choose the current platform's binary. See here for instructions:
http://dev.byteclub.com/blog/1-iphone-sdk/48-how-to-almost-create-your-own-iphone-os-framework
Upvotes: 3