Crash in [UIImage imageNamed] only if iOS < 9.3 and compiled with Xcode 10

Originator:greg
Number:rdar://44535967 Date Originated:09/17/2018
Status:Open Resolved:
Product:Xcode Product Version:10.0 GM
Classification:Bug Reproducible:Always
 
I just released a new version of my app that was compiled/built using Xcode 10 and I am getting back new crash reports only on iOS 9.0, 9.1 and 9.2 in [UIImage imageNamed:] calls that never happened before. Nothing in the code or the images has changed in over a year.

Running the app through the debugger on a iOS 9.2 Simulator or iOS 9.2 device doesn't result in a crash. But running a release build on an iOS 9.2 device will result in the crash.

Steps to Reproduce:

Run Launcher v3.1.6 (https://itunes.apple.com/us/app/launcher-with-multiple-widgets/id905099592?mt=8) on a device on iOS 9.0, 9.1 or 9.2. Load the app and skip the intro to the main screen (Skip, Done) and it will crash immediately.

See attached crash logs.

Expected Results:

I would not expect a call to start crashing that has never crashed before.

Actual Results:

It crashes.

Comments

Reproducible on Xcode 10 and 10.1

By yatharth.saluja at Nov. 17, 2018, 6:36 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!