Xcode和Cordova更新(OSX)后,Cordova插件不起作用 [英] Cordova Plugins not working after Xcode and Cordova update (OSX)
问题描述
我最近更新了
- Xcode从7.3.1到8.2.1
- 科多瓦(Cordova)从6.1.1到6.5.0
在我的OS X elCapitan 10.11.6上.
on my OS X elCapitan 10.11.6.
在更新之前,一切正常,我的cordova应用程序已编译,所有插件均按预期工作.但是在上述更新之后,我的插件都无法正常工作.
Before the update everything works just fine, my cordova app compiles and all plugins are working as expected. BUT after the aforementioned updates none of my plugins are working.
我已经尝试过:
- 删除和添加平台ios
- 删除所有插件并读取它们
- 创建一个新的cordova项目,添加我的www并添加插件(没有成功,所有插件都无法正常工作,但编译时没有错误.
no success, none of the plugins are working, but it compiles without errors.
当我回滚到Xcode 7.3.1和cordova 6.1.1时,一切都会再次正常运行.已经花了我两天时间.任何提示将不胜感激!
When I do a rollback to Xcode 7.3.1 and cordova 6.1.1 everything is working again. It already cost me two days. Any hint will be appreciated!
推荐答案
您的问题听起来与此问题类似.您可以通过在将应用程序置于后台(按主页"按钮)然后回到前台后,看看您的插件是否开始响应来确认这一点.
Your problem sounds similar to this one. You can confirm this by seeing if your plugins start responding after you put your app in the background (press Home button) then back into the foreground.
由于您已升级到XCode 8,因此现在将针对iOS 10 SDK进行构建,因此将应用更严格的Content-Security-Policy.要解决此问题,请参阅此答案.
Since you have upgraded to XCode 8, you'll now be building against the iOS 10 SDK, hence a stricter Content-Security-Policy is applied. To resolve this, see this answer.
这篇关于Xcode和Cordova更新(OSX)后,Cordova插件不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!