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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With