Even though you have an Xcode project of type framework or static library, how do you provide your resource to others? Additionally, how do you provide instructions that are simple and easy to understand for the users of your product? If you are going to create a Cocoa Touch Framework, kodmunki has the best guide out there. At the time of writing this iOS 9 has 84% adoption, iOS 8 has 11%, and earlier versions of iOS comprise the remaining 5%.Īfter you have built your framework, distribution will become your most important concern. Generally the base deployment target is two versions below the latest one, so when iOS 10 is released (likely around 14-09-2016), we can expect the base to shift to iOS 8 for many publishers. If you are creating a framework for large scale distribution, you should be aware that many big publishers are still (at the time of this writing) supporting iOS 7 as a base deployment target. The main thing to consider thus far is the base deployment target of apps that will be using your framework. Otherwise if you only need to support iOS 8 and onwards, then you can create a Cocoa Touch Framework in Swift. If you need to support iOS 7 and you want to use Swift, you will need to provide your source files to be included as raw files in the host app project. If you need to support iOS 6 then Swift is definitely “off the table”. On that topic, Swift is supported back to iOS 7. So if you decide to use a Cocoa Touch Static Library, you need to use Objective-C. The next thing you should be aware of is that Cocoa Touch Static Libraries do not support Swift. If you need to support iOS versions before iOS 8, you should consider using a Cocoa Touch Static Library and writing your code in Objective-C. From a practical perspective, frameworks are only supported from iOS 8 onwards, whereas static libraries go “all the way back” to iOS 6, which is as far back as you can build an Xcode project using Xcode 7. The first thing to know about is the difference between a Cocoa Touch Static Library (aka static library) and a Cocoa Touch Framework (aka framework). ![]() This post will attempt to answer these questions based on your project’s concerns and provide additional information and resources to make your static library or framework project go smoothly. How will you provide instructions to use your library in a manner that will be easy to understand?.Should you use a Framework or a Static Library?.Kirk enjoys DJing in the Baltimore Club Music scene, tidy code frameworks, and definitely being called Cappin’ Kirk by his co-workers. Kirk is on twitter at Software Engineer Kirk Elliott’s first post, 7 Things to Consider When Making iOS and Android Apps with Cordova or PhoneGap, got a lot of love, so we’re excited to have him back. From time to time we hand the reins over to one of our teammates in a series we call, Talk Nerdy to Me. ![]() At AddThis we have the best geeks on the planet, and it’s our duty to share their knowledge and passion with the world.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |