iphone - 如何解决 Xcode 4.1 (LION) GPS 错误?

标签 iphone core-location osx-lion xcode4.1

我的项目在模拟器+设备上完美运行,
但现在,升级到 lion 操作系统和 xcode 4.1 后,当 GPS 处于事件状态时,我会收到此错误!

server did not accept client registration 68

这是一个基于 GPS 的应用程序,我很紧张不能在模拟器中调试应用程序!

有办法解决这个问题吗?

<小时/>

更新:模拟器上的 Gps 也无法在 Xcode 3.2.6 + LION 上运行。

<小时/>

编辑:Apple 对错误跟踪器的回应:

After further investigation it has been determined that this is a known issue, which is currently being investigated by engineering. This issue has been filed in our bug database under the original Bug ID#. Thank you for submitting this bug report. We truly appreciate your assistance in helping us discover and isolate bugs.

最佳答案

Xcode 4.2 添加自定义 GPS 位置解决了这个问题!

该文件是这样的 XML:

<?xml version="1.0"?>
<gpx version="1.1" creator="Xcode"> 
  <wpt lat="45,49939" lon="9,12114">
    <name>Milano</name>
  </wpt>
</gpx>

您可以将此文件添加到您的项目或新建->文件->GPX 中。

当您运行应用时,激活控制台并选择您的自定义位置文件:

enter image description here

就这些了。<​​br/> 享受吧。

关于iphone - 如何解决 Xcode 4.1 (LION) GPS 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6792061/

相关文章:

iphone - 如何从自定义对象访问 mainViewController 方法?

ios - 应用圆形区域的地理围栏时应用程序崩溃

iphone - 如何从 Core Location 获取 gps 点的距离?

iphone - Gamer Center 排行榜不显示分数,每个用户只能访问自己的分数

android - Windows Phone 的 native iOS/android 应用程序

iphone - 使 MKMapView 透明但保持覆盖层不透明

macos - 从 URL 获取文本

cocoa - 如何从 Cocoa 应用程序创建 "print utility"?

cocoa - 在沙盒应用程序中使用 Apple 服务

iphone - 通过 AVAssetReader 读取音频样本