Creating a reusable, sharable code across different projects and deploy with Carthage
This article has minimal version iOS 8 require, because Apple allow developer create their own dynamic framework since iOS 8。
Below are some references you can dig into it。
iOS Static vs Dynamic frameworks clarifications
Building a static iOS framework is a pain in the ass
OS Environment
macOS Sierra
Step 1: Create a new framework project
Just like create a normal project.
Then add your files into it.
Step 2: Share your framework
Make scheme sharable.
Step 3: Add files into your framework and finish.
First add your files into your framework then generate this framework by press commnad + B. After all, right click show in finder option with popup menu.
Step 4: Before Deploy
Run below code or see office guildline
|
|
Then checking the Carthage/Build folder.
Setp 5: Make a badge
add below into your Readme.md, it shows like
|
|
Step 6: Deploy it with private way
Deploy it to your personal git service such as BitBucket、GitLab、Github….etc.
Then add private URL inside Cartfile on any of your projects.
|
|
to be continue….
近期评论