앱의 중요한 단계에서이 오류가 발생합니다. 시나리오는 MainView가 "User == % @", currentUser라는 술어를 사용하여 기본보기에서 엔티티 "Category"의 목록을 가져 오는 것입니다.iCloud - 핵심 데이터 동기화 문제
이 페이지는 icloud를 통해 기기간에 잘 동기화됩니다.
사용자가 있습니다. < -----> 범주 < ---- >> 필드 < --------- >> 항목 (타임 스탬프, 값). < < ------------> 사용자 유일한 차이점은 항목이 다른 사용자에게 속할 수 있다는 것입니다. 그러므로 마지막 관계.
내가 "항목"엔티티를 추가 할 때, 그 로컬 잘 만들었지 만 로그 (iCloud를 통해) 수신 장치에 도착하면 ... 난이 얻을 : 나는 같은 사용
2012-02-21 06:36:55.573 APPCloud[2403:4923] -[_PFUbiquityRecordsImporter operation:failedWithError:](839): CoreData: Ubiquity: Import operation ecountered an error: Error Domain=NSCocoaErrorDomain Code=134060 "The operation couldn’t be completed. (Cocoa error 134060.)" UserInfo=0x79ce410 {exception=Illegal attempt to establish a relationship 'forUser' between objects in different contexts (source = <Entry: 0x855eac0> (entity: Entry; id: 0x855e6b0 <x-coredata:///Entry/tDF69E4F8-35DE-4DC1-8077-F5A563FE0DCC1041> ; data: { comment = nil;
forField = nil;
forUser = nil;
period = 0;
timeStamp = nil;
value = 0;
}) , destination = <User: 0x288820> (entity: User; id: 0x232a10 <x-coredata://43C097FE-4A91-42A9-B8EC-CF32D65F7328/User/p1> ; data: {
birthday = "1999-02-20 21:00:00 +0000";
entries = (
"0x79aa590 <x-coredata:///Entry/tDF69E4F8-35DE-4DC1-8077-F5A563FE0DCC16>",
"0x2071d0 <x-coredata://43C097FE-4A91-42A9-B8EC-CF32D65F7328/Entry/p1>",
"0x206bf0 <x-coredata://43C097FE-4A91-42A9-B8EC-CF32D65F7328/Entry/p2>"
);
firstName = Samuel;
fullName = nil;
height = 0;
images = (
);
lastName = User;
male = 1;
trackers = (
"0x797bb60 <x-coredata://43C097FE-4A91-42A9-B8EC-CF32D65F7328/Tracker/p1>"
);
uuid = "07110878-F6D3-482D-BC0E-3CE8B4A581E4HGMG";
years = 0;
}))} while trying to import the log file at the URL: <PFUbiquityTransactionLog: 0x79ca620>
을 문맥, 나는 여기에 무슨 일이 일어나는지 모르겠다. 그리고이 로그가 도착하면, 다른 스터프는 전혀 작동하지 않는다 ..
올바른 방향으로 나를 가리 키도록하십시오!
감사합니다.
네, 분명히 내가 추가 한 컨텍스트가 올바르게 초기화되지 않았습니다. 나는 얼마나 절름발이 냐! – jasonIM