'Flutter GitHub Actions Bad CPU type in executable
Hi I am currently using this GitHub Action for CI/CD for my flutter project
Which runs-on: macOS-latest which I assume will be apple silicon. When it runs the flutter pub get in build_ios: I get this error.
/Users/runner/hostedtoolcache/flutter/2.13.0-0.1.pre-dev/x64/bin/internal/shared.sh: line 225:
/Users/runner/hostedtoolcache/flutter/2.13.0-0.1.pre-dev/x64/bin/cache/dart-sdk/bin/dart: Bad CPU type in executable
Now I think the problem may be to do with not having rosseta stone installed on the GitHub action?
Any thoughts on how to install rosseta stone, or if this is a different error?
Solution 1:[1]
Make sure you specify architecture: arm64
- uses: subosito/flutter-action@v1
with:
flutter-version: '2.10.4'
architecture: arm64
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | GILO |
