A generic step-by-step guide to build, export, and publish a macOS Debug build on GitHub.
Run the following command in Terminal from your Xcode project root:
xcodebuild clean archive -scheme YourAppScheme -configuration Debug -archivePath ./build/YourAppName.xcarchiveThis creates a .xcarchive in the ./build folder.
Create a file named ExportOptions.plist with the following content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>debugging</string>
<key>signingStyle</key>
<string>manual</string>
<key>compileBitcode</key>
<false/>
<key>destination</key>
<string>export</string>
<key>stripSwiftSymbols</key>
<false/>
<key>generateAppStoreInformation</key>
<false/>
<key>manageAppVersionAndBuildNumber</key>
<false/>
<key>uploadSymbols</key>
<false/>
<key>uploadBitcode</key>
<false/>
</dict>
</plist>This configuration exports an unsigned Debug build for local testing or GitHub release.
No teamID is required.
Run this command to export the .app file:
xcodebuild -exportArchive -archivePath ./build/YourAppName.xcarchive -exportOptionsPlist ./ExportOptions.plist -exportPath ./buildAfter running this, the exported .app will be available in the ./build folder.
Zip the .app so it's ready to upload to GitHub:
cd build
zip -r YourAppName_Debug.zip YourAppName.appTag the commit and push the version tag to GitHub:
git checkout main
git pull origin main
git tag -a v1.0.0-debug -m "Debug v1.0.0"
git push origin v1.0.0-debugSteps to publish the Debug build on GitHub:
- Go to your repository’s Releases tab
- Click “Draft a new release”
- Choose your pushed tag (e.g.,
v1.0.0-debug) - Add release notes describing the Debug build
- Upload
YourAppName_Debug.zipas an asset - Click Publish Release
Your GitHub release page will now include a downloadable .zip of your macOS Debug app.
Users can unzip it and run the app directly (macOS may prompt with "unidentified developer" on first launch).