XCode 8 compiled apps exhibit random EXC_BAD_ACCESS crashes when running on iPhone iOS 8.4 (simulator or device)
Originator: | evtimdev | ||
Number: | rdar://28371396 | Date Originated: | Sep 19 2016 |
Status: | Open | Resolved: | |
Product: | XCode | Product Version: | 8 |
Classification: | Reproducible: | Always |
Summary: 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) Version: XCode 8, OS X El Capitan 10.11.6 Notes: http://stackoverflow.com/questions/39404285/xcode-8-build-crash-on-ios-9-2-and-below Configuration: Does not occur when compiling with XCode 7 or when running on devices/simulators with iOS 9.3+
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!
script to convert png files to correct format in whole project and with white spaces
!/bin/bash
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 "------------------------------"