2011-12-03 7 views
0

iCloudは、macスタイルとiOSタイプのライブラリスタイルのsqlliteコアデータプロジェクトで使用しています。彼らは1つのエンティティを除いてすべて正常に同期します。 iPadで作成したPFUbiquityRecordsImporter - 属性の値として容認できない値:プロパティ

シングルレコードがエラーでMacにダウンロードしてみました:

Unacceptable type of value for attribute: property = "completedDate"; desired type = NSDate; given type = __NSCFNumber; value = 0. 2011-12-02 18:19:58.175 Opus Domini[1653:403] -_PFUbiquityRecordsImporter operation:failedWithError:: CoreData: Ubiquity: Import operation ecountered an error: Error Domain=NSCocoaErrorDomain Code=134060 "A Core Data error occurred." UserInfo=0x10037a580 {exception=Unacceptable type of value for attribute: property = "completedDate"; desired type = NSDate; given type = __NSCFNumber; value = 0.} while trying to import the log file at the URL:

どちらのプロジェクトは、同じモデルとデータクラスを共有し、他のクラスが同じパラメータで日付フィールドを含みます。 アイデア

答えて

0

私は、そのエンティティのサブクラス化されたNSManagedObjectで簡単な間違いであることが判明しました。 iCloudログをマージするときは、プロパティを使用してデータを設定します。

関連する問題