use UIGraphicsImageRenderer instead of UIGraphicsBeginImageContext, I faced same crash and i fixed that.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: