Change order of defined’s to fix crash with iOS simulator