Cloud Cloud

Iva Horn

Notes from a software engineer for iPhone, iPad and Mac apps.

Memoji

File Provider Domain Connection to File Provider Domain

March 23, 2024 • #File Provider #IOS #XPC

We need file provider extension processes to talk to each other. What first appeared to be prevented by sandbox on iOS works with a different API.

Logging and Signposting Taxonomy in Concurrency

March 12, 2024 • #Concurrency #Logging #Macro #Note #Swift

Having a file provider extension with multiple domains and processes and even more enumerators logging in parallel can become a mess. Leveraging the subsystem and category fields to the rescue.

fileproviderctl Changes in macOS 14.4

March 11, 2024 • #Apple #File Provider #MacOS

Apparently, the feature set of fileproviderctl has been narrowed down to the dismay of developers, testers and even administrators and it appears to be intentional.

MD5 Performance Test App

March 6, 2024 • #App #CryptoKit #IOS #MD5 #Performance #Swift

Out of necessity I created a minimalistic SwiftUI app which performs MD5 hashing to get a rough feeling how efficient it is on Apple devices.

Result Builders To Mock File System

February 27, 2024 • #CoreData #Result Builders #Swift

I need to maintain a virtual file system in a CoreData database. Setting up test scenarios is tiresome, so I made use of result builders and its nice.

Convenient NSPredicate Initializers

February 22, 2024 • #CoreData #Note #Swift

There is a better way than to repeat the same or similar NSPredicate all the time and it is very nice to read.

Execution Order of Multiple Defer Blocks

February 16, 2024 • #Swift

I rarely need to use defer blocks and mostly it is for ending signpost intervals. I checked the possible situation of having multiple and in which order they are executed.

Signposting Macro

February 16, 2024 (updated March 11, 2024) • #Logging #Macro #Signposts #Swift

I was very excited about macros because they allow the reduction of boilerplate code like handling signposts. This macro reduces signposting in a method to a single word expression.

FileManager Throws Error on Getting File Provider Services

February 15, 2024 • #Feedback #File Provider #Swift

I found out how to successfully get replicated file provider services by URL on iOS which previously was impossible due to FileManager throwing a cryptic error.

@preconcurrency Imports

February 14, 2024 • #Concurrency #Swift

This is one of the things I do not find when I am looking for them but only later by accident. When Xcode is reports warning with strict concurrency checks enabled and they are about Apple’s own frameworks, they might be what you are looking for.