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 Photo Browser iPhone App UIKit Dynamics Attaching Snap Behavior to Views

Code errors

So when editing my own XCode app, the program was breaking. I could not fix it, so I ended up downloading your "Project Files" to replace with my own so I could see the program doing what we were supposed to have it do. Now i get even more errors than before and the application is not workable. I was wondering if you see these errors from your provided files. Perhaps its a version issue with 5.1.1?

Soojin Ro
Soojin Ro
13,331 Points

if you screenshot or post your error code here, people can help you

4 Answers

Stone Preston
Stone Preston
42,016 Points

you opened the wrong xcode project. you need to open the Photo Bombers.xcworkspace file, not the Pods.xcproject file. That xcworkspace file is available in this download which you probably already have. After extracting the archive, the Photo Bombers.xcworkspace file is available in the root directory of the download

I am opening the Photo Bombers.xcworkspace and i still get these errors.

Stone Preston
Stone Preston
42,016 Points

post a screen shot of that please

Ok, so i used your link, downloaded the Photo Bombers files. Deleted my own and edited the Client ID for my development login for Instagram. Seems like I am getting more errors now.

http://imgur.com/cOQwEDX,QuU1vWa <== 2 images provided from running the file, and the errors that show up.

Stone Preston
Stone Preston
42,016 Points

thats very weird. hmm. from the looks of it it seems like simple auth isnt being recognized. do you have cocoa pods installed?

I did install it previously during working on this task. Do you need to install it every time you add new files to that folder, or should it be installed from the first time? I used to be able to launch the app, login and click the pictures and it would drop them, bounce and then when you click it again, it would drop the picture down and go back to the view of all the pictures. Now....it just fails.

Stone Preston
Stone Preston
42,016 Points

no you shouldnt have to install it again. I was able to just download the files and open it and run. im really not sure why this is happening.

Stone Preston
Stone Preston
42,016 Points

the only thing you should have to do is add your own instagram API keys to the project. I just downloaded the project files, opened the workspace, built the project, and it ran fine.