ios - 使用单个 iOS 设备测试 iCloud 同步

标签 ios testing core-data icloud

目前我只有一台 iOS 设备,到目前为止还没有出现问题。但我现在想为我的应用程序(使用核心数据)添加 iCloud 同步支持。

在我获得第二台设备之前,是否根本无法进行测试?或者是否可以将 iOS 模拟器与我的设备结合使用或伪造 iCloud 数据以测试 iCloud 同步?

编辑:不需要太多研究就可以发现 iCloud,尤其是 Core Data,绝对需要大量测试,这当然意味着要使用不止一台设备进行测试!

最佳答案

在 Xcode 5 中:

OS Simulator now supports iCloud syncing of documents and KVS data within an app, enabling apps to sync between devices using iCloud. This feature is useful when testing to ensure that the app documents and data are syncing properly across multiple devices.

Note: With the app running in the iOS Simulator, sign in to an Apple ID account using the Settings app. After signing in, use the “Trigger iCloud sync” command in the Debug menu to tell the simulator to sync with other devices.

关于ios - 使用单个 iOS 设备测试 iCloud 同步,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12337875/

相关文章:

ios - 是否可以更改 NavigationButton 以显示图像而不是蓝色?

objective-c - 检查两个或多个 CGRects 在 NSMutableArray 中时是否接触的好方法是什么?

swift - NSPredicate 用于搜索带双引号的字符串

ios - 关闭推送通知

spring - 显示与@MockBean 注释模拟的交互

unit-testing - 关于单元测试的几个问题

reactjs - 每个测试的 Jest 模拟值

objective-c - CoreData 和预填充的数据库

iphone - 核心数据: Is it possible to build a desktop app to create the data model for an iPhone app with Core Data?

iOS swift : MKPointAnnotation not always showing title