我的Meteor应用程序在浏览器和Android设备上运行良好但是在ios设备和模拟器上我在发布后总是卡在空白的白色屏幕上。 Xcode对我来说是新手,所以我不知道这是不是我做错了什么?但是我按照ios测试方向写了这封信。我也尝试了很多修复我的谷歌充满了我能想到的每个关键字搜索的最后看到的日期。我的Safari开发人员控制台显示下面粘贴的这些输出错误.......有没有其他人看到过这个问题或者知道如何修复它?
(为了明显的安全原因,用http://000.000.00.000:3000/取代了我的IP地址。还要注意:如果我在控制台中编辑html,则body元素为空,但会更新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.
答案 0 :(得分:0)
我遇到了同样的错误,我通过以下方式解决了它:
node_modules
文件夹meteor reset
.cache
文件夹测试:
我希望这对您也有帮助。