-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Got error while trying pod install #10220
Comments
This looks like an issue with At this time, CocoaPods is only a consumer of the |
Ok, so until CocoaPods removes the ffi dependency I can't use it? |
Or fix the |
Fixed it by running the following command: |
Seeing the same on Mac mini with M1. I guess M1 arch is not supported? After fresh installation of cocoapods on clean Mac mini:
no version for m1?
|
+1 |
sudo arch -x86_64 gem install ffi Then arch -x86_64 pod install |
Apple released a solution https://support.apple.com/en-us/HT211861 until the softwares are compatible. Third party tutorial: https://iphonesoft.fr/2020/11/19/astuces-mac-m1-homebrew-cocoapods-recuperation-windows Quick walkthrough: https://stackoverflow.com/a/64919058 |
1.打开终端显示简介 this is true : https://stackoverflow.com/questions/64901180/running-cocoapods-on-apple-silicon-m1 |
We can definitely update title of this issue as compatibility with M1 chip. Same issues here happening on completely fresh and new MacBook Air with M1. |
Guys, do you have any ideas to fix this problem, I am using MacBook air with M1 chip. |
As suggested you need to duplicate terminal, run terminal through rosetta (aka x86) and use it there until CocoaPods add compatibility for ARM. |
It seem little different with what I met. I can use "pod install", but not "pod search". I already make terminal run with rosetta, I don't know what happen. |
This worked for me |
Here is the solution: worked on my end |
This seems an issue with installing In the meantime please seek out alternatives on how to successfully install |
I see people saying they can do this without Rosetta, but I can't reproduce that. It's very annoying. |
Can you clarify... does this mean you have to exclude arm64 and basically do everything after with x86_64? |
This is the right approach! I had to do some extra steps: |
Mac Mini M1 - worked too |
It worked on Mac m1 |
All, it feels like I've gotten 100 emails about this fix/workaround of using |
以此在终端执行下面代码 |
I've just installed Cocoapods on a brand new M1 Mac and |
@KaneCheshire - wouldn't a simple |
Awesome. This works for me without the need to use |
sudo arch -x86_64 gem install ffi Then arch -x86_64 pod install unable to resolve using above command. I'm getting arch: posix_spawnp: gem: Bad CPU type in executable |
|
same here |
this work for me |
work for me. Thank You |
This worked on M1 pro |
Thanks a lot |
same error and cant fix it m1pro |
Read up, 2022, M1 with Rbenv. My current Rbenv setup (v3.1.2) works fine in most of the project, but here comes a strange project, cocoapods was acting up only on this project.
and
voila! |
With Mac M1(2020) I can verify that this stackoverflow fixed the issue. |
run this command in ios folder: arch -arm64 brew install cocoapods |
Flutter
|
This worked for me, thx!😘 |
try to uncomment this line:
|
this works |
Worked for me |
This worked for me |
I deleted my It's work for me. I am using Flutter. |
Command
Report
What did you do?
pod install
What did you expect to happen?
Installing my pod's
What happened instead?
Error. This is on my MacBook Pro with the new M1 processor, maybe it has something to do with that.
Stack
Plugins
Podfile
Error
The text was updated successfully, but these errors were encountered: