We need a license when we upload code to Cocoapods. Common licenses are
The Apache License 2.0
GNU General Public License v3.0
MIT License
GitHub provides the most direct creation method, as shown in the following steps:
In the inputLICENSE
It will automatically appearChoose a license template
Options button, click
In order toMIT License
For example, select the license you want and clickReview and submit
There are two options at the bottom of the page
Select a Commit directly to the Master Branch.
Submit this license directly to the Master branch
Option 2 Create a new branch for this commit and start a pull request.
Create a new branch
Select Commit directly to the Master Branch. Commit to Master and click Commit New File