Skip to content

πŸ‘©πŸ»β€πŸ’» πŸ§‘πŸ½β€πŸ’» Subscribe and Read us on Substack to Get Full Access to Our Posts


How to upload your Xcode Project to Github – Tutorial

In this article, we will walk you through the process of setting up GitHub in Xcode and uploading your SwiftUI project to your GitHub account. The steps will include configuring GitHub in Xcode, creating a Git repository, and pushing code updates. Let’s dive in!

Step 1: Create a New Xcode Project

  1. Open Xcode and create a new SwiftUI project.
  2. Name your project. In this example, we’ll call it “Xcode To Github Demo App.”

Step 2: Add Your GitHub Account to Xcode

  1. In Xcode, navigate to Xcode > Settings (or Preferences, depending on your macOS version).
  2. Go to the Accounts tab.
  3. Click the + button to add a new account, and select GitHub.
  4. Enter your GitHub username.
  5. You’ll need a personal access token to authenticate. Let’s generate one.

Step 3: Generate a Personal Access Token on GitHub

  1. Log in to your GitHub account, tap on your profile icon and go to Settings.
  2. Scroll down and select Developer settings (on the left).
  3. In the left-hand menu, click Personal access tokens > Tokens (classic).
  4. Click Generate new token, and confirm by entering your GitHub password.
  5. Name your token (e.g., “Xcode”), and set an expiration date or choose No expiration.
  6. Check all the scopes to grant full access, then click Generate token.
  7. Copy the generated token.

Step 4: Link the Token with Xcode

...

πŸ”’ The remaining content of this article is only available on our Substack!

This Post Has 0 Comments

Leave a Reply

Back To Top
Search