Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Universal custom iOS framework using Xcode 6.4

I have created a custom iOS framework using Xcode 6.And I tried many scripts for making the framework universal(for simulator and device).But none of them worked for me.Please suggest me a way to create a custom universal framework for iOS in Xcode 6.

like image 395
Vork Avatar asked Sep 01 '15 07:09

Vork


1 Answers

To merge two binaries into a universal binary through the terminal:

First compile the device binary, then compile the simulator binary separately.

Locate both binaries. If you want to check which architectures are compiled into each you can run this command in the terminal:

lipo -info /path/to/binary

Example output:

Architectures in the fat file: /path/to/binary are: armv7 arm64

Now you can merge both binaries into one:

lipo -create /path/to/simulator/binary /path/to/device/binary -output /path/to/output/binary

The output binary will have both simulator and device architectures.

like image 155
SomeGuy Avatar answered Nov 10 '22 08:11

SomeGuy