![]() To install the latest version of CocoaPods, execute the following command: sudo gem install cocoapods -preĬreate a new Xcode project for your framework and select the Cocoa Touch Framework template:Įnter a Product Name and choose Swift as the project language. If you already have CocoaPods installed (check by running pod -version) and its version is older than the aforementioned version, first uninstall it by running sudo gem uninstall cocoapods. Obviously, to create a pod, you need to install CocoaPods.įor Xcode 8, you'll need CocoaPods version 1.1.0.rc.3 or newer. ![]() That's when distributing a universal, binary framework is a must. You might work for a company that develops an SDK which, for competitive reasons, must not be open source. Sometimes, you are simply not at liberty to disclose the source code of a CocoaPod. ![]() Publishing a standard, open-source CocoaPod is relatively straightforward - lots of tutorials are widely-available that outline the process rather efficiently - but there lacks a definitive guide on how to publish a universal, binary CocoaPod: one that does not disclose its source files and supports both physical iOS device architectures ( armv7, arm64) and virtual iOS simulator architectures ( i386, x86_64). Publish a Universal Binary iOS Framework in Swift using CocoaPods Oct 18, 2016ĬocoaPods is the most popular dependency manager for Swift and Objective-C Cocoa projects, but chances are, you already knew that if you're here, wanting to publish your own CocoaPod to be used by others in their own projects.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |