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

App won't build on Mac M1 #355

Closed
biklas7 opened this issue Sep 6, 2021 · 3 comments
Closed

App won't build on Mac M1 #355

biklas7 opened this issue Sep 6, 2021 · 3 comments

Comments

@biklas7
Copy link

biklas7 commented Sep 6, 2021

Is your feature request related to a problem? (please describe)
Can't build my app on a mac m1 with this package because of the used protobuf version.

Describe the solution you'd like
After doing some research I've found this issue and comment grpc/grpc-java#7690 (comment) that had a solution for me.

Additional context
The build error without changing anything: Could not find protoc-3.13.0-osx-aarch_64.exe

Another interesting thing is that if I open my app android project on Android Studio and run the app there, it works. It won't work if I run the app with flutter run.

@remonh87
Copy link
Contributor

remonh87 commented Sep 6, 2021

I am able to build the example app with Mac m1 without any issues, also checked running from IDE and flutter run and both work without problems for me. I think you forgot to enable the rosetta emulation on your terminal (checkout this article).

@biklas7
Copy link
Author

biklas7 commented Sep 6, 2021

I think that was the problem. My bad, I'm new to Mac OS.

Now it works on the terminal but it's not working on VSCode. Do you have any tips for that as well?

@biklas7 biklas7 closed this as completed Sep 6, 2021
@remonh87
Copy link
Contributor

remonh87 commented Sep 6, 2021

No worries. About VSCode this should work out of the box however running on iOS is problematic sometimes.

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

No branches or pull requests

2 participants