2011-12-23 3 views
9

내 응용 프로그램과 동기화 작업에 아이 클라우드 통합을 동기화,하지만 때로는이 오류가 얻을 : 나는 잠시 기다리면은 아이 클라우드는 유비 오류

+[PFUbiquityTransactionLog loadPlistAtLocation:withError:](324): CoreData: Ubiquity: 
Encountered an error trying to open the log file at the location: <PFUbiquityLocation: 
0x1993c0>: /private/var/mobile/Library/Mobile Documents/ ... 
Error: Error Domain=NSCocoaErrorDomain Code=256 "The operation couldn’t be completed. 
(Cocoa error 256 - The item failed to download.)" 

-[PFUbiquityTransactionLog loadComparisonMetadataWithError:](220): CoreData: Ubiquity: 
Error encountered while trying to load the comparison metadata for transaction log: 
<PFUbiquityTransactionLog: 0x1a3d60> 
transactionLogLocation: <PFUbiquityLocation: 0x1993c0>: /private/var/mobile/Library/Mobile Documents/ 
transactionNumber: (null) 

Error: Error Domain=NSCocoaErrorDomain Code=134302 "The operation couldn’t be completed. 
(Cocoa error 134302.)" UserInfo=0x1a50e0 {reason=Error during property list parsing during 
import or opening of log file at location: <PFUbiquityLocation: 0x1993c0>:  
/private/var/mobile/Library/Mobile Documents/ ... Error Domain=NSCocoaErrorDomain Code=256 
"The operation couldn’t be completed. (Cocoa error 256 - The item failed to download.)" 

무슨 뜻인지 어떤 생각하지만, 그것은 것으로 보인다을 iCloud에 병합이 완료되었습니다 ... 누구든지 이것을 해결하는 방법?

나는

[_document.managedObjectContext 
    setMergePolicy:NSMergeByPropertyStoreTrumpMergePolicy] 

그러나 어떤 도움없이 ...

Thnx 설정을 시도!

답변

3

이 로그는 유익합니다.

iCloud 데몬은 메타 데이터를 가져 오는 것만으로 파일이 유비쿼터스 컨테이너에 있음을 알 수 있습니다. 파일 내용을 다운로드하는 것은 별도의 두 번째 단계입니다.

파일을 다운로드하지 못하면 나중에 다운로드하려고 시도합니다.

+0

"가져 오기 작업에 손상된 로그 파일이 있습니다"와 같은 매우 유사한 오류가 나타납니다. iCloud deamon은 1 분마다 재 시도를 계속하지만 내 경우에는 이러한 오류를 극복 할 수없는 것 같습니다. 그러나 후속 재시도시 오류가 해결되는 경우를 보았습니다. – Daniel

+0

@ 대니얼은 해결책을 찾았습니까? 문제는 매 30 초마다 "CoreData : Ubiquity : 트랜잭션 로그를 가져 오는 중 오류가 발생했습니다."오류입니다. 가져 오기 요청이 차단되었습니다. – Stephan

+0

@Stephan - 네,이 문제에 대한 해결책을 찾았습니다 : iOS 5.1로 업그레이드하십시오. 상당히 좋지만, 동기화하는 데는 다소 시간이 걸릴 수 있지만 여전히 변경 사항에 대한 알림을받지는 않습니다. 그러나 앱을 종료하고 다시 시작하면 새 데이터를 볼 수 있습니다. 나는 UIManagedDocument를 닫고 여는 것이이 문제를 해결할 것이라고 생각하지만, 새로운 iOS 버전이 자동으로이를 수정하기를 기대하면서 그 일을 연기했다. – Daniel