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 Swift Basics Swift Types String Manipulation

Andrea Hdz
Andrea Hdz
170 Points

Done correctly on Xcode, will not let me go through in the challenge

Followed the instructions for the challenge, did it and it marked an error (but the preview would not tell me which was the error). Proceeded to go to Xcode to check and not make another mistake, it was done correctly, no errors. Tried different ways for the syntax, every single one checked correctly no errors on the playground. When copied to the site, it still said "Bummer" each time. I checked with a programmer and said I was doing it correctly... Then what? :(

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hi there,

You'll need to post you code for the challenge in order for other to be able to help troubleshoot. Please refer to the Markdown Cheatsheet above the Post button for how to properly post code. Or, the best way is to do the challenge, then click the Get Help button and make sure the "include code" is checked.

A good rule to remember: Just because code works on you local machine does not mean it will satisfy the challenges. The instructions for the challenges are very specific and the code checker is very picky. Even something as simple as a missing period or a typo, or the very common... using the wrong method (eg. print instead of return) will cause a Bummer.

Give your code a "once over" and make sure it is exactly what the instructions are looking for. If you're still stumped, you'll have to share your code.

:) :dizzy:

Andrea Hdz
Andrea Hdz
170 Points

Hi Jason, thanks a lot for the answer. I actually just refreshed the site and the code passed correctly and the next challenge had no problem. I'm already going through the next videos. Again thank you for the quick reply!