iOS 10和Xcode 8上的Cordova 6.3.1 [英] Cordova 6.3.1 on iOS 10 and Xcode 8

查看:110
本文介绍了iOS 10和Xcode 8上的Cordova 6.3.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很长一段时间以来,我一直在Cordova和iOS/android上进行开发,在Xcode 8之前一切正常,而在android上一切正常.仅在此星座下的iOS上,插件根本无法按预期工作.这意味着在按下主页"按钮后,所有插件都将首先开始做出反应.这真的很奇怪.以下是我使用的插件列表:

I'm developing on cordova and iOS/android since a long time, before Xcode 8 everything was working and on android still everything is working. Just on iOS under this constellation the plugins are NOT AT ALL working as expected. That means all plugins start reacting first after the Home button is pressed. This is really weird. Following is the list of plugins I use:

com.cordova.plugins.sms 0.1.10"Cordova SMS插件"
cordova-plugin-camera 2.3.0相机"
cordova-plugin-compat 1.0.0兼容"
cordova-plugin-contacts 2.2.0联系人"
cordova-plugin-device 1.1.3设备"
cordova-plugin-device-orientation 1.0.4设备方向"
cordova-plugin-file 4.3.0文件"
cordova-plugin-file-transfer 1.6.0文件传输"
cordova-plugin-geolocation 2.4.0地理位置"
cordova-plugin-inappbrowser 1.5.0"InAppBrowser"
cordova-plugin-navigationbar 1.0.31"Cordova NavigationBar插件"
cordova-plugin-statusbar 2.2.0"StatusBar"
cordova-plugin-whitelist 1.3.0白名单"
ionic-plugin-keyboard 2.2.1键盘"
phonegap-plugin-push 1.8.2"PushPlugin"

com.cordova.plugins.sms 0.1.10 "Cordova SMS Plugin"
cordova-plugin-camera 2.3.0 "Camera"
cordova-plugin-compat 1.0.0 "Compat"
cordova-plugin-contacts 2.2.0 "Contacts"
cordova-plugin-device 1.1.3 "Device"
cordova-plugin-device-orientation 1.0.4 "Device Orientation"
cordova-plugin-file 4.3.0 "File"
cordova-plugin-file-transfer 1.6.0 "File Transfer"
cordova-plugin-geolocation 2.4.0 "Geolocation"
cordova-plugin-inappbrowser 1.5.0 "InAppBrowser"
cordova-plugin-navigationbar 1.0.31 "Cordova NavigationBar plugin"
cordova-plugin-statusbar 2.2.0 "StatusBar"
cordova-plugin-whitelist 1.3.0 "Whitelist"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-push 1.8.2 "PushPlugin"

请澄清一下,它自Xcode 5起就运行了,没有一个单一的问题,我真的尽了我所能想象的一切可能,例如分别删除所有插件并尝试使用od cordova,npm,node的不同版本(仅是因为受挫).该问题发生在本机设备以及模拟器内部.有没有人对此提供任何建议?我真的再也没有一个主意了...

Just to clarify, it worked since Xcode 5 with not a single problem and I really tried everything possible I could imagine, e.g. removing all plugins separately and trying different versions od cordova, npm, node (just because of frustration). The problem occurs on native device as well as inside of the simulator. Has anyone any advice for that? I really have no single idea anymore....

Thx 玛尼

推荐答案

这听起来与 Chis Rae 在对我的答案的评论中/777265>我自己的问题.

This sounds similar to the symptoms described by Chis Rae in his comment on my answer to my own question.

尝试添加Content-Security-Policy元标记:

<meta http-equiv="Content-Security-Policy" content="default-src * gap://ready file:; style-src 'self' 'unsafe-inline'; img-src 'self' data:; script-src * 'unsafe-inline' 'unsafe-eval'">

这篇关于iOS 10和Xcode 8上的Cordova 6.3.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆