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 !!!!