Deleted image literal causes a run time crash

Originator:dogsonic22
Number:rdar://27804805 Date Originated:8/11/2016
Status:Open Resolved:
Product: Product Version:Xcode 8.0 Beta 5
Classification: Reproducible:Yes
 
Summary:
When you delete an image from the asset catalog, a crash will occur if an image literal referenced the deleted image.

Steps to Reproduce:
1. Add a image to the asset catalog
2. Add a image literal in your swift code
3. Delete the image from the catalog
4. Run the app and a crash occurs

Expected Results:
I would expect a compiler error.  

Actual Results:
Runtime crash

Version:
Xcode 8.0 beta 5

Notes:


Configuration:
iOS 10 beta 5, Xcode 8.0 beta 5.

Attachments:

Comments


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!