所有本机cordova插件都停止在Ionic3上运行 [英] All native cordova plugins stopped working on Ionic3

查看:137
本文介绍了所有本机cordova插件都停止在Ionic3上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该应用程序使用了一些标准的ionic/native插件,包括callNumber,SMS,Facebook,SocialSharing,剪贴板,在某些时候,我意识到当它们在xCode模拟器或实际的iOS设备上运行时,它们都停止工作了(尚未为Android构建).他们在...之前完美无瑕地工作过...

我知道没有代码就很难找出原因,而只是在调试中寻找预感或方法,因为我是调试离子应用程序的本机功能的新手.

解决方案

更新:

您的环境似乎存在严重问题.因此,我想在这里提出一个替代方案.也就是说,您可以使用 离子包服务 .

Ionic Pro的打包功能可轻松构建本机应用程序二进制文件 适用于云中的iOS和Android.自动化二进制构建的完美选择 以及要使用Windows并希望构建iOS应用的开发人员.

旧答案:

您可以尝试以下操作:

ionic cordova platform remove ios

之后:

ionic cordova platform add ios

The app uses some standard ionic/native plugins including callNumber, SMS, Facebook, SocialSharing, Clipboard and at some point I realised that all of them stopped working when running on the xCode simulator or an actual iOS device (haven't yet built it for android). They were working flawlessly before...

I understand that it'll not be easy to figure out the cause with no code but just looking for hunches or methods to follow in the debugging since I'm new to debugging ionic apps' native functionality.

解决方案

Update:

It seems your environment is having a serious issue. So I would like to suggest an alternative here.That is, You can use Ionic package service.

Ionic Pro’s Package feature makes it easy to build native app binaries for iOS and Android in the cloud. Perfect for automating binary builds and for developers using Windows that want to build iOS apps.

Old Answer:

You can try this:

ionic cordova platform remove ios

After that:

ionic cordova platform add ios

这篇关于所有本机cordova插件都停止在Ionic3上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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