【发布时间】: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