简体   繁体   中英

How to build static ios framework in xcode 6?

I have Objective-C++ project, it contains "include" directory with headers, and 2 folders with .a and .lib files (one folder for i386 and other one for arm). How can I combine all of it to one .a file or Static iOS Framework (for xcode6 https://github.com/kstenerud/iOS-Universal-Framework/raw/master/screenshot.png ) ?

lipo can help to solve the question, but need to add -create parameter.

lipo -create simulator.a device.a -output universe.a

Then check universe.a

lipo -info universe.a

If built in Xcode 6, expect output is "Architectures in the fat file: universe.a are: i386 x86_64 armv7 arm64 "

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM