Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ITSAppUsesNonExemptEncryption Cordova Build

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?

like image 856
kiwi209 Avatar asked Mar 04 '16 14:03

kiwi209


3 Answers

I had to modify Andrej's answer a bit, this worked for me:

  <platform name="ios">
    ...
    <config-file target="*-Info.plist" parent="ITSAppUsesNonExemptEncryption" mode="add">
      <false/>
    </config-file>
    ...
  </platform>
like image 117
Render Avatar answered Nov 01 '22 05:11

Render


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>
like image 15
TheBosZ Avatar answered Nov 01 '22 03:11

TheBosZ


I have create a simple empty plugin to set this ITSAppUsesNonExemptEncryption to false.

Simply add the following to your config.xml

<plugin name="cordova-ios-plugin-no-export-compliance" spec="0.0.5" />

or run

cordova plugin add cordova-ios-plugin-no-export-compliance

If you need to set it to true you can fork the plugin and change the plugin.xml file accordingly then add the plugin from the forked repository.

See the plugin on NPM for more info.

like image 13
Mika Andrianarijaona Avatar answered Nov 01 '22 04:11

Mika Andrianarijaona