Shared State During Parallel Testing in Xcode

Starting with Xcode 10, developers have been able to run their unit tests in parallel. This can greatly reduce the time it takes to run your tests. But what if your project depends on some shared state? What if you are writing to files? Will your test data clobber each other and lead to flaky tests?

read more...

iPhone Home Screen - May 2023

I recently saw a post from someone where they wrote a blog post mentioned how they like to read about home screens and look back at old screenshots of their own. I also enjoy stumbling upon old screenshots of my phone, whether it’s my home screen or apps that I’m working on. I thought intentionally recording it sounded like a good idea.

read more...

Hurdles Migrating to SPM

I was recently working on a project that was divided into modular frameworks by having a framework target for each module in the project. In order to take some of these modules and share it between projects, I thought I would break it out and make a Swift Package out of it. It didn’t go quite as smoothly as I would have hoped. Let’s take a look at some of the hurdles I ran into along the way.

I may continue adding to this document as I progress along the project.

read more...

Why Not to use Apple's Reserved HTTP Headers

When developing an iOS app, there is a good chance you’ll have to make network requests to communicate with a backend server. A common way to communicate authorization information to the server is by using the Authorization HTTP header. However, you may run into problems if you try using this and other headers directly.

read more...

Cleaning Up Old Xcode Files

Today I freed up over 200GB of space on my hard drive without losing anything of value. A large chunk of this was files created by and for Xcode. Finding and deleting them was pretty easy to do.

read more...