Setup Xcode

We use Xcode to develop applications for the App Platform. This article provides an introduction to getting started with development.

目次

Register to the Apple Developer Program

If you aim to develop an app, access documentation and sample code, and run the app you’ve developed on your device, all you need is an Apple ID. In that case, you only need an Apple ID. You can use the Apple ID you use for iCloud or create an Apple ID for development.

I use a separate Apple ID for development, distinct from my daily-use ID. This is because I became a member when the Apple Developer Program was still the Apple Developer Connection when Apple IDs were not yet available.

Sometimes when I used Japanese for names and addresses would go wrong, so I am glad I kept them separate. (It appears Apple already fixed this issue.)

You should be a member of the Apple Developer Program if you want to deploy your apps in the App Store. You need to pay a membership fee yearly, but you can get many benefits when you are a member. For example, you can generate code signing certificates and sign your developed macOS applications. In addition, your macOS application is no longer blocked by the GateKeeper, even if they are deployed out of the Mac App Store.

When you deploy the iOS, tvOS, and watchOS apps, you must become a member of the Apple Developer Program. In addition, you can deploy Apple Platform applications for other than macOS in the App Store only. The App Store is not needed for enterprise deployment, but enterprise certificates are required.

For more information about the developer program, please see the following website.

Install the Xcode

Xcode is available in the Mac App Store and Xip versions. They have the same functions. You can choose one of them with your needs. I use the Mac App Store version on my main machine to know that Xcode has been updated. When I need an old version of Xcode, I use the Xip version.

The Mac App Store version takes longer than the Xip version to update or install, so I use the Xip version on sub-machines. Apple Silicon Macs have a shorter installation time than Intel Macs. However, the Store version still takes longer than the Xip version.

Mac App Store version

Use the App Store app to install or update the Mac App Store version. It is simple. Automatically checks updates. You can know soon that the updater is available. On the other hand, there is a weakness, and updates take time. You should update it when you have time to spare (it can take anywhere from 30 minutes to an hour).

Search for “Xcode” in the App Store app.

Xcode in the App Store
Xcode in the App Store

Xip version

You can use the Xip version if you are a member of the Apple Developer Program. You can download the Xip version from “More Downloads” page on the Apple Developer Site. You can also download old versions.

Double-click the downloaded the Xip file, and the Xcode.app will be saved. Move it to the applications folder then the installation is completed.

Downloaded xip file
Downloaded xip file

Setup on the first time

A license agreement dialog will appear when Xcode is launched for the first time, when updating the SDK, etc. You must agree to the license to use Xcode and the iOS SDK. Please click the “Agree” button to accept the license.

Xcode and iOS SDK License Agreement dialog
Xcode and iOS SDK License Agreement dialog

If you agree, an authentication dialog will appear to begin the installation of the required components. Enter the password of the logged-in user or authenticate with Touch ID. If the authentication is successful, the component will be installed.

Installing components
Installing components

The “Welcome” window appears when the installation is completed.

Welcome window
Welcome window

Sign in with Apple ID

Set the Apple ID to be used for development in Xcode as follows. If you have enrolled in the Apple Developer Program, use the Apple ID that you have enrolled with.

STEP
Select the “Preferences…” from the “Xcode” menu.
STEP
Open the “Accounts” tab.
STEP
Click the “+” button in the accounts list on the left side of the window.
Accounts tab
Accounts tab
STEP
Select the “Apple ID” and click the “Continue” button.
Select the "Apple ID"
Select the “Apple ID”
STEP
Enter your Apple ID and click the “Next” button.
Enter your Apple ID
Enter your Apple ID
STEP
Enter your password and click the “Next” button.
STEP
If the multi-factor authentication dialog is displayed, follow it and enter your one-time passcode.
STEP
When you successfully sign in to your Apple ID, it will be displayed in the list.
Sign in successfully
Sign in successfully

Highly Relevant Articles

著書紹介

Authored Books

よかったらシェアしてね!
  • URLをコピーしました!
  • URLをコピーしました!

この記事を書いた人

Akira Hayashi (林 晃)のアバター Akira Hayashi (林 晃) Representative(代表), Software Engineer(ソフトウェアエンジニア)

アールケー開発代表。Appleプラットフォーム向けの開発を専門としているソフトウェアエンジニア。ソフトウェアの受託開発、技術書執筆、技術指導・セミナー講師。note, Medium, LinkedIn
-
Representative of RK Kaihatsu. Software Engineer Specializing in Development for the Apple Platform. Specializing in contract software development, technical writing, and serving as a tech workshop lecturer. note, Medium, LinkedIn

目次