篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了swift Swift - CloudKit - 通过模拟器访问iCloud相关的知识,希望对你有一定的参考价值。
To run your app in iOS Simulator, enter the iCloud credentials in iOS Simulator
before you select the simulator and click the Run button in Xcode. You need to
perform these steps for each iOS Simulator you select in the Scheme pop-up menu in Xcode.
To enter iCloud credentials in iOS Simulator
Choose Xcode > Open Developer Tool > iOS Simulator.
In iOS Simulator, choose Hardware > Home.
Launch the Settings app and click iCloud.
../Art/3_icloud_settings_2x.png
Enter an Apple ID and password.
Click Sign In.
Wait while iOS verifies the iCloud account.
To enable iCloud Drive, click the iCloud Drive switch.
If the switch doesn’t appear, iCloud Drive is already enabled.
For how to create an iCloud account, read Create an iCloud Account for Development.
以上是关于swift Swift - CloudKit - 通过模拟器访问iCloud的主要内容,如果未能解决你的问题,请参考以下文章