How to build a library for two architectures (simulator, iphoneos) in Xcode

I made a small library for the iPhone that I would like to redistribute, but I can’t find how to compile it to work with both the simulator and iphoneos. I know there is a way to build lib.a for both architectures, but I cannot figure it out.

+5
source share
4 answers

First you obviously need to put your code in the framework. This is normal for binding to your application, which exists in one project, but, as you noticed, iPhone does not support dynamic linking.

, google, script, SDK iPhone iPhone Simulator. fooobar.com/questions/565018/.... , , .

+1

lipo , , armv6 armv7.

+1

" " Xcode i386, iPhone ( , , , - ).

0

This is a kind of batch work with multiple assemblies. Thus, the script is a suitable and regular solution. The key concept is the mixing team xcodebuildand lipo.

Please refer to my answer to this question: Create a live static library (device + simulator) using Xcode and SDK 4+

0
source

All Articles