I didn’t see a CloudKit API in Swift to reset the development schema. So I made a SwiftUI button that runs a shell script of xcrun cktool reset-schema
. But I couldn’t get it to work.
Error executing command: Error Domain=NSCocoaErrorDomain Code=4 “The file “🧨.sh” doesn’t exist.”
It does exist. But that’s ok. For now, I will click “Reset Environment…” in the CloudKit console and move on with my day.
CloudKit
Saturday July 22, 2023