繁体   English   中英

设备和模拟器上的流星 ios 空白屏幕

[英]Meteor ios blank screen on device and simulator

我的 Meteor 应用程序在浏览器和 android 设备中运行良好,但是在 ios 设备和模拟器上,启动后我总是卡在空白屏幕上。 Xcode 对我来说是新手,所以我不知道是不是我做错了什么? 但是,我按照 ios 测试说明进行了操作。 我还尝试了许多修复,我的谷歌在我能想到的每个关键字搜索中都充斥着最后一次看到的日期。 我的 Safari 开发者控制台显示这些输出错误粘贴在下面.......有没有其他人看到过这个问题或知道如何解决它?

(出于明显的安全原因,将我的 IP 地址替换为http://000.000.00.000:3000/ 。另请注意:body 元素为空,但如果我在控制台中编辑 html,则会更新 iphone 屏幕。似乎我的主页从未呈现过)

[Error] TypeError: undefined is not an object (evaluating 'window.navigator.mediaDevices.getUserMedia')
    index.js (elmarti_video-chat.js:1042)
    fileEvaluate (modules-runtime.js:343)
    index.js (elmarti_video-chat.js:453)
    fileEvaluate (modules-runtime.js:343)
    index.js (elmarti_video-chat.js:53)
    fileEvaluate (modules-runtime.js:343)
    (anonymous function) (elmarti_video-chat.js:6319)
    Global Code (elmarti_video-chat.js:6326)
[Error] Origin http://localhost:12952 is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin http://localhost:12952 is not allowed by Access-Control-Allow-Origin. (_timesync, line 0)
[Error] XMLHttpRequest cannot load http://000.000.00.000:3000/_timesync due to access control checks.
[Error] TypeError: undefined is not an object (evaluating 'VideoCallServices')
    (anonymous function) (app.js:1950)
    (anonymous function) (blaze.js:3398)
    _withTemplateInstanceFunc (blaze.js:3744)
    fireCallbacks (blaze.js:3394)
    (anonymous function) (blaze.js:3474)
    fireCallbacks (blaze.js:2014)
    nonreactive (tracker.js:640)
    (anonymous function) (blaze.js:2011)
    _withCurrentView (blaze.js:2271)
    _fireCallbacks (blaze.js:2010)
    _createView (blaze.js:2028)
    _materializeView (blaze.js:2073)
    materializeDOMInner (blaze.js:1532)
    _materializeDOM (blaze.js:1474)
    (anonymous function)
    _materializeDOM (blaze.js:1483)
    (anonymous function) (blaze.js:2113)
    nonreactive (tracker.js:640)
    _materializeView (blaze.js:2079)
    render (blaze.js:2370)
    insert (iron_dynamic-template.js:518)
    insert (iron_router.js:1639)
    maybeAutoInsertRouter (iron_router.js:1629)
[Error] Origin http://localhost:12952 is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin http://localhost:12952 is not allowed by Access-Control-Allow-Origin. (_timesync, line 0)
[Error] XMLHttpRequest cannot load http://000.000.00.000:3000/_timesync due to access control checks.
[Error] Origin http://localhost:12952 is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin http://localhost:12952 is not allowed by Access-Control-Allow-Origin. (_timesync, line 0)
[Error] XMLHttpRequest cannot load http://00.000.00.000:3000/_timesync due to access control checks.
[Error] Origin http://localhost:12952 is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin http://localhost:12952 is not allowed by Access-Control-Allow-Origin. (_timesync, line 0)
[Error] XMLHttpRequest cannot load http://000.000.00.000:3000/_timesync due to access control checks.
[Error] Origin http://localhost:12952 is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin http://localhost:12952 is not allowed by Access-Control-Allow-Origin. (_timesync, line 0)
[Error] XMLHttpRequest cannot load http://000.000.00.000:3000/_timesync due to access control checks.
[Error] Origin http://localhost:12952 is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin http://localhost:12952 is not allowed by Access-Control-Allow-Origin. (_timesync, line 0)
[Error] XMLHttpRequest cannot load http://000.000.00.000:3000/_timesync due to access control checks.

我遇到了同样的错误,并通过以下方式解决了它:

  1. 删除node_modules文件夹
  2. 执行meteor reset
  3. 删除.cache文件夹
  4. 再次安装依赖项(我使用了纱线)。
  5. 完成了!!! 该应用程序应在模拟器和设备中运行。

测试:

  • Mac OS 11.1 大苏尔
  • 代码 12.3
  • 流星 1.12.1
  • 前端是使用 akryum 包使用 Vue 和 Vuetify 构建的。
  • iPhone 12 Pro Max 上的 iOS 14.3 模拟器
  • iPhone SE 上装有 iOS 14.3 的物理设备

我希望这也能帮助你。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM