To create a new Xcode* project:
- Launch the Xcode application.
- Select
File > New
> Project...
The
Choose a template for your new project window opens.
- In the left pane, select
macOS > Application.
- Select a template, for example:
Command Line Tool, and click
Next.
- Name your project, for example:
Hello World, then enter a string for the
Organization Name and
Organization Identifier and select
a language. Click
Next.
- Specify a directory for your project, and optionally select
Create local git repository for this project to place your project under version control.
- Click
Create.
Xcode creates the named project directory, with an
.xcodeproj extension. Your new project directory contains a
main.cpp source file and other project files.
Each Xcode project has its own
Project Editor window that displays project source files, targets, and executables.