[英]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:我遇到了同样的错误,并通过以下方式解决了它:
node_modules
folder删除node_modules
文件夹meteor reset
执行meteor reset
.cache
folder删除.cache
文件夹Tested on:测试:
I hope this help you as well.我希望这也能帮助你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.