Jelle Jelle - 6 months ago 166
iOS Question

How can I stop Xamarin from building my app with bitcode enabled?

In the configurations from my iOS build, there is no option to disable bitcode. While in Xcode it is possible to set ENABLE_BITCODE=NO

I need this because my linked frameworks are not build with bitcode, and nowadays Apple does not allow half-bitcode-compiled apps anymore.

Answer

In your .csproj for your iOS application, search for the PropertyGroup for the release configuration that you need to turn off bit code for, i.e.:

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">

Within that group, see if a MtouchEnableBitcode already exists and edit it, otherwise add:

<MtouchEnableBitcode>false</MtouchEnableBitcode>