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

Shaun Kelly
Shaun Kelly
5,648 Points

Xcode problem with images

I have image views set in the main storyboard with images set to them and once I run the app in the simulator this pops up in the debugger area and the images do not show in the simulator....

"2015-02-03 17:50:10.350 Doodle Jump Game[2604:39753] Could not load the "ball1.png" image referenced from a nib in the bundle with identifier "ShaunKelly.Doodle-Jump-Game" 2015-02-03 17:50:10.351 Doodle Jump Game[2604:39753] Could not load the "Platform.png" image referenced from a nib in the bundle with identifier "ShaunKelly.Doodle-Jump-Game"""

1 Answer

Hello Shaun Kelly. I am "sorry" if I misunderstood you. Here is my solution for you.

  1. Go to the "Images.xcassets" folder in your project and add your images
  2. Go to the "Image Set" and choose in "Types" to "Vectors"
  3. Drop the images from "Unassigned" to "Universal"

I hope it helps you! : )

john