[英]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.
我遇到了同樣的錯誤,並通過以下方式解決了它:
node_modules
文件夾meteor reset
.cache
文件夾測試:
我希望這也能幫助你。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.