iOS export issue (The code signature version is no longer supported)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By emilts

When using an older XCode version (12.4) the –generate-entitlement-der flag needs to be added to OTHER_CODE_SIGN_FLAGS in order for the binary to install successfully on recent iOS versions. This has been documented at:

Wondering if there’s a way to customize the iOS export process such that this flag is automatically added to build settings.