Writing and things

TIL 2025.4.9

Today I learned

  • That sometimes, you can spend a lot of time spinning your debugging wheels only to find that you should delete your app from the Simulator since something got frelled up on the ModelContext or something.
    • I just kept getting a crash when I was trying to run my app. It was telling me I was passing a nil value to a non-optional thing. So I went back like three fixes and was still having issues. Took a swing to delete the app on the Simulator. Boop. Works, loads, no crash.
  • Error reporting on Xcode is kind of a stupid beast.
  • My Obsidian publishing tool is failing. Just returns a Status 500 when I try to post. So that’s annoying.

Other thoughts

  • I’m using SwiftData for this very simple app, and after the hardish part of set-up, I feel like I’m more up and running on this.
  • I got side-tracked on using Comparable protocol for an “`enum“` that didn’t have associated types or values. I had to back up and rethink what I was trying to accomplish. I might have overworked what I’m doing, but ‍‍♂️. It works!
  • From here, I want to add a little more complexity to my Model (this will take some research), and make the UI a little less clunky looking.