简体   繁体   English

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

[英]Meteor ios blank screen on device and simulator

My Meteor app runs fine in browser and android device however on ios-device and simulator I am always stuck with a blank white screen after launch.我的 Meteor 应用程序在浏览器和 android 设备中运行良好,但是在 ios 设备和模拟器上,启动后我总是卡在空白屏幕上。 Xcode is new to me so i don't know if it is something i am doing wrong? Xcode 对我来说是新手,所以我不知道是不是我做错了什么? However I followed the ios testing directions to the letter.但是,我按照 ios 测试说明进行了操作。 I also tried numerous fixes my google is riddled with last seen dates on every keyword search i can think of.我还尝试了许多修复,我的谷歌在我能想到的每个关键字搜索中都充斥着最后一次看到的日期。 My Safari developer console shows these output errors pasted below.......Has anyone else seen this problem or know how to fix it?我的 Safari 开发者控制台显示这些输出错误粘贴在下面.......有没有其他人看到过这个问题或知道如何解决它?

(substituted my ip address for http://000.000.00.000:3000/ for obvious security reasons. also note: body element is empty but updates the iphone screen if i edit html in console. It seems like my homepage is never rendered) (出于明显的安全原因,将我的 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.

I faced the same error and I solved it of the following way:我遇到了同样的错误,并通过以下方式解决了它:

  1. Remove node_modules folder删除node_modules文件夹
  2. Execute meteor reset执行meteor reset
  3. Remove .cache folder删除.cache文件夹
  4. Install dependencies again (I used yarn).再次安装依赖项(我使用了纱线)。
  5. And done!!!完成了!!! The app should be run in simulator and device.该应用程序应在模拟器和设备中运行。

Tested on:测试:

  • Mac OS 11.1 Big Sur Mac OS 11.1 大苏尔
  • XCode 12.3代码 12.3
  • Meteor 1.12.1流星 1.12.1
  • Front-end is built with Vue and Vuetify using akryum package.前端是使用 akryum 包使用 Vue 和 Vuetify 构建的。
  • Simulator with iOS 14.3 on iPhone 12 Pro Max iPhone 12 Pro Max 上的 iOS 14.3 模拟器
  • Physical device with iOS 14.3 on iPhone SE iPhone SE 上装有 iOS 14.3 的物理设备

I hope this help you as well.我希望这也能帮助你。

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

相关问题 iOS设备(而不是iOS Simulator)上的文件路径损坏 - Broken file path on iOS device, not on iOS Simulator 外部JavaScript在模拟器中工作,但不在ios设备中工作 - External javascript working in simulator but not in ios device Meteor.call和Meteor.methods无法在移动设备(iOS)上运行,但可以完美地在Web和iOS模拟器上运行 - Meteor.call and Meteor.methods not working on mobile (iOS) but perfectly works on web and iOS simulator 流星上的传单空白屏幕,而不是单个非流星test.html上的传单 - leaflet blank screen on meteor but not on single nonmeteor test.html iOS PWA-“打开地图”返回黑屏 - iOS PWA - Open Maps returns to blank screen Phonegap iOS中的SplashScreen和Webview之间的黑屏 - Blank Screen between a SplashScreen and webview in phonegap iOS 在iOS上显示空白屏幕的flotr2图表 - flotr2 chart showing blank screen on iOS Browserify JavaScript库在iOS模拟器上运行良好,但在真实设备上 - Browserify javascript library work well on iOS simulator but real device iOS 8:全屏Safari主屏幕页面底部的空白间隙 - iOS 8: blank gap at bottom of full screen Safari home screen page React Navigation 宽度不是 100% 适合 ios 模拟器上的屏幕 - React Navigation width is not 100% fit to screen on ios simulator
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM