I am trying to get a Flutter app to build using match and fastlane.
Match seems to work as All required keys, certificates and provisioning profiles are installed
When running build_ios_app() I get the following output:
[08:13:05]: ▸ The following build commands failed:
[08:13:05]: ▸ Archiving workspace Runner with scheme Runner
[08:13:05]: ▸ (1 failure)
[...]
** ARCHIVE FAILED **
The following build commands failed:
Archiving workspace Runner with scheme Runner
(1 failure)
[08:13:05]: Exit status: 65
+-----------------------------------------+
| Build environment |
+---------------+-------------------------+
| xcode_path | /Applications/Xcode.app |
| gym_version | 2.227.1 |
| export_method | app-store |
| sdk | iPhoneOS18.4.sdk |
+---------------+-------------------------+
The command that failed is the following:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace ios/Runner.xcworkspace -scheme Runner -configuration Release -destination generic/platform=iOS -archivePath "/Users/builder/Library/Developer/Xcode/Archives/2025-04-24/Runner 2025-04-24 06.01.57.xcarchive" archive
After trying now for several days random suggestions from a variety of issues on GitHub with none of them working I am wondering if there is a structured way to drill down and debug the issue.
When inspecting the log or running the command manually there are a lot of note:
and warning
log lines but no error / failure or any other telling message.
Not having used xcodebuild in the past I am wondering if there is any option to increase the verbosity (other than -verbose
- which did not help) or somehow dissect this problem to find the root cause (and if by any chance someone knows the solution this would be even more awesome 😀).