Project Navigator lists the files that make up our project.
#SWIFT SHARE MENU GITHU CODE#
When you click the "Create" button at the bottom right of the window that opens, your Pod will be transferred to your GitHub.Īfter transferring your code to GitHub, click the "Project Navigator" button, which is the 1st from the left among the buttons at the top of the Navigator section of Xcode. There are 4 folders here, right click on the "Remotes" folder, which is the 3rd folder from the top, and click on the "New 'POD NAME' remote" button. The thing to keep in mind here is that Xcode is upgrading the minimum iOS version your sample project and Pod can run on from 9.0 to 12.0.Īfter all the warnings disappear, click on the "Source Control Navigator" button, which is the second of the horizontal buttons at the top of the Navigator section on the left.
#SWIFT SHARE MENU GITHU UPDATE#
Again, update the settings of your project with the “Next, Next, Next” method.
![swift share menu githu swift share menu githu](https://cdn.vox-cdn.com/thumbor/WbCWNJ6jOCvaKDpi_47nXAcmGnQ=/0x53:1024x629/1600x900/cdn.vox-cdn.com/uploads/chorus_image/image/33830411/DSC_1566.0.jpg)
In the second and third warnings, Xcode is telling you that it can update the settings of your Pod and our example project to the recommended settings.
![swift share menu githu swift share menu githu](https://miro.medium.com/max/1400/1*kOHona6fYBud1jucRDxM1Q.gif)
Click on the warning and convert your code of “Next, Next, Next” method to Swift 5 code. In the first warning in this section, Xcode tells us that it can convert your project's code to Swift 5 code. When you click on the sign, the Navigator part of your Xcode will switch to the Issue Navigator tab. Step 4: Updating our Pod's settings and importing our Pod to GitHubĪfter creating your pod, you'll see a yellow warning sign appear to the left of the top middle bar of your Xcode. If you followed the guide correctly, congratulations, you have integrated your GitHub account into your Xcode.
#SWIFT SHARE MENU GITHU PASSWORD#
In the renewed window, paste your e-mail address that you used to open your GitHub account in the “Account” section, and your Token password that you copied from the green box in the “Token” section and press the “Sign In” button. Select GitHub from the list in the window that opens and click the “Continue” button. Click the “Accounts” button at the top of the window that opens, and then click the “+” button at the bottom left. After returning to Xcode, click the Xcode tab in the Menu Bar and click the "Preferences" button. After checking the boxes, we press the "Generate token" button at the bottom and our token is created.Ĭopy your password in the green box on the page we are directed to and return to Xcode. Here you need to tick “repo”, “admin:repo_hook”, “delete_repo” respectively. In the Select scopes section, you specify the access permissions of your Token. In the Expiration section, we are asked to specify the expiration date of your Token, we can choose the "No expiration" option because we will use it in Xcode. In the Note section of the new page that opens, you must enter the name of the Token you want to create, I briefly write "Xcode". After opening a GitHub account, you should click the profile icon at the top right, click the "Settings" button from the drop-down list, and click the "Developer settings" button in the list on the left of the page you are directed to.Īfter pressing the button, you should press the "Personal access tokens" button on the left of the page you are directed to, and when the page is updated, you should press the "Generate new token" button, which is the 2nd button from the top right. To sign in to Xcode with GitHub, you must first create a GitHub account. If you are already logged into your Xcode with GitHub, you can skip this step and go to Step 4.
![swift share menu githu swift share menu githu](https://raw.githubusercontent.com/Dimillian/SwiftHN/master/git_images/images.png)
If you followed the steps correctly, an Xcode window will open when the command finishes running. In the fifth question, you are asked whether you want to do View-based testing, write “No” and continue. In the fourth question, which frameworks you will use to test your Pod, write “None” and continue. In the third question, you are asked whether to include a demo application with your Pod, write “Yes” and continue. In the second, you are asked in which language you will write your Pod, write "Swift" and continue. In the first of the questions, you are asked on which platform you will use your Pod, write “iOS” and continue.