5

我正在尝试将 MagicalRecord 与 iCloud 一起使用,每次我打电话

    [MagicalRecord setupCoreDataStackWithiCloudContainer:nil localStoreNamed:@"MyApp.sqlite"];

我第一次在下面得到这些日志……以前有人见过吗?我已经清理了项目并删除了应用程序,但我每次都得到它。

我可以在“设置”>“iCloud”中看到我的应用程序,但在 developer.icloud.com 文档文件夹中没有任何内容

    2013-02-13 09:25:56.247 MyApp[6902:5d17] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/iCloudData/.baseline/current.nosync/iCloudStore/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=
    Confused by: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=
    2013-02-13 09:25:56.248 MyApp[6902:5807] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/iCloudData/mobile.YYYYYYY-YYYY-YYYY-YYYYYYYY/iCloudStore/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=
    Confused by: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=
    2013-02-13 09:25:56.253 MyApp[6902:1507] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/iCloudData/mobile.YYYYYYY-YYYY-YYYY-YYYYYYYY/.stage.nosync/iCloudStore/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=
    Confused by: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=
    2013-02-13 09:25:56.259 MyApp[6902:1507] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/iCloudData/.baseline/iCloudStore/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=/staging.nosync
    Confused by: staging.nosync
    2013-02-13 09:25:56.261 MyApp[6902:1507] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/iCloudData/.baseline/current.nosync/iCloudStore
    Confused by: iCloudStore
    2013-02-13 09:25:56.263 MyApp[6902:1507] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/iCloudData/.cdmetadata/metadata.nosync/mobile.YYYYYYY-YYYY-YYYY-YYYYYYYY/metadata.store-wal
    Confused by: metadata.store-wal
    2013-02-13 09:25:56.274 MyApp[6902:170b] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/Data.nosync/.baseline/current.nosync/iCloudStore/YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY=/baseline.model
    Confused by: baseline.model
    2013-02-13 09:25:56.279 MyApp[6902:1413] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/iCloudData/.cdmetadata/metadata.nosync/mobile.YYYYYYY-YYYY-YYYY-YYYYYYYY/metadata.store-shm
    Confused by: metadata.store-shm
    2013-02-13 09:25:56.286 MyApp[6902:170b] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/iCloudData/mobile.DDDDDD-DDDD-DDDD-DDDD-DDDDDDDDD/iCloudStore/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=
    Confused by: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=
    2013-02-13 09:25:56.291 MyApp[6902:170b] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/iCloudData/.baseline/iCloudStore/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=/baseline.zip
    Confused by: baseline.zip
    2013-02-13 09:25:56.292 MyApp[6902:1413] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/SyncData/com.walshitech.sbrspeeds/ClientDevices/ZZZZZZZZ-ZZZZ-ZZZZ-ZZZZ-ZZZZZZZZZZZZ-ZZZZ-ZZZZZZZZZ
    Confused by: ZZZZZZZZ-ZZZZ-ZZZZ-ZZZZ-ZZZZZZZZZZZZ-ZZZZ-ZZZZZZZZZ
    2013-02-13 09:25:56.297 MyApp[6902:1413] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/iCloudData/.baseline/current.nosync/iCloudStore/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=/baseline.meta
    Confused by: baseline.meta
    2013-02-13 09:25:56.298 MyApp[6902:170b] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/iCloudData/.baseline/iCloudStore/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=/staging.nosync/iCloudStore.sqlite
    Confused by: iCloudStore.sqlite
    2013-02-13 09:25:56.306 MyApp[6902:5d17] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/Data.nosync/.baseline/current.nosync/iCloudStore/YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY=/baseline.meta
    Confused by: baseline.meta
    2013-02-13 09:25:56.310 MyApp[6902:5d17] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/Data.nosync/.baseline/iCloudStore/YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY=/baseline.zip
    Confused by: baseline.zip
    2013-02-13 09:25:56.315 MyApp[6902:170b] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/iCloudData/.cdmetadata/metadata.nosync/mobile.YYYYYYY-YYYY-YYYY-YYYYYYYY/metadata.store
    Confused by: metadata.store
    2013-02-13 09:25:56.315 MyApp[6902:1507] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/iCloudData/.cdmetadata/metadata.nosync/mobile.YYYYYYY-YYYY-YYYY-YYYYYYYY
    Confused by: mobile.YYYYYYY-YYYY-YYYY-YYYYYYYY
    2013-02-13 09:25:56.324 MyApp[6902:1507] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/SyncData/com.walshitech.sbrspeeds/Information/DeletedDocuments
    Confused by: DeletedDocuments
    2013-02-13 09:25:56.324 MyApp[6902:5d17] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/iCloudData/.baseline/current.nosync/iCloudStore/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=/baseline.model
    Confused by: baseline.model
    2013-02-13 09:25:56.324 MyApp[6902:170b] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/SyncData/com.walshitech.sbrspeeds/Information/DeletedClients
    Confused by: DeletedClients
    2013-02-13 09:25:56.325 MyApp[6902:1413] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/SyncData/com.walshitech.sbrspeeds/ClientDevices/YYYYYYY-YYYY-YYYY-YYYY-YYYYYYYY-YYYY-YYYYYYYYYYY5
    Confused by: YYYYYYY-YYYY-YYYY-YYYY-YYYYYYYY-YYYY-YYYYYYYYYYY5
    2013-02-13 09:25:56.328 MyApp[6902:5807] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/iCloudData/mobile.YYYYYYY-YYYY-YYYY-YYYYYYYY/.stage.nosync/iCloudStore
    Confused by: iCloudStore
    2013-02-13 09:25:56.330 MyApp[6902:1507] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/iCloudData/.baseline/current.nosync/iCloudStore/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=/baseline.gcmodel
    Confused by: baseline.gcmodel
    2013-02-13 09:25:56.330 MyApp[6902:5207] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/iCloudData/.baseline/iCloudStore/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=
    Confused by: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=
    2013-02-13 09:25:56.346 MyApp[6902:5d17] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/iCloudData/.cdmetadata/metadata.nosync/mobile.YYYYYYY-YYYY-YYYY-YYYYYYYY/iCloudStore
    Confused by: iCloudStore
    2013-02-13 09:25:56.348 MyApp[6902:5207] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/iCloudData/.cdmetadata/metadata.nosync/mobile.YYYYYYY-YYYY-YYYY-YYYYYYYY/iCloudStore/CCCCCC-CCCC-CCCC-CCCC-CCCCCCCCC.cid
    Confused by: CCCCCC-CCCC-CCCC-CCCC-CCCCCCCCC.cid
    2013-02-13 09:25:56.349 MyApp[6902:5d17] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/Data.nosync/.baseline/iCloudStore/YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY=/mobile.YYYYYYY-YYYY-YYYY-YYYYYYYY
    Confused by: mobile.YYYYYYY-YYYY-YYYY-YYYYYYYY
    2013-02-13 09:25:56.358 MyApp[6902:5207] +[PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootPath:](821): CoreData: Ubiquity:  Unable to continue parse components of URL: /var/mobile/Library/Mobile Documents/XXXXXXXXXXX~com~my~app/Data.nosync/.baseline/current.nosync/iCloudStore/YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY=/baseline.gcmodel
    Confused by: baseline.gcmodel
4

2 回答 2

2

我知道这是一个老问题,但对于刚刚遇到这个问题的人来说,我想我找到了解决方案。对我来说,这是模拟器的问题。显然,模拟器创建了一些设备无法正确访问的奇怪文件。

尝试按以下顺序执行以下操作,看看它是否消失:

  1. 从 iOS 模拟器和设备中删除您的应用程序并安装它。
  2. 在您的 iPhone / iPad(不是模拟器)上,转到设置 > iCloud > 存储和备份 > 管理存储 > Your_app_name > 编辑(右上角)> 全部删除。
  3. 尝试在您的设备上再次安装该应用程序。

希望奇怪的错误将不再存在。再次在模拟器上运行应用程序可能会再次创建它们,您将不得不重复该过程。

于 2013-12-23T15:54:11.653 回答
0

好吧,我可以告诉你它们是什么,但不是一个有保证的解决方案。

这些文件就是我所说的,由您或您的应用程序在 ubiquity 目录中创建的“幽灵文件”。

要显示这是正在发生的事情,请转到 Mac 上用户库中的“移动文档”文件夹,转到“/var/mobile/Library/Mobile Documents/XXXXXXXXXXXX~com~my~app/iCloudData”文件,然后只需手动通过“命令 N”创建一个新文件。

然后从那时起,您将收到一个额外的“错误”,其中“无标题文件夹”作为它无法“解析”的文件......

不过,从您的设备中删除所有内容似乎会将这些文件留在实际的 iCloud 数据服务器上(我认为)。创建“幽灵文件”

如果这是开发者帐户,您可以通过以下方式查看甚至删除它们:

https://developer.icloud.com/ 并使用您的开发者 ID 登录。

如果这是一个测试帐户,那么我似乎无法找到删除这些文件的方法..

你可以通过简单地在你的代码中创建新目录来解决它,所以代替“iCloudData”这个词组成一个新的“iCloudData2”或其他东西,

现在您可以让 iCloud 再次工作,但是,您将继续在控制台中看到这些警告/错误...

如果有人弄清楚如何从测试用户帐户中删除它们“换句话说就是没有开发人员 ID”,请告诉我......

过去您可以访问上述网站并输入您的测试用户 ID,但在 Apple 的无限智慧中,他们在几个月前将其更改为现在只是开发人员 ID。

于 2013-04-18T17:10:20.357 回答