目前我只有一台 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/