Blog

  • Publishing MAUI apps for iOS in TeamCity

    I want to publish iOS apps automatically on pushing to master but I couldn’t find another guide on how to do so. So, I’ve put one together.

    First, create a new .NET action with the command set to Publish. Under configuration, set Release and Framework to net9.0-ios (or whatever appropriate version for your use case).

    Next, we want to push the build to Apple using xcrun. Add a new command line step:

    xcrun altool --validate-app -f mobile/bin/Release/net9.0-ios/ios-arm64/publish/ParaMeter.ipa -t ios -u <email> -p <app-password>

    In my case, my project is stored under “mobile” and uses the default output folder; this may need to be adjusted if you specify a different output path for builds.

    Now we want to actually upload the app:

    xcrun altool --upload-app -f mobile/bin/Release/net9.0-ios/ios-arm64/publish/ParaMeter.ipa -t ios -u <username> -p <password>

    And that should be it!