讲完Xcode的Overview后,我们开始创建第一个工程。
和其它IDE一样,Xcode也是按照向导和模板创建工程,具体官方的创建ios app的步骤如下:
First create your Xcode project from a template of a common style of app or framework, and then modify the project as you like. The Xcode templates include essential project configuration and files that help you start developing your app more quickly.
1.Launch Xcode and in the “Welcome to Xcode” window, click “Create a new Xcode project.”
Alternatively, choose File > New > Project.
2.Under the operating system that your app will run on, select Application, select a template from the list of templates, and click Next.
For example, to create an app with a single empty window, for iOS apps select, Single View Application, and for macOS apps, select Cocoa Application.
3.In the sheet that appears, fill in the text fields and choose options from the pop-up menus to configure your project.
You must enter a product name and organization identifier to continue to the next sheet. You should also enter an organization name (if you are an individual, enter your name). The following screenshot shows options for creating an iOS app.
4.From the Team pop-up menu, choose your team.
If the “Add account” button appears, optionally add an account and select a team now. Otherwise, skip this step and assign a team later.
5.From the Language pop-up menu, choose a programming language.
6.To add test targets to your project, select Include Unit Tests and Include UI Tests.
7.Click Next.
A sheet asks you where to save your project.
8.Specify a location for your project, optionally select “Create Git repository on” to use source control, and click Create.
The main window for your project appears, similar to the iOS app main window below.
本文详细介绍了使用Xcode创建iOS应用程序的过程。从选择模板到配置项目细节,包括指定团队、编程语言及添加测试目标等步骤。
233

被折叠的 条评论
为什么被折叠?



