XCode 5.0.2模拟器通讯簿为空 [英] XCode 5.0.2 simulator address book is empty

查看:63
本文介绍了XCode 5.0.2模拟器通讯簿为空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于Xcode 5.0.2的更新,模拟器的通讯簿为空.显然,如果要在模拟器上测试通讯录代码,则每次重置模拟器时,都必须手动输入测试联系人.较早的版本具有标准测试地址"John Appleseed"等.
有没有更简单的方法可以在模拟器上使用测试联系人?
PS:我想感谢 DipakSonara和Paaske .我的代码遇到了同样的问题,以前可以正常工作,我从没想过地址簿在更新中就被清空了.

我从备份中重新加载了XCode 5.0.1,并且通讯簿再次具有其较早的标准联系人.
我今天尝试在XCode5.0.2和模拟器7.0下打开通讯簿,并且那里有旧的联系人.因此,这似乎是一个间歇性问题.

Since the update of Xcode 5.0.2, the address book of the simulator is empty. Apparently, if one wants to test address book code on the simulator, one has now to enter the test contacts by hand every time the simulator is reset. Earlier one had the standard test addresses "John Appleseed" etc.
Is there any simpler way to use test contacts on the simulator?
PS: I want to give credit to DipakSonara and Paaske. I had the same problem with my code that worked earlier fine, and I had never thought that the address book has simply be emptied in the update.

I reloaded XCode 5.0.1 from a backup, and the address book has its earlier standard contacts again.
I tried today to open the address book under XCode5.0.2, and simulator 7.0, and the old contacts are there. So this seems to be a intermittent problem.

推荐答案

我也遇到了这个问题.我想出的唯一解决方案是:

I have also run into this issue. The only solutions I have come up with are:

  • 手动添加多个联系人,可能会令人沮丧
  • 创建一个用几个联系人填充通讯簿的项目,如果您需要更多联系人,则更容易
  • 现在iOS模拟器支持iCloud,并且您已经备份了联系人,您可以将其同步到iCloud帐户,触发iCloud同步,并使用实际的通讯录进行测试.

这篇关于XCode 5.0.2模拟器通讯簿为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆