gpt4 book ai didi

ios - 适用于 iOS 的 Cordova 移动应用程序未与服务器通信

转载 作者:行者123 更新时间:2023-11-30 12:26:23 25 4
gpt4 key购买 nike

我正在制作 Meteor.js 教程应用程序,网址为 https://www.meteor.com/tutorials/blaze/creating-an-app 。该应用程序在 iPhone 上启动没有问题,但上面没有任何服务器/数据库数据。它似乎没有与我的 Mac 上运行的 Meteor 服务器通信。 iPhone 通过 USB 线与 Mac 连接。

Meteor 使用的 Cordova 版本是 4.3。我在 Mac 上安装了 iOS 10.11,在 iPhone 上安装了 iOS 10.2,在 Xcode 8.2 上安装。 Meteor版本是最新的; 1.4.4.2,所有软件包都是最新的。

我在下面附加了 Xcode 运行时日志。可能是什么原因?或者,我应该怎样做才能了解问题的根本原因?P.S:我注意到末尾的日志“对尚未渲染的 View 进行快照会导致空快照。确保您的 View 在快照之前或屏幕更新后的快照至少已渲染一次”。此日志是否提供了有关原因的一些信息?

"*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.*"

最佳答案

确保您的 iPhone 和电脑位于同一网络。引用文档here在“连接到服务器”一章中。

关于ios - 适用于 iOS 的 Cordova 移动应用程序未与服务器通信,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44157788/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com