You're asking two distinct frameworks (ARSession and AVFoundation) to access the camera at the same time. Look at using the ARSession.currentFrame.capturedImage property for the RGB data.
I don't know anything about the specific messages you're seeing, but… Instead of storing "super long strings" in a field of type String, store them in a field of type Binary Data. Also, consider the "Allows External Storage" option.
I recommend enabling all the debugging support for Core Data in Xcode. See here for more… https://useyourloaf.com/blog/debugging-core-data/
most often, a crash during save means you created an NSManagedObject in one context, and tried to save in another context. Also, you should be doing a save within the thread owned by the context, like this
context.perform {
// load objects
// make changes
try context.save()
}
You're asking two distinct frameworks (ARSession and AVFoundation) to access the camera at the same time. Look at using the ARSession.currentFrame.capturedImage property for the RGB data.
I don't know anything about the specific messages you're seeing, but… Instead of storing "super long strings" in a field of type String, store them in a field of type Binary Data. Also, consider the "Allows External Storage" option.
I recommend enabling all the debugging support for Core Data in Xcode. See here for more… https://useyourloaf.com/blog/debugging-core-data/
most often, a crash during save means you created an NSManagedObject in one context, and tried to save in another context. Also, you should be doing a save within the thread owned by the context, like this
context.perform {
// load objects
// make changes
try context.save()
}