Create Podspec and release it to github spec, podspecgithub

Source: Internet
Author: User

Create Podspec and release it to github spec, podspecgithub

Yesterday, it took some time to make your code into a framework. However, it was a headache to migrate or update a project every time. Simply, it followed the fashion, put all the code into git for management, and install it directly through cococapods. The following figure shows how to create it. the steps required after the podspec file are as follows:

1. Check whether the local test is normal

Pod lib lint -- allow-warnings

2. After uploading git to oschina or github, mark the current source code version number. Otherwise, an error will be reported during the press conference.

Git tag '1. 0.1 'git push -- tags

3. Set the version number of the local pod.

Set the new version to 1.0.1set the new tag to 1.0.1

4. you must register a cocoapods account. You only need an account. After successful registration, a token is returned. However, you must first verify the verification code sent to you by cococapods to prove that the current email address is yours (note: token is time-sensitive. If it expires, repeat this step)

Pod trunk register xxxxx@qq.com 'author name' -- description = 'macbook Pro' -- verbose

5. All the preparation steps have been completed. Next, upload your own podspec file to the official repository.

Pod trunk push xxxx. podspec -- allow-warnings

By now, your podspec file has been published. You can use pod search to check whether your project has been uploaded successfully !!!!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.