Post

Replies

Boosts

Views

Activity

Reply to Assertion failed after calling session.startDetecting() - Xcode 15.0 beta1 (15A5160n)
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") } }
Jun ’23
Reply to Assertion failed after calling session.startDetecting() - Xcode 15.0 beta1 (15A5160n)
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.
Jun ’23