ITSAppUsesNonExemptEncryption Cordova Build

Viewed 15369

Acknowledging a similar question in the link below does anyone know how to add the information to the config.xml file in Cordova?

ITSAppUsesNonExemptEncryption export compliance while internal testing?

I need to have a true value in the plist:

ITSAppUsesNonExemptEncryption ITSEncryptionExportComplianceCode [ Key Value ]

Does anyone know the correct syntax to add this information?

9 Answers

As of 2/7/2019, the correct way to do this is to add this snippet to your <platform name="ios"> section:

<edit-config file="*-Info.plist" mode="add" target="ITSAppUsesNonExemptEncryption">
    <false/>
</edit-config>

November 2019, next is working for me:

<platform name="ios">
...
    <config-file parent="ITSAppUsesNonExemptEncryption" target="*-Info.plist">
        <false />
    </config-file>

NOTE: DON'T FORGET TO REMOVE platforms/ios folder and build again with ionic cordova prepare ios. Without that plist file may stay unchanged.

If you want to append that config in the *-Info.plist file, you need to use config-file in this way:

<platform name="ios">
    <config-file parent="ITSAppUsesNonExemptEncryption" target="*-Info.plist">
        <false />
    </config-file>
    ....
</platform>

The edit-config is to modify an existing config, and that config doesn't exist by default.

Related