Files
iOS/fastlane
Bruno Pantaleão Gonçalves 59795c549f Fix macOS distribute CI on Xcode 26.4.1 (fastlane bump + notarize parsing) (#4784)
## Summary
<!-- Provide a brief summary of the changes you have made and most
importantly what they aim to achieve -->
The macOS `distribute` job started failing at the export/notarize stage.
It was **not** caused by any app code — the GitHub `macos-26` runner's
`Xcode_26.4.app` now resolves to **Xcode 26.4.1**, whose `xcodebuild
-exportArchive` rejects the legacy `developer-id` export method value:

```
error: exportArchive exportOptionsPlist error for key "method"
expected one {app-store-connect, release-testing, enterprise, debugging, validation}
but found developer-id
```

This PR gets the mac lane green again on Xcode 26.4.1:

- **Bump fastlane `2.222.0` → `2.236.1`** — its newer `gym` / Mac
Catalyst platform handling fixes the `developer-id` export rejection.
This also requires bumping `mutex_m` (`~> 0.3`) and `BUNDLED WITH`
(`2.6.9`, since fastlane now needs bundler ≥ 2.4.0; CI installs bundler
from that lockfile line).
- **Drop `verbose: true` from the macOS `notarize` call** — with
fastlane 2.236.1, `notarize` runs `notarytool submit --output-format
json --wait` and JSON-parses the captured output. `verbose: true`
appends `--verbose`, which interleaves `[timestamp] Debug …` log lines
into that output, so `JSON.parse` failed (`invalid number:
'08:48:05.798Z]'`) **even though notarization returned `Accepted`**.
notarytool already suppresses progress under `--output-format json`, so
the flag is unnecessary and the output stays clean JSON.

Verified end-to-end on a manual `Distribute` run of this branch: both
the iOS and macOS legs complete (archive → export → notarize/upload)
successfully.

## Screenshots
<!-- If this is a user-facing change not in the frontend, please include
screenshots in light and dark mode. -->
N/A — CI / build tooling only, no app or UI changes.

## Link to pull request in Documentation repository
<!-- Pull requests that add, change or remove functionality must have a
corresponding pull request in the Companion App Documentation repository
(https://github.com/home-assistant/companion.home-assistant). Please add
the number of this pull request after the "#" -->
Documentation: home-assistant/companion.home-assistant#

## Any other notes
<!-- If there is any other information of note, like if this Pull
Request is part of a bigger change, please include it here. -->
- Unrelated to #4780 (the merge the failures happened to start after);
that PR only touched `HAAPI.swift` / `MagicItem.swift`.
- Heads-up for a future change: the build log warns that fastlane is
nearing end-of-support for Ruby 3.1.2 (will require ≥ 3.3.0). Not
addressed here.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 09:56:46 +00:00
..
2019-11-16 03:38:09 +01:00
2020-07-27 20:22:00 -07:00
2025-09-29 20:38:29 -03:00
2017-01-09 21:40:59 -08:00
2022-10-20 13:19:50 -07:00
2025-09-29 20:38:29 -03:00
2025-09-29 20:38:29 -03:00

fastlane documentation

Installation

Make sure you have the latest version of the Xcode command line tools installed:

xcode-select --install

For fastlane installation instructions, see Installing fastlane

Available Actions

setup_ha_ci

[bundle exec] fastlane setup_ha_ci

Setup Continous Integration

lint

[bundle exec] fastlane lint

autocorrect

[bundle exec] fastlane autocorrect

download_provisioning_profiles

[bundle exec] fastlane download_provisioning_profiles

import_provisioning_profiles

[bundle exec] fastlane import_provisioning_profiles

icons

[bundle exec] fastlane icons

Generate proper icons for all build trains

update_swiftgen_config

[bundle exec] fastlane update_swiftgen_config

Update switftgen input/output files

update_strings

[bundle exec] fastlane update_strings

Download latest localization files from Lokalize

push_strings

[bundle exec] fastlane push_strings

Upload localized strings to Lokalise

unused_strings

[bundle exec] fastlane unused_strings

Find unused localized strings

update_lokalise_metadata

[bundle exec] fastlane update_lokalise_metadata

Upload App Store Connect metadata to Lokalise

update_asc_metadata

[bundle exec] fastlane update_asc_metadata

Download App Store Connect metadata from Lokalise and upload to App Store Connect Connect

set_version

[bundle exec] fastlane set_version

Set version number

update_notification_test_cases

[bundle exec] fastlane update_notification_test_cases

Update the test cases from the fcm repo

update_dsyms

[bundle exec] fastlane update_dsyms

test

[bundle exec] fastlane test

Run tests


iOS

ios build

[bundle exec] fastlane ios build

ios size

[bundle exec] fastlane ios size

Mac

mac build

[bundle exec] fastlane mac build

This README.md is auto-generated and will be re-generated every time fastlane is run.

More information about fastlane can be found on fastlane.tools.

The documentation of fastlane can be found on docs.fastlane.tools.