How to make xcode automatically choosing the correct lib platform (.a)

I made two versions of my library to fit another platform as a device and simulator

How to make xcode automatically choosing the correct lib (.a) platform with the configuration of the target "base SDK"?

and using the same header files. I know that Admob can do this without any changes, but setting up a basic SDK.

+3
source share
1 answer

You can use lipo to merge the .a file from both platforms into a single .a file. As soon as you do this, it will automatically select the current binary platform. See here for instructions:

http://dev.byteclub.com/blog/1-iphone-sdk/48-how-to-almost-create-your-own-iphone-os-framework

+3

Source: https://habr.com/ru/post/1725158/


All Articles