UPDATE - Workaround
You can actually disable Metal API Validation in your build scheme to temporally bypass the internal assertion for debugging other codes, and wait until Apple release their fixes.
There's still some other internal crashes and assertion cannot be bypassed with this workaround, but these don't happens every time. Finally I was able to get an USDZ model.
Post
Replies
Boosts
Views
Activity
There was a typo in the code of my original post, to be clear, the assertion failure happens after calling startDetecting instead of session.start(imagesDirectory:configuration:)
if case .initializing = session.state {
Button {
session.start(imagesDirectory: getDocumentsDir().appendingPathComponent("Images/"), configuration: configuration) // everything's alright after this
} label: {
Text("Prepare")
}
} else if case .ready = session.state {
Button {
session.() // 💥
} label: {
Text("Continue")
}
}