Home  >  Article  >  Backend Development  >  How to use xcode

How to use xcode

藏色散人
藏色散人Original
2020-05-29 11:39:426689browse

How to use xcode

How to use xcode?

The installation of Xcode is very simple, you can download it directly from the APP Store, here No longer.

Running a C language program on Xcode

To run a C language program on Xcode, you need to create a project first and then add source code to the project.

1) Open Xcode, select "Create a new Xcode project" to create a new project, as shown below:

How to use xcode

2) Next, select The type of project to be created is as shown in the figure below:

How to use xcode

##3) Select "OS X --> Application --> Command Line Tool" and click "Next" . Command Line Tool means "command line tool", which is a console program.

How to use xcode

Here you need to fill in some information related to the project:

Product Name: Product name, that is, project name.

Organization Name: Organization name, that is, the name of a company, individual, association, team, etc.

Organization Identifier: Organization identifier, which is a mark that is different from other organizations, such as ID number, company website, organization code certificate, etc.

Bundle Identifier: Program identifier, a mark that is different from other programs, consists of Organization Identifier Product Name.

Language: The programming language used in the project, select C language here.

4) Click "Next" and save the file to enter the current project, as shown in the following figure:

How to use xcode

The left side is the project directory, which mainly contains The files and resources used in the project. Click "main.c" to enter the code editing mode, where Xcode has created a "Hello World" applet for us. Click the "Run" button above to see the output results in the tab in the lower right corner.

The above is the detailed content of How to use xcode. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Related articles

See more