【问题标题】:Does XCode iOS Simulator require internet access?XCode iOS 模拟器是否需要互联网访问?
【发布时间】:2015-01-10 06:33:00
【问题描述】:

我正在尝试在 Xcode 6.1 中构建一个 iPhone 应用程序,但是代码是从外部公司提供的。

出于安全原因,应用程序正在(应该)与之通信的测试服务器位于无法访问互联网的单独网络上。

当我在这个网络的模拟器上构建和运行应用程序时,几乎立即(在应用程序上)抛出一个错误并且应用程序没有运行。

当我使用具有 Internet 访问权限的网络构建应用程序时,应用程序成功启动 - 但显然无法访问目标服务器。

该公司坚持需要互联网访问才能验证我的 iOS 配置文件......而我很确定它在应用程序中。

是否需要互联网访问才能通过 XCode 在模拟器上构建和运行应用程序?


认为这是错误...但我是一个 C#/Windows 人,对 XCode 知之甚少! 很确定这是应用程序而不是模拟器引发的错误。

*********************************** Server Response END FAI BLO******************************
2014-11-12 14:33:04.019 FCiOS12P2[11017:60b] **** error is :Error Domain=KFCRMSErrorDomaininResourceUpdate Code=3126 "The operation couldn’t be completed. (KFCRMSErrorDomaininResourceUpdate error 3126.)"
2014-11-12 14:33:04.020 FCiOS12P2[11017:60b] Failed to get token, error: Error Domain=NSCocoaErrorDomain Code=3010 "remote notifications are not supported in the simulator" UserInfo=0x7978acd0 {NSLocalizedDescription=remote notifications are not supported in the simulator}
2014-11-12 14:33:09.059 FCiOS12P2[11017:60b] FCAlertView: FCAlertOverlayWindow dealloc
2014-11-12 14:33:09.060 FCiOS12P2[11017:60b] FCAlertView: FCAlertViewController dealloc
2014-11-12 14:34:29.706 FCiOS12P2[11017:60b] Reachability Flag Status: -R -----l- networkStatusForFlags
2014-11-12 14:34:29.707 FCiOS12P2[11017:60b] -[NetworkStatusManager checkNetworkStatus:] [Line 89] The internet is working via WIFI.

【问题讨论】:

  • 我不认为他们可能会在应用程序委托中进行 rechability 测试,你能告诉我们抛出的错误吗?
  • 这是模拟器,不是模拟器。
  • 可能是这个问题引起的:remote notifications are not supported in the simulator。你在设备上试过了吗?
  • 在设备上失败并出现同样的错误...公司 triewd 告诉我这是因为我的配置文件...不是。他们现在已经承认了一个错误,并且正在重写我们所说的......

标签: ios iphone ios-simulator xcode6


【解决方案1】:

您无需配置文件即可使用 iPad 模拟器,也无需访问互联网即可使用 iPad 模拟器。

【讨论】:

  • 那么,99.99999% 是他们的应用程序本身进行某种连接/检查互联网?
【解决方案2】:

这条线Failed to get token, error: Error Domain=NSCocoaErrorDomain Code=3010 "remote notifications are not supported in the simulator" 应该意味着您的应用使用推送通知,但您无法在模拟器上获取令牌。

无论如何,答案是否定的,您不需要互联网访问即可在 iPad 模拟器上运行应用程序

【讨论】:

    【解决方案3】:

    您正在处理的应用程序使用 Microsoft RD 客户端?它最近已更新到 8.1.0。您在 URL 中遇到的错误无法识别。这在模拟器上不起作用。如果连接到 LAN,使用此客户端的 wifi 桌面应用程序存在错误

    如果是关于 RD 8.1.0 客户端无法解决,请等待更新

    在设备上调试。

    【讨论】:

    • 谢谢 - 但是更多测试表明这适用于 8.1,但不适用于 7.1
    猜你喜欢
    • 2014-09-27
    • 2014-11-15
    • 2016-10-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-10-22
    相关资源
    最近更新 更多