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 Objective-C Basics (Retired) Fundamentals of C Anatomy of a C program

Hang Wai Chan
Hang Wai Chan
671 Points

Template not working

When I follow Mr. Doug Turner's step, copying those template to appropriate location and open the project file MyFirstProgram.xcodeproj, the main.c appeared in red color, when i double click it, "No editor" is shown. All files are under same folders.

Amit Bijlani
Amit Bijlani
Treehouse Guest Teacher

What version of Xcode are you using?

2 Answers

Amit Bijlani
Amit Bijlani
Treehouse Guest Teacher

I just tried it in the same version of Xcode and it worked. Not sure what could be going wrong. If you are saying the main.c file is red which means that it was probably deleted. I'd recommend downloading the project template and trying again.

Hang Wai Chan
Hang Wai Chan
671 Points

Okay, you are right. I deleted everything and re-do it again, it's working now. Sorry about that...