To test your build on an iOS device, you need a free Apple ID. However, to use services such as Game Center or In-App Purchases, and to submit your game to the App Store, you must register with the Apple Developer Program. For more information about the differences between an Apple ID and Apple Developer Program membership, see the Apple support documentation on Choosing a Membership.
Xcode 是一个由 Apple 开发且仅适用于 Mac 的集成开发环境 (IDE),包含一套软件开发工具。您可以使用 Xcode 开发适用于 macOS、iOS、WatchOS 和 tvOS 的软件。
从 App Store 下载 Xcode。
要将您的 Apple ID 添加到 Xcode,请按照 Apple 文档中的将 Apple ID 帐户添加到 Xcode (Adding an Apple ID account to Xcode) 部分介绍的步骤进行操作。