Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
405 views
in Technique[技术] by (71.8m points)

iphone - Xcode 9 - iOS 8 images get weirdly distorted

EDIT : note that this issue is now resolved in Xcode 9.3, hourrah !

OK, it's a Xcode bug, but does anyone has a workaround for this ?

Since I made the update to Xcode 9 and compile my app, I get a bug with my images. All images in my app get distorted, only on iOS 8. I have to point out that when recompiling the exact same project with Xcode 8, every image shows well !

Here is my launch screen when my app is run on iOS 8, then on iOS 9 (or 10 or 11), both with Xcode 9.

launchscreen comparaison

I know that some people encounter this bug with Xcode 8 beta 6 (Xcode 8 simulator ios 8 image get distorted and Xcode 8 beta 6 - App image broken in iOS 8) but they say this was a Xcode bug that was resolved in Xcode 8 GM. I can't find anybody having this issue in Xcode 9.

Xcode 9 brings many changes to images assets, so I've tried to play with them (ticking "Preserve Vector Data", changing to "Individual scales" etc) but it didn't helped.

I'm using Xcode 9.2 (9C40b), which I think is the last Xcode version available.

Does anybody has a clue for this ?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Can refer on Xcode 9 Release Notes https://developer.apple.com/library/content/releasenotes/DeveloperTools/RN-Xcode/Chapters/Introduction.html#//apple_ref/doc/uid/TP40001051-CH1-SW936

Two workarounds :

  • Build the app using Xcode 9.1 (official download link)

  • OR use Xcode 9.2 and set the deployment target to iOS 8.4 or later.

It works for me. The first one is recommended as the second will only allow iOS 8.4 support.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...