How-to: Create a zip file on iOS using Swift without 3rd party dependencies

2021-02-25 in , , ,

Getting the files your app stores on the device back out so you can look at them for debugging or similar is not as easy as it could be. There’s a number of filebrowser libraries out there, but it’s a bit overkill or occasional use and probrably not something you want to ship with your app either. Here’s how to create a zip file from any directory and move it off the device using the share sheet (UIActivityViewController).

Continue Reading →

Reference: Obscure UserDefaults That Affect AppKit Behavior

2020-10-16 in , ,

Setting these UserDefaults in your app’s domain will change AppKit behavior at runtime.

Continue Reading →

How-to: Disable automatically organizing files on disk after move in Xcode project

2020-09-28 in , ,

Starting with Xcode 9 or so, Xcode by default keeps the on-disk layout of a project in sync with what you see in the Project Navigator. So when you move a file from one group to another, it will be moved between the respective folders on disk as well.

Continue Reading →

About me

My name is Robin Kunde. I am a software engineering consultant currently specializing in iOS mobile development and the Swift compiler. I have worked on large e-commerce projects and mobile apps for major retailers in the past.

Twitter: @robinkunde

Github: robinkunde