Mobile App Dev 2021W: Getting started with Xcode: Difference between revisions

From Soma-notes
No edit summary
No edit summary
Line 17: Line 17:
If you don't see this screen, don't worry, just select File->New->Project through the top of screen menus.
If you don't see this screen, don't worry, just select File->New->Project through the top of screen menus.


Once you start creating a project, you should see a project options screen that looks like the following if you've never run Xcode before:
You'll now be asked to select a template.  Select the multiplatform app template, as shown here:
 
[[File:Xcode-App-template.jpg|800px|Xcode app template]]
 
You should next see a project options screen that looks like the following if you've never run Xcode before:


[[File:Xcode-AddingAccount.jpg|800px|Xcode adding account]]
[[File:Xcode-AddingAccount.jpg|800px|Xcode adding account]]
Line 23: Line 27:
From here, you'll need to add an Apple account.  Click on Add Account, and it should take you to the following screen:
From here, you'll need to add an Apple account.  Click on Add Account, and it should take you to the following screen:


[[File:Xcode-ProjectOptions.jpg|800px|Xcode project options]]
Note that you do not have an account.  So, click on Add Account and you'll see a dialog with a list of configured accounts:
[[File:AccountAdded.jpg|800px|Account Added]]




Line 31: Line 40:




[[File:AccountAdded.jpg|800px|Account Added]]
[[File:Xcode-cert-create-1.jpg|800px|Xcode creating signing certificate 1]]
 
[[File:Xcode-cert-create-2.jpg|800px|Xcode creating signing certificate 2]]




Line 41: Line 52:


[[File:Xcode-choosing-platform.jpg|800px|Xcode choosing platform]]
[[File:Xcode-choosing-platform.jpg|800px|Xcode choosing platform]]
[[File:Xcode-cert-create-1.jpg|800px|Xcode creating signing certificate 1]]
[[File:Xcode-cert-create-2.jpg|800px|Xcode creating signing certificate 2]]
[[File:Xcode-App-template.jpg|800px|Xcode app template]]

Revision as of 04:10, 17 January 2021

Below are instructions on how to get a first SwiftUI app running in Xcode and ready to install on one of your iOS devices.

To follow this, you'll need a machine running MacOS Catalina or Big Sur and an Apple ID. You do not need a developer account; however, make sure that your device uses the same Apple ID as the one you configure below.

Installing Xcode

First, you need to download Xcode from the Mac App Store. Once you find it, installing it should be as simple as clicking on the install button. Once installed, you should see a screen that looks something like this:

Xcode install from the Mac App Store

Creating a project, part 1

Once you have Xcode installed, run it. When it starts, you should see a splash screen, as shown below. Click on create project as shown.

Xcode splash screen

If you don't see this screen, don't worry, just select File->New->Project through the top of screen menus.

You'll now be asked to select a template. Select the multiplatform app template, as shown here:

Xcode app template

You should next see a project options screen that looks like the following if you've never run Xcode before:

Xcode adding account

From here, you'll need to add an Apple account. Click on Add Account, and it should take you to the following screen:

Xcode project options

Note that you do not have an account. So, click on Add Account and you'll see a dialog with a list of configured accounts:

Account Added


Xcode create project 1

Xcode create project 2


Xcode creating signing certificate 1

Xcode creating signing certificate 2


Xcode setup, version control 1

Xcode setup, version control 2


Xcode choosing platform