Can't build a sample app due to cocoas pods error. #110
-
Hi All, Frairly new to flutter, and trying to get a sample up and running using flutter_chat_ui and getting an error in cocoapods. Environment is: When trying to build a trivial sample, I get a cocoapods error: Launching lib/main.dart on iPhone 12 Pro Max in debug mode... Thanks in advance for any help you can offer. Great effort you guys have going here. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @gonnashred I have M1 myself and the error tells you that Find your terminal app, right click on it, There are alternative solutions, again can be easily found in Google (keep in mind that alternative solutions still will be somewhat connected with running in Rosetta, so it is the easiest thing, described above) |
Beta Was this translation helpful? Give feedback.
Hey @gonnashred I have M1 myself and the error tells you that
ffi
Ruby dependency has no support for ARM architecture, you can also easily google it, but basically on M1 you still can't successfully performpod install
without running in Rosetta mode.Find your terminal app, right click on it,
Get Info
, and checkOpen using Rosetta
, then you can navigate to theexample/ios
folder and runpod install
(from the terminal inRosetta
mode, that console in VSCode will be in the ARM mode, unless you run all VSCode in Rosetta). After successfulpod install
you can normally run the app from VSCode (ARM). This is my workflow.There are alternative solutions, again can be easily found in Google (kee…