Skip to content

Fix App binary path for SwiftPM Add2App on macOS#185769

Merged
auto-submit[bot] merged 4 commits into
flutter:masterfrom
vashworth:swiftpm_add2app_app_binary
May 1, 2026
Merged

Fix App binary path for SwiftPM Add2App on macOS#185769
auto-submit[bot] merged 4 commits into
flutter:masterfrom
vashworth:swiftpm_add2app_app_binary

Conversation

@vashworth
Copy link
Copy Markdown
Contributor

@vashworth vashworth commented Apr 29, 2026

Apparently Xcode Run Script don't work with the binary symlink in macOS framework. So this PR updates it to use the direct path

Fixes #185837.

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

If this change needs to override an active code freeze, provide a comment explaining why. The code freeze workflow can be overridden by code reviewers. See pinned issues for any active code freezes with guidance.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Apr 29, 2026
@github-actions github-actions Bot added tool Affects the "flutter" command-line tool. See also t: labels. team-ios Owned by iOS platform team team-macos Owned by the macOS platform team labels Apr 29, 2026
@github-actions github-actions Bot removed the CICD Run CI/CD label Apr 30, 2026
@vashworth vashworth added the CICD Run CI/CD label Apr 30, 2026
@vashworth vashworth marked this pull request as ready for review April 30, 2026 16:48
@vashworth vashworth requested review from a team as code owners April 30, 2026 16:48
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Swift package build process to use direct versioned paths for the App framework binary on macOS, replacing symlinks in the FlutterAssembleInputs.xcfilelist template. Corresponding tests were added to verify the pathing for both iOS and macOS. Feedback suggests extending this logic to other symlinked paths in the templates, including the Flutter framework binary and code signature resources, and ensuring consistency in the output file list.

Comment thread packages/flutter_tools/lib/src/commands/build_swift_package.dart
@github-actions github-actions Bot removed the CICD Run CI/CD label Apr 30, 2026
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Apr 30, 2026
Copy link
Copy Markdown
Contributor

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vashworth vashworth added the autosubmit Merge PR when tree becomes green via auto submit App label May 1, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 1, 2026
@auto-submit
Copy link
Copy Markdown
Contributor

auto-submit Bot commented May 1, 2026

autosubmit label was removed for flutter/flutter/185769, because - The status or check suite Windows tool_integration_tests_3_10 has failed. Please fix the issues identified (or deflake) before re-applying this label.

@vashworth vashworth added the autosubmit Merge PR when tree becomes green via auto submit App label May 1, 2026
@auto-submit auto-submit Bot added this pull request to the merge queue May 1, 2026
Merged via the queue into flutter:master with commit 3ca8471 May 1, 2026
170 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD team-ios Owned by iOS platform team team-macos Owned by the macOS platform team tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dart code not re-assembled properly for macOS SwiftPM Add 2 App

2 participants