Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running an iOS7 project under Xcode 6 - Image assets don't show up

Tags:

swift

ios7

xcode6

I'm trying to run an iOS7 project under Xcode6 on an iOS7 device. At first all seemed to be A-OK, but then I noticed that all images that reside in Images.xcassets don't show up at runtime.

I can see then correctly in design (storyboard), and I see them if I run the app in the simulator.

Anyone having an idea how to fix this? Thanks!

NOTE: the project runs fine on Xcode5.x therefore it's not the usual culprit (mismatch in the image name "casing").

ADDITIONAL NOTE: I've just tried with another iOS7 project: same problem...

ADDITIONAL NOTE: I've tried using image assets in a brand new project created under Xcode and... images show up.

like image 884
Jean Le Moignan Avatar asked Jun 05 '14 15:06

Jean Le Moignan


3 Answers

Something I found in the Xcode 6 Beta Release Notes:

Images from asset catalogs in projects with a minimum deployment target of iOS 7 or OS X 10.9 will be available when running on iOS 8 and OS X 10.10, but not iOS 7 and OS X 10.9.(17029658)

like image 199
KBog Avatar answered Nov 26 '22 07:11

KBog


I had the same problem, I have noticed that if I move my images from Images.xcassets to the "Supporting Files" folder, the images show up on iOS7. I Hope this helps

like image 20
cmarenco Avatar answered Nov 26 '22 07:11

cmarenco


I suddenly add jpg image to Image Assets. When resaved in png, all work OK

like image 27
Anton Gaenko Avatar answered Nov 26 '22 05:11

Anton Gaenko