I'm getting several errors, that are not blocking, in this piece of code:
[psc lock];
NSError *error = nil;
if (![psc addPersistentStoreWithType:NSSQLiteStoreType
configuration:nil
URL:localStore
options:options
error:&error]) {
NSLog(#"Unresolved error %#, %#", error, [error userInfo]);
abort();
}
[psc unlock];
Something like the following ( note: at the end of the process, the data seem correctly synchronized , no exception is thrown and error is nil, but however the synchronization takes some time); the error are of two kinds, at the beginning it seems a file ( or more ) is missing and then it says something about data integrity ( some foreign keys that are not satisfied ), maybe the two problems are related ?
Is this a normal situation ?
( btw, the app is in store, https://itunes.apple.com/app/id582749801 , it memorizes tracks from gps and make them available to other devices, tracks may contain much data, 2 records for second )
( sorry for the long log, i have cut it a bit, however it may be useful to understand what is happening )
2012-12-14 11:18:25.489 CloudGPSTracker[9303:907] -[PFUbiquityTransactionLog loadPlistAtLocation:withError:](485): CoreData: Ubiquity: Error reading the log file at location: (null)
userInfo: (null), local error: Error Domain=NSCocoaErrorDomain Code=256 "The operation couldn’t be completed. (Cocoa error 256 - The item failed to download.)" UserInfo=0x1ddf3ee0 {NSURL=file://localhost/private/var/mobile/Library/Mobile%20Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/542E2269-592C-4CCA-AA47-A783C78DE466.1.cdt, NSUnderlyingError=0x1ddf3e50 "The operation couldn’t be completed. (UBErrorDomain error 0.)", NSDescription=The item failed to download.}
userInfo: {
NSDescription = "The item failed to download.";
NSURL = "file://localhost/private/var/mobile/Library/Mobile%20Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/542E2269-592C-4CCA-AA47-A783C78DE466.1.cdt";
NSUnderlyingError = "Error Domain=UBErrorDomain Code=0 \"The operation couldn\U2019t be completed. (UBErrorDomain error 0.)\"";
}
2012-12-14 11:18:25.491 CloudGPSTracker[9303:907] -[PFUbiquityTransactionLog loadContents:](290): CoreData: Ubiquity: Error encountered while trying to load the comparison metadata for transaction log: <PFUbiquityTransactionLog: 0x1f083450>
transactionLogLocation: <PFUbiquityLocation: 0x1f005420>: /private/var/mobile/Library/Mobile Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/542E2269-592C-4CCA-AA47-A783C78DE466.1.cdt
transactionNumber: (null)
Error: Error Domain=NSCocoaErrorDomain Code=134302 "The operation couldn’t be completed. (Cocoa error 134302.)" UserInfo=0x1f2c1ae0 {reason=Error reading the log file at location: (null)
userInfo: (null), local error: Error Domain=NSCocoaErrorDomain Code=256 "The operation couldn’t be completed. (Cocoa error 256 - The item failed to download.)" UserInfo=0x1ddf3ee0 {NSURL=file://localhost/private/var/mobile/Library/Mobile%20Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/542E2269-592C-4CCA-AA47-A783C78DE466.1.cdt, NSUnderlyingError=0x1ddf3e50 "The operation couldn’t be completed. (UBErrorDomain error 0.)", NSDescription=The item failed to download.}
userInfo: {
NSDescription = "The item failed to download.";
NSURL = "file://localhost/private/var/mobile/Library/Mobile%20Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/542E2269-592C-4CCA-AA47-A783C78DE466.1.cdt";
NSUnderlyingError = "Error Domain=UBErrorDomain Code=0 \"The operation couldn\U2019t be completed. (UBErrorDomain error 0.)\"";
}}
userInfo: {
reason = "Error reading the log file at location: (null)\nuserInfo: (null), local error: Error Domain=NSCocoaErrorDomain Code=256 \"The operation couldn\U2019t be completed. (Cocoa error 256 - The item failed to download.)\" UserInfo=0x1ddf3ee0 {NSURL=file://localhost/private/var/mobile/Library/Mobile%20Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/542E2269-592C-4CCA-AA47-A783C78DE466.1.cdt, NSUnderlyingError=0x1ddf3e50 \"The operation couldn\U2019t be completed. (UBErrorDomain error 0.)\", NSDescription=The item failed to download.}\nuserInfo: {\n NSDescription = \"The item failed to download.\";\n NSURL = \"file://localhost/private/var/mobile/Library/Mobile%20Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/542E2269-592C-4CCA-AA47-A783C78DE466.1.cdt\";\n NSUnderlyingError = \"Error Domain=UBErrorDomain Code=0 \\\"The operation couldn\\U2019t be completed. (UBErrorDomain error 0.)\\\"\";\n}";
}
2012-12-14 11:18:25.495 CloudGPSTracker[9303:907] -[_PFUbiquityRecordsImporter createSortedOperationsArrayForLogLocationsInContext:isFirstImport:](256): CoreData: Ubiquity: Error loading comparison metadata for transaction log: (null)
Error: Error Domain=NSCocoaErrorDomain Code=134302 "The operation couldn’t be completed. (Cocoa error 134302.)" UserInfo=0x1f2c1ae0 {reason=Error reading the log file at location: (null)
userInfo: (null), local error: Error Domain=NSCocoaErrorDomain Code=256 "The operation couldn’t be completed. (Cocoa error 256 - The item failed to download.)" UserInfo=0x1ddf3ee0 {NSURL=file://localhost/private/var/mobile/Library/Mobile%20Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/542E2269-592C-4CCA-AA47-A783C78DE466.1.cdt, NSUnderlyingError=0x1ddf3e50 "The operation couldn’t be completed. (UBErrorDomain error 0.)", NSDescription=The item failed to download.}
userInfo: {
NSDescription = "The item failed to download.";
NSURL = "file://localhost/private/var/mobile/Library/Mobile%20Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/542E2269-592C-4CCA-AA47-A783C78DE466.1.cdt";
NSUnderlyingError = "Error Domain=UBErrorDomain Code=0 \"The operation couldn\U2019t be completed. (UBErrorDomain error 0.)\"";
}}
User Info: {
reason = "Error reading the log file at location: (null)\nuserInfo: (null), local error: Error Domain=NSCocoaErrorDomain Code=256 \"The operation couldn\U2019t be completed. (Cocoa error 256 - The item failed to download.)\" UserInfo=0x1ddf3ee0 {NSURL=file://localhost/private/var/mobile/Library/Mobile%20Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/542E2269-592C-4CCA-AA47-A783C78DE466.1.cdt, NSUnderlyingError=0x1ddf3e50 \"The operation couldn\U2019t be completed. (UBErrorDomain error 0.)\", NSDescription=The item failed to download.}\nuserInfo: {\n NSDescription = \"The item failed to download.\";\n NSURL = \"file://localhost/private/var/mobile/Library/Mobile%20Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/542E2269-592C-4CCA-AA47-A783C78DE466.1.cdt\";\n NSUnderlyingError = \"Error Domain=UBErrorDomain Code=0 \\\"The operation couldn\\U2019t be completed. (UBErrorDomain error 0.)\\\"\";\n}";
}
2012-12-14 11:20:10.991 CloudGPSTracker[9303:907] -[PFUbiquityTransactionLog loadPlistAtLocation:withError:](485): CoreData: Ubiquity: Error reading the log file at location: (null)
userInfo: (null), local error: Error Domain=NSCocoaErrorDomain Code=256 "The operation couldn’t be completed. (Cocoa error 256 - The item failed to download.)" UserInfo=0x1f50b7e0 {NSURL=file://localhost/private/var/mobile/Library/Mobile%20Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/8EEB401B-05C5-4221-AEA3-EC377BB51CAB.1.cdt, NSUnderlyingError=0x1f50b850 "The operation couldn’t be completed. (UBErrorDomain error 0.)", NSDescription=The item failed to download.}
userInfo: {
NSDescription = "The item failed to download.";
NSURL = "file://localhost/private/var/mobile/Library/Mobile%20Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/8EEB401B-05C5-4221-AEA3-EC377BB51CAB.1.cdt";
NSUnderlyingError = "Error Domain=UBErrorDomain Code=0 \"The operation couldn\U2019t be completed. (UBErrorDomain error 0.)\"";
}
2012-12-14 11:20:10.993 CloudGPSTracker[9303:907] -[PFUbiquityTransactionLog loadContents:](290): CoreData: Ubiquity: Error encountered while trying to load the comparison metadata for transaction log: <PFUbiquityTransactionLog: 0x1f50f490>
transactionLogLocation: <PFUbiquityLocation: 0x1f18f940>: /private/var/mobile/Library/Mobile Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/8EEB401B-05C5-4221-AEA3-EC377BB51CAB.1.cdt
transactionNumber: (null)
Error: Error Domain=NSCocoaErrorDomain Code=134302 "The operation couldn’t be completed. (Cocoa error 134302.)" UserInfo=0x1f5106f0 {reason=Error reading the log file at location: (null)
userInfo: (null), local error: Error Domain=NSCocoaErrorDomain Code=256 "The operation couldn’t be completed. (Cocoa error 256 - The item failed to download.)" UserInfo=0x1f50b7e0 {NSURL=file://localhost/private/var/mobile/Library/Mobile%20Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/8EEB401B-05C5-4221-AEA3-EC377BB51CAB.1.cdt, NSUnderlyingError=0x1f50b850 "The operation couldn’t be completed. (UBErrorDomain error 0.)", NSDescription=The item failed to download.}
userInfo: {
NSDescription = "The item failed to download.";
NSURL = "file://localhost/private/var/mobile/Library/Mobile%20Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/8EEB401B-05C5-4221-AEA3-EC377BB51CAB.1.cdt";
NSUnderlyingError = "Error Domain=UBErrorDomain Code=0 \"The operation couldn\U2019t be completed. (UBErrorDomain error 0.)\"";
}}
userInfo: {
reason = "Error reading the log file at location: (null)\nuserInfo: (null), local error: Error Domain=NSCocoaErrorDomain Code=256 \"The operation couldn\U2019t be completed. (Cocoa error 256 - The item failed to download.)\" UserInfo=0x1f50b7e0 {NSURL=file://localhost/private/var/mobile/Library/Mobile%20Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/8EEB401B-05C5-4221-AEA3-EC377BB51CAB.1.cdt, NSUnderlyingError=0x1f50b850 \"The operation couldn\U2019t be completed. (UBErrorDomain error 0.)\", NSDescription=The item failed to download.}\nuserInfo: {\n NSDescription = \"The item failed to download.\";\n NSURL = \"file://localhost/private/var/mobile/Library/Mobile%20Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/8EEB401B-05C5-4221-AEA3-EC377BB51CAB.1.cdt\";\n NSUnderlyingError = \"Error Domain=UBErrorDomain Code=0 \\\"The operation couldn\\U2019t be completed. (UBErrorDomain error 0.)\\\"\";\n}";
}
2012-12-14 11:20:10.996 CloudGPSTracker[9303:907] -[_PFUbiquityRecordsImporter createSortedOperationsArrayForLogLocationsInContext:isFirstImport:](256): CoreData: Ubiquity: Error loading comparison metadata for transaction log: (null)
Error: Error Domain=NSCocoaErrorDomain Code=134302 "The operation couldn’t be completed. (Cocoa error 134302.)" UserInfo=0x1f5106f0 {reason=Error reading the log file at location: (null)
userInfo: (null), local error: Error Domain=NSCocoaErrorDomain Code=256 "The operation couldn’t be completed. (Cocoa error 256 - The item failed to download.)" UserInfo=0x1f50b7e0 {NSURL=file://localhost/private/var/mobile/Library/Mobile%20Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/8EEB401B-05C5-4221-AEA3-EC377BB51CAB.1.cdt, NSUnderlyingError=0x1f50b850 "The operation couldn’t be completed. (UBErrorDomain error 0.)", NSDescription=The item failed to download.}
userInfo: {
NSDescription = "The item failed to download.";
NSURL = "file://localhost/private/var/mobile/Library/Mobile%20Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/8EEB401B-05C5-4221-AEA3-EC377BB51CAB.1.cdt";
NSUnderlyingError = "Error Domain=UBErrorDomain Code=0 \"The operation couldn\U2019t be completed. (UBErrorDomain error 0.)\"";
}}
User Info: {
reason = "Error reading the log file at location: (null)\nuserInfo: (null), local error: Error Domain=NSCocoaErrorDomain Code=256 \"The operation couldn\U2019t be completed. (Cocoa error 256 - The item failed to download.)\" UserInfo=0x1f50b7e0 {NSURL=file://localhost/private/var/mobile/Library/Mobile%20Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/8EEB401B-05C5-4221-AEA3-EC377BB51CAB.1.cdt, NSUnderlyingError=0x1f50b850 \"The operation couldn\U2019t be completed. (UBErrorDomain error 0.)\", NSDescription=The item failed to download.}\nuserInfo: {\n NSDescription = \"The item failed to download.\";\n NSURL = \"file://localhost/private/var/mobile/Library/Mobile%20Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/8EEB401B-05C5-4221-AEA3-EC377BB51CAB.1.cdt\";\n NSUnderlyingError = \"Error Domain=UBErrorDomain Code=0 \\\"The operation couldn\\U2019t be completed. (UBErrorDomain error 0.)\\\"\";\n}";
}
2012-12-14 11:20:45.173 CloudGPSTracker[9303:907] -[_PFUbiquityRecordImportOperation processObjects:withState:andImportContext:outError:](845): CoreData: Ubiquity: <_PFUbiquityRecordImportOperation: 0x20979220>:
localPeerID: mobile.00857B2E-B835-504A-8FD6-C666D92AD889
logScore: <PFUbiquityKnowledgeVector: 0x2096eb70> (mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14:1)
transactionLog: <PFUbiquityTransactionLog: 0x20893c90>
transactionLogLocation: <PFUbiquityLocation: 0x1f190a20>: /private/var/mobile/Library/Mobile Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/8F59A23C-CEB2-4B0B-A663-1616726A5F77.1.cdt
transactionNumber: 2934
Unable to find relationship destination object: <PFUbiquityGlobalObjectID: 0x1dd44d50> (3F7NTNZ29A.com.3bsoft.CloudGPSTracker:POINT:p2718:mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14)
2012-12-14 11:20:45.174 CloudGPSTracker[9303:907] -[_PFUbiquityRecordImportOperation processObjects:withState:andImportContext:outError:](845): CoreData: Ubiquity: <_PFUbiquityRecordImportOperation: 0x20979220>:
localPeerID: mobile.00857B2E-B835-504A-8FD6-C666D92AD889
logScore: <PFUbiquityKnowledgeVector: 0x2096eb70> (mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14:1)
transactionLog: <PFUbiquityTransactionLog: 0x20893c90>
transactionLogLocation: <PFUbiquityLocation: 0x1f190a20>: /private/var/mobile/Library/Mobile Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/8F59A23C-CEB2-4B0B-A663-1616726A5F77.1.cdt
transactionNumber: 2934
Unable to find relationship destination object: <PFUbiquityGlobalObjectID: 0x1dd44be0> (3F7NTNZ29A.com.3bsoft.CloudGPSTracker:POINT:p2771:mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14)
2012-12-14 11:20:45.176 CloudGPSTracker[9303:907] -[_PFUbiquityRecordImportOperation processObjects:withState:andImportContext:outError:](845): CoreData: Ubiquity: <_PFUbiquityRecordImportOperation: 0x20979220>:
localPeerID: mobile.00857B2E-B835-504A-8FD6-C666D92AD889
logScore: <PFUbiquityKnowledgeVector: 0x2096eb70> (mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14:1)
transactionLog: <PFUbiquityTransactionLog: 0x20893c90>
transactionLogLocation: <PFUbiquityLocation: 0x1f190a20>: /private/var/mobile/Library/Mobile Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/8F59A23C-CEB2-4B0B-A663-1616726A5F77.1.cdt
transactionNumber: 2934
Unable to find relationship destination object: <PFUbiquityGlobalObjectID: 0x1dd44a60> (3F7NTNZ29A.com.3bsoft.CloudGPSTracker:POINT:p2695:mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14)
2012-12-14 11:20:45.177 CloudGPSTracker[9303:907] -[_PFUbiquityRecordImportOperation processObjects:withState:andImportContext:outError:](845): CoreData: Ubiquity: <_PFUbiquityRecordImportOperation: 0x20979220>:
localPeerID: mobile.00857B2E-B835-504A-8FD6-C666D92AD889
logScore: <PFUbiquityKnowledgeVector: 0x2096eb70> (mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14:1)
transactionLog: <PFUbiquityTransactionLog: 0x20893c90>
transactionLogLocation: <PFUbiquityLocation: 0x1f190a20>: /private/var/mobile/Library/Mobile Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/8F59A23C-CEB2-4B0B-A663-1616726A5F77.1.cdt
transactionNumber: 2934
Unable to find relationship destination object: <PFUbiquityGlobalObjectID: 0x1dd44960> (3F7NTNZ29A.com.3bsoft.CloudGPSTracker:POINT:p2620:mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14)
2012-12-14 11:20:45.179 CloudGPSTracker[9303:907] -[_PFUbiquityRecordImportOperation processObjects:withState:andImportContext:outError:](845): CoreData: Ubiquity: <_PFUbiquityRecordImportOperation: 0x20979220>:
localPeerID: mobile.00857B2E-B835-504A-8FD6-C666D92AD889
logScore: <PFUbiquityKnowledgeVector: 0x2096eb70> (mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14:1)
transactionLog: <PFUbiquityTransactionLog: 0x20893c90>
transactionLogLocation: <PFUbiquityLocation: 0x1f190a20>: /private/var/mobile/Library/Mobile Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/8F59A23C-CEB2-4B0B-A663-1616726A5F77.1.cdt
transactionNumber: 2934
Unable to find relationship destination object: <PFUbiquityGlobalObjectID: 0x1dd447e0> (3F7NTNZ29A.com.3bsoft.CloudGPSTracker:POINT:p2614:mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14)
2012-12-14 11:20:45.180 CloudGPSTracker[9303:907] -[_PFUbiquityRecordImportOperation processObjects:withState:andImportContext:outError:](845): CoreData: Ubiquity: <_PFUbiquityRecordImportOperation: 0x20979220>:
localPeerID: mobile.00857B2E-B835-504A-8FD6-C666D92AD889
logScore: <PFUbiquityKnowledgeVector: 0x2096eb70> (mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14:1)
transactionLog: <PFUbiquityTransactionLog: 0x20893c90>
transactionLogLocation: <PFUbiquityLocation: 0x1f190a20>: /private/var/mobile/Library/Mobile Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/8F59A23C-CEB2-4B0B-A663-1616726A5F77.1.cdt
transactionNumber: 2934
Unable to find relationship destination object: <PFUbiquityGlobalObjectID: 0x1dd44680> (3F7NTNZ29A.com.3bsoft.CloudGPSTracker:POINT:p2715:mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14)
2012-12-14 11:20:45.181 CloudGPSTracker[9303:907] -[_PFUbiquityRecordImportOperation processObjects:withState:andImportContext:outError:](845): CoreData: Ubiquity: <_PFUbiquityRecordImportOperation: 0x20979220>:
localPeerID: mobile.00857B2E-B835-504A-8FD6-C666D92AD889
logScore: <PFUbiquityKnowledgeVector: 0x2096eb70> (mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14:1)
transactionLog: <PFUbiquityTransactionLog: 0x20893c90>
transactionLogLocation: <PFUbiquityLocation: 0x1f190a20>: /private/var/mobile/Library/Mobile Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/8F59A23C-CEB2-4B0B-A663-1616726A5F77.1.cdt
transactionNumber: 2934
Unable to find relationship destination object: <PFUbiquityGlobalObjectID: 0x1dd44500> (3F7NTNZ29A.com.3bsoft.CloudGPSTracker:POINT:p2688:mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14)
2012-12-14 11:20:45.183 CloudGPSTracker[9303:907] -[_PFUbiquityRecordImportOperation processObjects:withState:andImportContext:outError:](845): CoreData: Ubiquity: <_PFUbiquityRecordImportOperation: 0x20979220>:
localPeerID: mobile.00857B2E-B835-504A-8FD6-C666D92AD889
logScore: <PFUbiquityKnowledgeVector: 0x2096eb70> (mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14:1)
transactionLog: <PFUbiquityTransactionLog: 0x20893c90>
transactionLogLocation: <PFUbiquityLocation: 0x1f190a20>: /private/var/mobile/Library/Mobile Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/8F59A23C-CEB2-4B0B-A663-1616726A5F77.1.cdt
transactionNumber: 2934
Unable to find relationship destination object: <PFUbiquityGlobalObjectID: 0x1dd443c0> (3F7NTNZ29A.com.3bsoft.CloudGPSTracker:POINT:p2617:mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14)
2012-12-14 11:20:45.185 CloudGPSTracker[9303:907] -[_PFUbiquityRecordImportOperation processObjects:withState:andImportContext:outError:](845): CoreData: Ubiquity: <_PFUbiquityRecordImportOperation: 0x20979220>:
localPeerID: mobile.00857B2E-B835-504A-8FD6-C666D92AD889
logScore: <PFUbiquityKnowledgeVector: 0x2096eb70> (mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14:1)
transactionLog: <PFUbiquityTransactionLog: 0x20893c90>
transactionLogLocation: <PFUbiquityLocation: 0x1f190a20>: /private/var/mobile/Library/Mobile Documents/3F7NTNZ29A~com~3bsoft~CloudGPSTracker/Logs/mobile.B9FC1B68-3090-52E4-905D-BBDC71020D14/3F7NTNZ29A.com.3bsoft.CloudGPSTracker/ViY1iUzbKktwTFRopnBhAMma63MPeM1zqnkmJnh39V4=/8F59A23C-CEB2-4B0B-A663-1616726A5F77.1.cdt
transactionNumber: 2934
Related
I'm getting a Core data error when my app is in open state with lock screen mode.
My code:
func savePesistenceContext() {
//try! self.dataStack.mainContext.save()
do {
try self.dataStack.mainContext.save()
} catch {
let nserror = error as NSError
debugPrint("savePesistenceContext", nserror)
}
}
Error:
CoreData: error: SQLCore dispatchRequest: exception handling request: <NSSQLSaveChangesRequestContext: 0x280697540> , I/O error for database at /var/mobile/Containers/Data/Application/6EBC7CD6-9299-431A-A24A-1F6FA86792BD/Documents/Coral.sqlite. SQLite error code:778, 'disk I/O error' with userInfo of {
NSFilePath = "/var/mobile/Containers/Data/Application/6EBC7CD6-9299-431A-A24A-1F6FA86792BD/Documents/Coral.sqlite";
NSSQLiteErrorDomain = 778;
}
CoreData: error: (778) I/O error for database at /var/mobile/Containers/Data/Application/6EBC7CD6-9299-431A-A24A-1F6FA86792BD/Documents/Coral.sqlite. SQLite error code:778, 'disk I/O error'
Error Domain=NSCocoaErrorDomain Code=256 "The file “Coral.sqlite” couldn’t be opened." UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/9AB16F39-8933-4A75-AB6A-59CBBCC42A4F/Documents/Coral.sqlite, NSSQLiteErrorDomain=23}
When will this error come and how can we resolve this error?
So I'm trying to get FB and Twitter to respond from tappin on a table cell:
I set up the plist:
Then I created this function:
func schemeAvailable(scheme: String) -> Bool {
if let url = URL(string: scheme) {
return UIApplication.shared.canOpenURL(url)
}
return false
}
Then I tried to use it:
print(UIApplication.shared.canOpenURL(URL(string: "fb:")!))
if(schemeAvailable(scheme: "fb://")){
print("facebook agailable")
}
if(schemeAvailable(scheme: "twitter://")){
print("twitter agailable")
}
and get back a response of:
2016-10-03 17:04:09.096 JSONTesting[73245:2492124] -canOpenURL: failed for URL: "fb:" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
false
2016-10-03 17:04:09.097 JSONTesting[73245:2492124] -canOpenURL: failed for URL: "fb://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
2016-10-03 17:04:09.098 JSONTesting[73245:2492124] -canOpenURL: failed for URL: "twitter://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
I've tried with and without the // in the string but to no avail...get the same error back every time.
Thanks
I'm trying to share an object which I've create at the objects tab at the open graph section.
FBSDKGameRequestContent *gameRequestContent = [[FBSDKGameRequestContent alloc] init];
gameRequestContent.message = message;
gameRequestContent.title = title;
gameRequestContent.recipients = #[#"400098323516165"];
gameRequestContent.actionType = actionType;
gameRequestContent.objectID = #"123456"; //I also tried by the name : bingoclimb:life
FBSDKGameRequestDialog* dialog = [[FBSDKGameRequestDialog alloc] init];
dialog.frictionlessRequestsEnabled = YES;
dialog.content = gameRequestContent;
dialog.delegate = self;
[dialog show];
My objects section looks like this:
If I try with this code (with the id) I get the following error:
Error Domain=com.facebook.sdk.share Code=2 "The operation couldn’t be
completed. (com.facebook.sdk.share error 2.)" UserInfo=0x170c6cdc0
{com.facebook.sdk:FBSDKErrorDeveloperMessageKey=Sorry, this feature
isn't available right now: An error occurred while processing this
request. Please try again later.}
If I try with the objectId as name I get the following error:
Error Domain=com.facebook.sdk.share Code=100 "The operation couldn’t
be completed. (com.facebook.sdk.share error 100.)"
UserInfo=0x17066eb40
{com.facebook.sdk:FBSDKErrorDeveloperMessageKey=Invalid fbid.}
Note: the user has publish_actions permission.
Also, when I copy the creation code from the "Sample code for object" and run it I get the following error:
Error Domain=com.facebook.sdk.share Code=201 "The operation couldn’t
be completed. (com.facebook.sdk.share error 201.)"
UserInfo=0x17046a240
{com.facebook.sdk:FBSDKErrorDeveloperMessageKey=Error creating Open
Graph object: Error Domain=com.facebook.sdk.core Code=8 "The operation
couldn’t be completed. (com.facebook.sdk.core error 8.)"
UserInfo=0x1701accc0
{NSRecoveryAttempter=<_FBSDKTemporaryErrorRecoveryAttempter:
0x170016150>, com.facebook.sdk:FBSDKGraphRequestErrorGraphErrorCode=1,
NSLocalizedRecoverySuggestion=The server is temporarily busy, please
try again., com.facebook.sdk:FBSDKErrorDeveloperMessageKey=An unknown
error has occurred.,
com.facebook.sdk:FBSDKGraphRequestErrorHTTPStatusCodeKey=500,
com.facebook.sdk:FBSDKGraphRequestErrorCategoryKey=1,
NSLocalizedRecoveryOptions=(
OK ), com.facebook.sdk:FBSDKGraphRequestErrorParsedJSONResponseKey={
body = {
error = {
code = 1;
"fbtrace_id" = "BGhIEBfOI+b";
message = "An unknown error has occurred.";
type = OAuthException;
};
};
code = 500; }}, NSUnderlyingError=0x17005abb0 "The operation couldn’t be completed. (com.facebook.sdk.core error 8.)"}
Image is not uploading in a amazon s3 . I was using the old library all the upload was working fine but for ios 8 i use new sdk and create new conginito id
now i am facing errors. any help will be appreciated
My code is
AWSS3TransferManagerUploadRequest *request = [[AWSS3TransferManagerUploadRequest alloc] init];
request.bucket = #"my bucket name";
request.key = #"my cognitio id";
request.body =[NSURL fileURLWithPath:path];
request.contentType = #"image/png";
[[transferManager upload:request] continueWithExecutor:[BFExecutor mainThreadExecutor]
withBlock:^id(BFTask *task) {
NSLog(#"ckmdkcd dvdsv");
if (task.error) {
if ([task.error.domain isEqualToString:AWSS3TransferManagerErrorDomain]) {
switch (task.error.code) {
case AWSS3TransferManagerErrorCancelled:
case AWSS3TransferManagerErrorPaused:
break;
default:
NSLog(#"Error: %#", task.error);
break;
}
} else {
// Unknown error.
NSLog(#"Error: %#", task.error);
}
}
if (task.result) {
AWSS3TransferManagerUploadOutput *uploadOutput = task.result;
// The file uploaded successfully.
NSLog(#"result = %#",task.result);
}
return nil;
}];
I got the following response
AWSiOSSDKv2 [Error] AWSIdentityProvider.m line:185 | __51-[AWSAbstractCognitoIdentityProvider getIdentityId]_block_invoke169 | GetId failed. Error is [Error Domain=NSURLErrorDomain Code=-1003 "The operation couldn’t be completed. (NSURLErrorDomain error -1003.)" UserInfo=0x7f9b987aabf0 {NSErrorFailingURLStringKey=https://cognito-identity.(null).amazonaws.com/, NSErrorFailingURLKey=https://cognito-identity.(null).amazonaws.com/, _kCFStreamErrorDomainKey=12, _kCFStreamErrorCodeKey=8, NSUnderlyingError=0x7f9b9a839480 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error -1003.)"}]
2015-04-14 08:13:16.326 newtest[6611:172200] AWSiOSSDKv2 [Error] AWSCredentialsProvider.m line:534 | __40-[AWSCognitoCredentialsProvider refresh]_block_invoke350 | Unable to refresh. Error is [Error Domain=NSURLErrorDomain Code=-1003 "The operation couldn’t be completed. (NSURLErrorDomain error -1003.)" UserInfo=0x7f9b987aabf0 {NSErrorFailingURLStringKey=https://cognito-identity.(null).amazonaws.com/, NSErrorFailingURLKey=https://cognito-identity.(null).amazonaws.com/, _kCFStreamErrorDomainKey=12, _kCFStreamErrorCodeKey=8, NSUnderlyingError=0x7f9b9a839480 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error -1003.)"}]
2015-04-14 08:13:16.328 newtest[6611:172071] ckmdkcd dvdsv
2015-04-14 08:13:16.328 newtest[6611:172071] Error: Error Domain=NSURLErrorDomain Code=-1003 "The operation couldn’t be completed. (NSURLErrorDomain error -1003.)" UserInfo=0x7f9b987aabf0 {NSErrorFailingURLStringKey=https://cognito-identity.(null).amazonaws.com/, NSErrorFailingURLKey=https://cognito-identity.(null).amazonaws.com/, _kCFStreamErrorDomainKey=12, _kCFStreamErrorCodeKey=8, NSUnderlyingError=0x7f9b9a839480 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error -1003.)"}
I am also setting cognitio id in app delegate.
Based on the fact that you seeing https://cognito-identity.(null).amazonaws.com/ in the error, it would lead me to believe you are not correctly setting the region when creating the AWSCognitoCredentialsProvider. Please double check that you are not setting this to AWSRegionUnknown.
Update 2015-04-17: Here is the list of Region constants. You should set this to the region where your identity pool exists. Currently Amazon Cognito is only available in AWSRegionUSEast1 or AWSRegionEUWest1.
Note, the region of your identity pool has nothing to do the region of other AWS services you may use in your application. You can use an identity pool in AWSRegionUSEast1 to access resources in AWSRegionSAEast1, for instance.
I try to do my NSURL error-handling and have a little problem.
When i'm getting an error i want to handle it different for different error-codes.
In my case i want to check if the error that i'm getting is the one with errorcode 1005.
This is what I get when I print as follows:
NSLog(#"%#",error);
Error Domain=NSURLErrorDomain Code=-1005 "The operation couldn’t be completed. (NSURLErrorDomain error -1005.)" UserInfo=0x1700ff000 {NSErrorFailingURLStringKey=MyURL, NSErrorFailingURLKey=MyURL, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-4, NSURLSessionDownloadTaskResumeData=<CFData 0x17025a580 [0x1936b2c80]>{length = 3640, capacity = 4096, bytes = 0x3c3f786d6c2076657273696f6e3d2231 ... 2f706c6973743e0a}, NSUnderlyingError=0x17025cf80 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error -1005.)"}
and this is what I want to extract from it:
-1005
I already searched for it and found a solution which doesn't work. (I get EXC_BAD_ACCESS)
NSLog(#"%#", [error code]);
Afterwards I want to compare it similar to:
if(error.code == -1005){
//handle error
}
You can't use:
NSLog(#"%#", [error code]);
Because code is NSInteger. Use:
NSLog(#"%d", [error code]);
Refer: NSError Class Reference for more details