ITSAppUsesNonExemptEncryption Cordova Build

2020-03-08 12:20发布

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条回答
劫难
2楼-- · 2020-03-08 12:42

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>
查看更多
Fickle 薄情
3楼-- · 2020-03-08 12:51

Note that the plugin mentioned will not work in phonegap build. The solution to make this work in phonegap build is outlined in this stackoverflow question and in this github issue: Use

<gap:config-file platform="ios" parent="ITSAppUsesNonExemptEncryption" mode="add">
  <false/>
</gap:config-file>

in your config.xml.

Note that you MUST explicitly set platform="ios" as an attribute, even if you already have a platform block. Note that you MUST use the gap: namespace.

The following WILL NOT work as per 2016-04-08:

<platform name="ios">
  <gap:config-file parent="ITSAppUsesNonExemptEncryption" mode="add">
    <false/>
  </gap:config-file>
</platform>

Neither will this one work:

<config-file platform="ios" parent="ITSAppUsesNonExemptEncryption" mode="add">
  <false/>
</config-file>
查看更多
家丑人穷心不美
4楼-- · 2020-03-08 12:51

This works for me (Actually I needed to put false, instead of true).

  <platform name="ios">
    ...
    <config-file target="*-Info.plist" parent="CFBundleURLTypes" mode="add">
      <array>
          <dict>
              <key>ITSAppUsesNonExemptEncryption</key>
              <false/>
          </dict>
      </array>
    </config-file>
    ...
  </platform>

I am using cordova 6.3.0 engineios@~4.2.0.

I hope I helped :)

查看更多
登录 后发表回答