Both define the same helpers and really only differ in some configuration options and the choice of final distribution method.įor the sake of brevity, the Fastfile above omits some less interesting helpers, as well as metadata upload, the latter of which we’ll cover separately in a subsequent section. If you look closely, you’ll see that the iOS and macOS sections are in fact very similar. The first line defines iOS as the default platform, which means it’ll be used when we omit the platform specifier. At the top we have some common helpers, which are then referenced in two platform-specific sections - one for iOS and one for the Mac. '3rd Party Mac Developer Installer: PSPDFKit GmbH (XXXXXXXXXX)'ĭesc 'Builds and uploads a new build to App Store Connect.' Pilot( skip_waiting_for_build_processing: false)ĭestination: 'platform=macOS,arch=x86_64,variant=Mac Catalyst', Unlock_keychain( path: 'login', password: ENV)ĭesc 'Builds and uploads a new build to App Store Connect for TestFlight testing.' Private_lane :update_for_manual_siging doĭesc 'Synchronizes certificates / profiles and optionally creates new ones.'ĭesc 'Synchronizes distribution certificates / profiles and updates project settings.' Require_relative( '././fastlane/actions/update_project_from_match.rb')ĭesc 'Updates project signing settings for manual code signing.' Match( api_key: api_key, readonly: readonly, verbose: true) "Read only? ('y' doesn't create new certificates/profiles. Key_content: ENV,ĭesc 'Synchronizes certificates / profiles using via the App Store Connect API. We’ll go over the interesting bits section by section: In this post, I’ll share some details about our setup, which you can use as inspiration for your own Mac Catalyst projects.īelow, you can see the key parts of our PDF Viewer Fastfile related to building and app distribution for both iOS and Mac Catalyst. It took quite a bit of effort, a bunch of fastlane updates, and some help from the fastlane team (thanks Josh) to finally put together a configuration that works reliably for a shared iOS and Mac Catalyst application. fastlane, our automation tool of choice for those tasks, simply didn’t support Mac Catalyst applications at that time. One of the compromises we had to make to get our products out this early was to accept that we’d have to manually build and distribute PDF Viewer for Mac instead of leveraging our CI. We added support for it to our SDK in 2019, just shortly after the technology was first made available, and we also used it to bring our PDF Viewer app to the Mac around the same time. At PSPDFKit, we consider ourselves early adopters of Mac Catalyst.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |