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.
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
- Attempt to present UIAlertController on View Contr
To build and distribute frameworks:
In the framework project:
In Terminal:
To use the framework in another app:
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:
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.
as per your question to make custom universal framework you need to follow this steps or visit “http://www.raywenderlich.com/65964/create-a-framework-for-ios” as have made framework referring raywenderlich.
1.) Create a project.
2.) Add new target to your project by selecting Cocoa Touch Static Library. (For more reference visit: http://www.raywenderlich.com/65964/create-a-framework-for-ios)
3.) Now you need to do is set your static library as active scheme. Make sure you have added “arm64” in Build Settings in the tragets library.
4.) Select iOs device and make build. But for that you need to add script below to make it universal for all devices.
Script :