Marm
Marm

Reputation: 249

New to XCode - How to create a class?

I am new to Xcode, running version 8.0.

Right now I am going trough this

tutorial. (I am programming in C++). There the author is creating a class. Since he is not using Xcode and the other answers to a similar question are dealing with an older version, I am asking myself if someone can help me out.

Thanks in advance.

Upvotes: 0

Views: 3734

Answers (2)

JoakimE
JoakimE

Reputation: 1864

How to create a new c++ file in Xcode


To be able to run c++ files in Xcode you need to create a new project first.

File -> New -> Project

macOS -> Command Line Tool

Then in your project you can add files using the guide below

File -> New -> File

macOS -> C++ file

Upvotes: 2

K. Michał
K. Michał

Reputation: 1053

Right click on a side menu with your project -> new file -> ios source on left panel -> swift file on a right panel. That's pretty much it.

Upvotes: 2

Related Questions