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.
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.
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