Steven Troughton-Smith’s ‘Marzipanify’

Steven Troughton-Smith:

At WWDC 2018 Apple gave us a ‘sneak peek’ at perhaps one of the most impactful developments on macOS since the transition to Mac OS X: UIKit apps running on the desktop. Today, I’m going to detail a special tool I built, called Marzipanify, to get started with UIKit on the Mac early, and start the initial bringup of your iOS app on macOS. […]

Marzipanify is a tool I created to statically convert an iOS app built for the iOS Simulator to macOS. It means you can continue working on and building your existing iOS app from its existing project, using the existing iOS SDK, and just run the tool against the Simulator build to create a functioning Mac app. As a bonus, Marzipanify will yell at you when you’re linking against a framework or library that doesn’t currently exist in the iOSMac runtime. It trivializes the process so you can focus on adapting your app rather than managing a build environment.

What a crazy project. It’s not meant for production obviously — much is surely going to change in whatever Apple winds up announcing at WWDC. But it’s an incredibly interesting examination of how Marzipan works today on MacOS 10.14. And it works — James Thompson used it to get the iOS version of PCalc running on the Mac.

Tuesday, 5 March 2019