Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Flutter Script doesn't consider MacOS Architecture #2

Closed
philiparpin opened this issue Jun 16, 2022 · 5 comments · Fixed by #3
Closed

Setup Flutter Script doesn't consider MacOS Architecture #2

philiparpin opened this issue Jun 16, 2022 · 5 comments · Fixed by #3
Labels
good first issue Good for newcomers

Comments

@philiparpin
Copy link

Environment

OS: macOS Montgomery - 12.2.1
Processor: 2.6 GHz Dual-Core Intel Core i5
Flutter version: 3.0.2
Steps to Reproduce

Clone flutter v3.0.2
Navigate to the hello world sample: cd examples/hello_world
Build for iOS: flutter build ios --release --no-codesign
Notice the error: bin/internal/shared.sh: line 225: bin/cache/dart-sdk/bin/dart: Bad CPU type in executable

The setup flutter script doesn't consider the MacOS Architecture. For Flutter V3.0.0 and V3.0.1 the first entry in the releases manifest is the intel one so the intel version is downloaded. For V3.0.2 the first version listed in the manifest is the M1 one therefore the script downloads that.

@philiparpin
Copy link
Author

flutter/flutter#106054

@philiparpin philiparpin changed the title "Bad CPU type is executable" when building a flutter app with V3.0.2 Setup Flutter Script doesn't consider MacOS Architecture Jun 16, 2022
@socheatsok78
Copy link
Member

Hi @philiparpin

Thank you for submitting the issue. I'll take a look into it and see what I can do.

@socheatsok78 socheatsok78 linked a pull request Jun 17, 2022 that will close this issue
@socheatsok78
Copy link
Member

Please use flutter-actions/setup-flutter@v2 instead.

@socheatsok78 socheatsok78 added the good first issue Good for newcomers label Jun 17, 2022
@socheatsok78
Copy link
Member

If the problem still there, feel free to re-open this issue.

@amaury901130
Copy link

using subosito/flutter-action@v2 solve the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants