离子2装置准备好在2000毫秒内没有开火

我正在IOS平台上的ionic 2 beta 11内运行应用程序使用ionic run ios white screen出现,并得到以下消息:

 Native: deviceready did not fire within 2000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them. 

任何有关这个的build议? 那究竟是什么问题?

这可能是由于几个问题,所以你不得不尝试几件事情:

  1. 运行ionic state reset --platform重新安装平台
  2. 在执行此ionic state reset --plugins之前,请通过运行ionic state reset --plugins重新安装您的插件,请检查您的所有插件是否包含在package.json文件中。
  3. 就像@joshmorony 在这里所说的那样,尝试通过改变index.htmlContent-Security-Policy来实现:

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

正如其他答案的评论中所述,在CLI的新版本中,应手动删除pluginsplatforms文件夹。 然后运行:

 ionic cordova prepare