在链接确认了类似的问题下面没有人知道如何将信息添加到科尔多瓦config.xml文件?
ITSAppUsesNonExemptEncryption export compliance while internal testing?
我必须plist中真值:
ITSAppUsesNonExemptEncryption ITSEncryptionExportComplianceCode [键值]
有谁知道正确的语法来添加这些信息?
我不得不修改安德烈的回答了一下,这个工作对我来说:
<platform name="ios">
...
<config-file target="*-Info.plist" parent="ITSAppUsesNonExemptEncryption" mode="add">
<false/>
</config-file>
...
</platform>
我创建一个简单的空插件来此ITSAppUsesNonExemptEncryption
设置为false。
只需将以下添加到您的config.xml
<plugin name="cordova-ios-plugin-no-export-compliance" spec="0.0.5" />
或运行
cordova plugin add cordova-ios-plugin-no-export-compliance
如果您需要将其设置为true,您可以派生的插件并从分叉库相应更改plugin.xml
文件然后添加插件。
查看NPM的plugin以获得更多信息。
截至2019年2月7日,这样做正确的做法是,以这个片段添加到您的<platform name="ios">
部分:
<edit-config file="*-Info.plist" mode="add" target="ITSAppUsesNonExemptEncryption">
<false/>
</edit-config>
需要注意的是所提到的插件不会phonegap build工作。使在PhoneGap的建设这项工作的解决方案是outlined in this stackoverflow question和this github issue:使用
<gap:config-file platform="ios" parent="ITSAppUsesNonExemptEncryption" mode="add">
<false/>
</gap:config-file>
在你的config.xml。
请注意,您必须显式设置平台=“IOS”作为一个属性,即使你已经有一个平台块。请注意,您必须使用的差距:命名空间。
以下将不按2016年4月8日的工作:
<platform name="ios">
<gap:config-file parent="ITSAppUsesNonExemptEncryption" mode="add">
<false/>
</gap:config-file>
</platform>
无论是将这一工作:
<config-file platform="ios" parent="ITSAppUsesNonExemptEncryption" mode="add">
<false/>
</config-file>
正确的答案居然是:
<config-file platform="ios" target="*-Info.plist" parent="ITSAppUsesNonExemptEncryption">
<false/>
</config-file>
这对我的作品(其实我需要把假的,而不是真实的)。
<platform name="ios">
...
<config-file target="*-Info.plist" parent="CFBundleURLTypes" mode="add">
<array>
<dict>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
</dict>
</array>
</config-file>
...
</platform>
我使用cordova 6.3.0
engineios@~4.2.0
。
我希望我帮助:)
我可以在这个问题上使用离子。
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 0.0.48
ios-deploy version: 1.9.0
ios-sim version: 5.0.8
OS: macOS Sierra
Node Version: v7.1.0
Xcode version: Xcode 8.2.1 Build version 8C1002
更多的研究比预期后,我了解到,插件必须更新配置的能力。为此我刚添加的插件“科尔多瓦 - 插件-IOS-非豁免加密”我的package.json,重建和它的作品!