I'm facing a strange issue, after adding all my images to a xcasset, my app looks malformed (see screenshot) when running it on iOS 8 simulator. Each image is full of artifacts. Before, all my images were simply added to main bundle, and everything worked. I don't have a device with iOS 8 to test on it. Also it works well on versions above iOS 8. If you have any guesses what is the problem, please tell me.
Asked
Active
Viewed 69 times
2
-
Did you try to erase content and settings from the simulator? Are your assets vector- or pixel-based? – Tamás Sengel Dec 15 '17 at 15:44
-
@the4kman resetting simulator didn't help. My asset is pixel based. – iOS Dev Dec 15 '17 at 15:46
-
I suspect the images themselves are corrupted or somehow in a format not expected by iOS. Maybe try re-exporting the images? Are they JPG or PNG, or something else? – picciano Dec 15 '17 at 15:49
-
@picciano Images are PNGs. Tried to re-export, no change. – iOS Dev Dec 15 '17 at 15:53
-
Perform a project clean. – picciano Dec 15 '17 at 15:55
2 Answers
0
Ideal is to support three iOS versions, the current version and the previous two versions.
Try below steps:
- Remove all caches from User's Library
- Remove all derived data content of Xcode
- Clean
- Clear Trash
- Quit Xcode
- Open Xcode
- Build
It should help you.
Currently 92% devices are running iOS 10 or above

picciano
- 22,341
- 9
- 69
- 82

Jeetendra Kumar
- 500
- 3
- 9
-
Did all the steps, also reinstalled iOS 8 simulator, but it did't help ( – iOS Dev Dec 15 '17 at 16:08
-
-
0
If the images do not contain alpha channel - try adding it, otherwise try removing it.
Also check this option (causes similar problems from time to time): How can I skip compressing one PNG?

Anton Malyshev
- 8,686
- 2
- 27
- 45