Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Game with Sprite Kit Intro to Sprite Kit Project Setup

why don't i have header and implementation files?

when i created a swift spriteKit project, the files aren't the same and i only have the app delegate, game scene.sks - WHAT IS THIS?!, game.scene and gameviewcontroller. Why does Amit have .h and .m files and i don't?

by the way I'm running Xcode 6.1

.h & .m are ObjC files, upon Swift they did away with those files, now if you are combining Swift and ObjC you might need to create a bridging header file, which you can do by creating a new file and asking for a .m file and it should ask if you want a bridging header.

I'm running on the assumption here that you are combining languages since I don't have much info to go on. Cheers.

1 Answer

Hey Mark,

You should be able to use the Objective-C Sprite Kit in Xcode 6 by doing the following:

1 - Open Xcode.

2 - File > New > Project

3 - (Under iOS) Application > (Select) Game > (Click) Next

4 - Fill in the normal information, except under Language:, select Objective-C

5 - After filling out the rest of the information properly, click Next and proceed as normal.

Good luck! -- Kyle