我在 AppStore 中有一个功能齐全的应用,CoreData
和iCloud
同步。我正在测试iOS 9,虽然一切看起来都有效,但是当我从一个设备同步到另一个设备时,我注意到以下错误。
CoreData: error: (11) Fatal error. The database at /var/mobile/Containers/Data/Application/580557C7-73AC-4AF8-91CF-01BD5F27ABB4/Documents/CoreDataUbiquitySupport/mobile~36705781-84CA-4F2F-9ACF-CE09430CD443/xxxCloud/480AE190-0402-423E-83C2-FACB7B4F91B0/store/xxxiCloud.sqlite is corrupted. SQLite error code:11, 'database disk image is malformed'
CoreData: error: (NSFetchedResultsController) object <Transaction: 0x150b4a710> (entity: Transaction; id: 0xd000000010080018 <x-coredata://CDF5586C-0200-4BCB-9712-9F1B9658120B/Transaction/p1026> ; data: {
为部分名称键路径“sectionDateFormatter
”返回了nil值。 Object
将被放置在未命名的部分
[PFUbiquityFilePresenter processPendingURLs]_block_invoke(447): CoreData: Ubiquity: Librarian returned a serious error for starting downloads Error Domain=BRCloudDocsErrorDomain Code=6 "Path is outside of any CloudDocs container, will never sync" UserInfo={NSDescription=Path is outside of any CloudDocs container, will never sync, NSFilePath=/var/mobile/Containers/Data/Application/5BCFB5C2-3362-4CEB-B3D1-1D9F26E8BED7/Documents/CoreDataUbiquitySupport/mobile~CCC51F1A-17CD-4ECE-9139-5541E004AB6F/EnvyCloud/B7952C69-736E-45B9-91FF-BCF559E3C4D6/container/mobile~CCC51F1A-17CD-4ECE-9139-5541E004AB6F/EnvyCloud/WVf0Dg3x4aqbEj~WvOz9p4_uNDY2us3DJ3aK0MihPb8=/73F3E0C0-9B6D-4A81-84A7-7FC93A7351E6.1.cdt} with userInfo {
现在这些错误并不总是发生;我似乎无法找到重现它的模式,但它发生了足够的时间让我担心。这些错误究竟发生了什么?我可以看到第一个看起来它已经损坏,但是这样的事情怎么会发生呢?
我从未在iOS 7或iOS 8上看到过这些错误,当我在iOS 9设备上运行时,它只是出现在XCode 7 beta 5中,有时候(并不总是会出现)。