英特尔 XDK 更改 info.plist

Intel XDK change info.plist

我有一个在 Intel XDK 上开发的应用程序(我做过的最糟糕的决定),当我在 iOS9 上测试这个应用程序时,我收到错误:"Failed to load resource: An SSL error has occurred and a secure connection to the server cannot be made."

起初我在我的服务器上实现了SSL认证。无法解决此错误。

稍微搜索了一下,我发现可以通过向 info.plist 文件添加一些信息来消除此错误。 我需要将其添加到 info.plist 文件中:

<key>NSAppTransportSecurity</key>
        <dict>
            <key>NSAllowsArbitraryLoads</key>
            <true/>
            <key>NSExceptionDomains</key>
            <dict>
                <key>yourdomain.com</key>
                <dict>
                    <key>NSIncludesSubdomains</key>
                    <true/>
                    <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
                    <false/>
                </dict>
           </dict>
    </dict>

但我找不到在 Intel XDK 上更改 info.plist 的方法。

如何将这些信息添加到我在英特尔 XDK 上的 info.plist 文件中?甚至可以这样做吗?为什么英特尔不修复它???

基本上我觉得有两种方法可以解决这个问题:

一种方法是使用 iOS security plugin

跳过此 iOS 安全措施

第二个选项是使用 custom config plugin,它允许您使用 config.xml

中的值配置在 -*.plist 文件中操作和设置您选择的值

请注意,这是我使用 Cordova CLI 测试的方法。我猜你也应该能够在 Intel xdk 中完成它。