I have added the FIPS compliant openssl module to our iOS app. After which we submitted to apple and it kept getting rejected for an instant crash that we were unable to duplicate with our enterprise build.
After much trial and error we found that it came down to the fips_premain.c
file and having Include bitcode.
checked when creating ad-hoc builds or submitting to apple. When Include bitcode
is checked, the app will crash with the fips_premain.c
file added to the Compile Sources phase.
I have tried adding the -fembed-bitcode
flag into the fips_premain.c compiler flags but that doesn't seem to resolve the issue.
Is there a way to Include bitcode for fips_premain.c
and send it to apple or a way to bypass fips_premain.c
from bitcode so the app stops crashing during apple review or ad-hoc usage?