To deploy an ARM64 app on macOS using Delphi, you'll need to address the issue with the App Store certificate. Here's a step-by-step guide to help you change the Release configuration and set up the necessary provisioning:
-
Prepare the macOS Development Environment:
- Install macOS on an Apple Silicon Mac (M1 or M2) or use a virtual machine with macOS ARM64.
- Install Xcode and the Command Line Tools.
- Install Delphi for ARM64.
-
Create an Apple Developer Account:
- Sign up for an Apple Developer account at https://developer.apple.com/ (annual fee required).
- Enroll your device for development.
-
Create a Certificate Signing Request (CSR):
- Open Keychain Access on your Mac.
- Generate a new CSR using the "Certificate Assistant" menu.
- Fill out the form, selecting "Apple Developer" as the certificate authority.
- Save the CSR to your computer.
-
Create an App ID:
- Log in to the Apple Developer portal.
- Navigate to "Certificates, Identifiers & Profiles" > "Identifiers" > "App IDs".
- Click "+ Create App ID" and fill out the form.
- Assign the App ID to your app in Delphi.
-
Create a Distribution Certificate:
- Go to "Certificates" > "Development" > "+ Create Team Provisioning Profile".
- Select "Automatic" for the profile type.
- Assign the profile to your app in Delphi.
-
Create a Provisioning Profile:
- Go to "Certificates" > "Identifiers" > "[Your App ID]" > "View Details".
- Click "+ Create Profile" and fill out the form.
- Select the distribution certificate, App ID, and devices.
- Save the profile to your computer.
-
Configure Delphi for ARM64 Deployment:
- In the Delphi IDE, open the project options (Project > Options).
- Go to the "Deployment" > "Provisioning" page.
- Load the provisioning profile and certificate signing request.
- Set the App ID and bundle identifier.
- Build and run your app.
-
Deploy the App:
- Build your app for release.
- Copy the built app to your target Mac.
- Run the app on the Mac.
References:
- Books:
- Delphi for macOS: Up and Running by David I.
- Delphi Programming: A Beginner's Guide by Nick Hodges
- Articles:
- Online Resources: