Skip to content

Conversation

@dnfield
Copy link
Contributor

@dnfield dnfield commented Mar 17, 2022

Fixes #86590

I do not have access to an arm64 mac to test that this still works. It will probably need to be modified a bit for that use case when we support building arm64 binaries.

@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Mar 17, 2022
@christopherfujino
Copy link
Contributor

I don't imagine this will be compatible with #100271

@dnfield
Copy link
Contributor Author

dnfield commented Mar 17, 2022

We could probably make this a little more robust by invoking xcodebuild -scheme Runner -destinations and parsing the output, but I don't see a good way to make that machine readable...

@dnfield
Copy link
Contributor Author

dnfield commented Mar 17, 2022

@christopherfujino I'll try patching that in with this one and seeing what happens, but again I only have an x64 mac to test on right now :)

@dnfield
Copy link
Contributor Author

dnfield commented Mar 17, 2022

This patch still works with that - @cbracken's patch is about the binary we build, this patch is about specifying what destination to run the application on.

However, this patch probably has problems on arm64 macs.

@dnfield
Copy link
Contributor Author

dnfield commented Mar 17, 2022

Based on local testing I don't need the target arch specifier and Xcode still won't complain.

@cbracken cbracken added platform-mac Building on or for macOS specifically a: desktop Running on desktop labels Mar 17, 2022
@cbracken
Copy link
Member

Verified manually after landing #100271 and this lgtm (again).

@cbracken cbracken merged commit ff74557 into flutter:master Mar 17, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Mar 18, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 18, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Mar 18, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Mar 18, 2022
@rohintoncollins
Copy link

rohintoncollins commented Mar 6, 2024

This appears now to be a problem for arm64 (m1) Macs:

Launching lib/main.dart on macOS in debug mode...
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00008103-000944861E33001E }
{ platform:macOS, arch:x86_64, id:00008103-000944861E33001E }

although it is just a warning and the app does launch, the last 2 lines are in red, which suggests that this is an error, when it really isn't.

But this fixes it - but make sure you only use this for Debug mode and not All: #86590 (comment)
image

@jmagman
Copy link
Member

jmagman commented Mar 7, 2024

This appears now to be a problem for arm64 (m1) Macs:

Tracking that issue in #86590

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: desktop Running on desktop platform-mac Building on or for macOS specifically tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

On Xcode 13 "flutter run -d macos" prints warning that there are multiple matching destinations, "arch:x86_64" and "name:Any Mac"

5 participants