-
CloudKit doesn’t support unique constraints on schema fields. So running my setup code multiple times led to duplicate records in CloudKit (same data with different UUIDs). So I’m going to try using
CKQueryto make sure a record doesn't already exist before creating it.CloudKit
Saturday July 22, 2023 -
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 -
I thought I’d have to define a
CKRecord.RecordTypealong with a schema of field names and types before writing any data into CloudKit. But this is not necessary because a newRecordTypeis automatically created and modeled after the first instance of that particular type to be saved to the database.CloudKit
Saturday July 22, 2023 -
First checkpoint. I have a shell of a Mac app with a CloudKit entitlement. It has a single button that creates a
CKRecordobject and saves it to the container’s public database. And in the CloudKit console, I see the new record type with schema defined along with the sample data!CloudKit
Saturday July 22, 2023 -
I’m breaking ground on a companion Mac app today. It’s main job is to ingest JSON records, transform them to match a CloudKit schema and write them to a public CloudKit database.
And my neighbors are jack hammering their patio, which is bringing some good build something ambiance.CloudKit
Saturday July 22, 2023 -
I’m building a reader app for images. The content is all similar (in the same subject domain) – but coming from multiple sources, each with it’s own schema. Some is available via API, but some is only via data dump.
Phase 1 is defining a common schema, fetching all the data, normalizing it into the shared schema, and then writing it all into a public CloudKit database.T-minus 59 days...
CloudKit
Friday July 21, 2023 -
Friday July 21, 2023
I’ve been a Mac user most of my life. But I've never developed for Apple platforms until now, so I’ve never written any Objective-C. I started learning Swift and SwiftUI last fall. Prior to that, my work revolved around AWS and node.js, so I’ve had to rewire my brain quite a bit.
-
Thursday July 20, 2023
I’m designing and building my first Apple app. My goal is to ship alongside iOS 17 — which given past as prologue, is most likely September 18th.
So I have 60 days to make an app.
-
Thursday July 20, 2023
📍 MOHAI (Museum of History and Industry) — Seattle, WA
-
Wednesday July 19, 2023
I need to learn so many things.
-
Wednesday July 19, 2023
There are always more things.
-
Wednesday July 19, 2023
There are so many things.
-
Wednesday July 19, 2023
I want to make so many things.
-
Thursday July 13, 2023
some pods
-
Tuesday July 11, 2023
Are you reading this or are you hearing this? Is this a transcript of a podcast or a spoken blog post? What is this place?
This is words and sound about making apps with words and sound.