XCode 8 compiled apps exhibit random EXC_BAD_ACCESS crashes when running on iPhone iOS 8.4 (simulator or device)

Number:rdar://28371396 Date Originated:Sep 19 2016
Status:Open Resolved:
Product:XCode Product Version:8
Classification: Reproducible:Always
App compiled with XCode 8, iOS SDK 10.0, Deployment target iOS 8
Crashes don't happen on devices/simulators running iOS 9.3+
Random EXC_BAD_ACCESS crashes when running on iOS 8.4 

Seems related to Asset Catalog and image assets

Steps to Reproduce:
1. Compile and Run attached project (Test22) on iPhone 4s (*8.4) simulator

Expected Results:
Runs normally 

Actual Results:
Crash (see screenshot)

XCode 8, OS X El Capitan 10.11.6


Does not occur when compiling with XCode 7 or when running on devices/simulators with iOS 9.3+


script to convert png files to correct format in whole project and with white spaces


DIRECTORY=$1 echo "------------------------------" echo "Passed Resources with xcassets folder argument is <$DIRECTORY>" echo "------------------------------" echo "Processing asset:"

find "$DIRECTORY" -name '*png' -print0 | while read -d $'0' file; do echo "---------$file" sips -m "/System/Library/Colorsync/Profiles/sRGB Profile.icc" "$file" --out "$file" done

echo "------------------------------" echo "script successfully finished" echo "------------------------------"

By nik.Sativa at Oct. 13, 2016, 11:35 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!