2017-05-24 3 views
0

Ich mache die Meteor.js Tutorial App verfügbar unter https://www.meteor.com/tutorials/blaze/creating-an-app. Die App startet auf dem iPhone ohne Probleme, aber es hat keine Server/DB-Daten darauf. Es scheint, dass es nicht mit Meteor Server kommuniziert, der auf meinem Mac läuft. Das iPhone ist über ein USB-Kabel mit dem Mac verbunden.Cordova Mobile App für iOS kommuniziert nicht mit dem Server

Die von Meteor verwendete Cordova-Version ist 4.3. Ich habe iOS 10.11 auf dem Mac, iOS 10.2 auf dem iPhone und Xcode 8.2. Die Meteor-Version ist die neueste; 1.4.4.2 mit allen aktuellen Paketen.

Ich angehängt Xcode Laufzeitprotokoll unten. Was kann der Grund sein? Oder: Was soll ich tun, um die Ursache des Problems zu verstehen? S.: Ich habe das Protokoll am Ende bemerkt "Das Snapshot einer Ansicht, die nicht gerendert wurde, führt zu einem leeren Snapshot. Stellen Sie sicher, dass Ihre Ansicht mindestens einmal gerendert wurde, bevor Snapshot oder Snapshot nach Bildschirmaktualisierungen." Gibt dieses Protokoll einige Informationen über den Grund?

"*2017-05-24 13:45:24.953911 new-simple-todos[734:211957] Apache Cordova native platform version 4.3.0 is starting. 
2017-05-24 13:45:24.954919 new-simple-todos[734:211957] Multi-tasking -> Device: YES, App: YES 
2017-05-24 13:45:24.968152 new-simple-todos[734:211957] 
Started backup to iCloud! Please be careful. 
Your application might be rejected by Apple if you store too much data. 
For more information please read "iOS Data Storage Guidelines" at: 
https://developer.apple.com/icloud/documentation/data-storage/ 
To disable web storage backup to iCloud, set the BackupWebStorage preference to "local" in the Cordova config.xml file 
2017-05-24 13:45:25.059835 new-simple-todos[734:211957] CDVWKWebViewEngine will reload WKWebView if required on resume 
2017-05-24 13:45:25.059932 new-simple-todos[734:211957] Using WKWebView 
2017-05-24 13:45:25.061030 new-simple-todos[734:211957] [CDVTimer][handleopenurl] 0.155985ms 
2017-05-24 13:45:25.064366 new-simple-todos[734:211957] [CDVTimer][intentandnavigationfilter] 3.140032ms 
2017-05-24 13:45:25.064572 new-simple-todos[734:211957] [CDVTimer][gesturehandler] 0.099957ms 
2017-05-24 13:45:25.150542 new-simple-todos[734:211957] Serving asset bundle version: 0c8795ba8f3119843203decdfca7177100ddadfe 
[INFO] GCDWebServer started on port 12536 and reachable at http://localhost:12536/ 
2017-05-24 13:45:25.155801 new-simple-todos[734:211957] [CDVTimer][webapplocalserver] 91.096997ms 
2017-05-24 13:45:25.167965 new-simple-todos[734:211957] [CDVTimer][statusbar] 12.005985ms 
2017-05-24 13:45:25.188704 new-simple-todos[734:211957] [CDVTimer][splashscreen] 20.606995ms 
2017-05-24 13:45:25.188814 new-simple-todos[734:211957] [CDVTimer][TotalPluginStartup] 128.023982ms 
2017-05-24 13:45:42.008211 new-simple-todos[734:211957] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles 
2017-05-24 13:45:42.018891 new-simple-todos[734:211957] [MC] Reading from public effective user settings. 
2017-05-24 13:45:42.194748 new-simple-todos[734:212176] 0x17014db50 Copy matching assets reply: XPC_TYPE_DICTIONARY { count = 1, transaction: 0, voucher = 0x0, contents = 
"Result" => : 29 
} 
2017-05-24 13:45:42.196590 new-simple-todos[734:212176] 0x17414ea70 Daemon configuration query reply: XPC_TYPE_DICTIONARY { count = 2, transaction: 0, voucher = 0x0, contents = 
"Dictionary" => { count = 1, transaction: 0, voucher = 0x0, contents = 
"ServerURL" => { count = 3, transaction: 0, voucher = 0x0, contents = 
"com.apple.CFURL.magic" => C3853DCC-9776-4114-B6C1-FD9F51944A6D 
"com.apple.CFURL.string" => { length = 30, contents = "https://mesu.apple.com/assets/" } 
"com.apple.CFURL.base" => : null-object 
} 
} 
"Result" => : 0 
} 
2017-05-24 13:45:42.197384 new-simple-todos[734:212176] [MobileAssetError:29] Unable to copy asset information from https://mesu.apple.com/assets/ for asset type com.apple.MobileAsset.TextInput.SpellChecker 
[INFO] GCDWebServer stopped 
2017-05-24 13:50:54.932894 new-simple-todos[734:211957] CDVWKWebViewEngine shouldReloadWebView:: 
2017-05-24 13:50:54.933009 new-simple-todos[734:211957] CDVWKWebViewEngine shouldReloadWebView title: Simple To-do Application 
2017-05-24 13:50:54.933064 new-simple-todos[734:211957] CDVWKWebViewEngine shouldReloadWebView location: http://localhost:12536/?cdvToken=C875FD73-9549-4F10-8111-371CAB9A0E63-734-000000ADDB99F77C 
2017-05-24 13:50:54.933097 new-simple-todos[734:211957] CDVWKWebViewEngine shouldReloadWebView reload: 0 
[INFO] GCDWebServer started on port 12536 and reachable at http://localhost:12536/ 
2017-05-24 13:51:12.315192 new-simple-todos[734:211957] Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates.*" 
+0

Ist Ihr Telefon im selben Netzwerk wie Ihr Computer? –

+0

Ich verbinde es über USB mit Xcode. –

+0

Sie denken also, dass Anfragen von Ihrem iPhone über den USB an den Meteor Server auf Ihrem Computer gesendet werden? Nein, das ist nicht wahr. Stellen Sie sicher, dass sich Ihr iPhone und Ihr Computer im selben Netzwerk befinden. Wenn Sie mir nicht glauben - überprüfen Sie diese [DOKUMENTATION] (https://guide.meteor.com/mobile.html#running-your-app) ("Verbindung zum Server" Kapitel) –

Antwort

0

Vergewissern Sie sich, dass Ihr iPhone und Ihr Computer sich im selben Netzwerk befinden. Verweis auf das Dokument here im Kapitel "Mit Server verbinden".

Verwandte Themen