How to install properly CocoaPods on Macbook M1 Silicon - macos

I am trying to install Cocoa Pods on my new MacBook Pro with the M1 Chip.
There are some solutions that found from December. Since is February those solutions may be a little outdated.
I cannot find any instructions on CocoaPods website. Would anyone be able to help me with that matter? I want to do it right and, sadly, I have little knowledge about that topic.
Many thanks for help.

These are the steps I followed :
Install HomeBrew in M1 Mac, open the Rosetta Terminal and run the following command :
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
After Homebrew installation is done, run this command in the terminal :
brew install cocoapods

I have mac Pro M1, Try to run on x86_64 architecture:
sudo arch -x86_64 gem install ffi
Then at the root of your project
arch -x86_64 pod install

For me was the solution through the Homebrew.
Install Homebrew natively on M1
https://docs.brew.sh/Installation#alternative-installs
Then install Cocoapods
https://formulae.brew.sh/formula/cocoapods

Related

Can't deploy heroku on Mac OS M1

I'm new on Heroku and trying to deploy my project here. After I typed this command in the terminal: curl https://cli-assets.heroku.com/install.sh | sh
and I also typed the administrative password correctly , I got this error message: unsupported arch: arm64
The script does not support arm64 (see line 40 pf the script).
The easier option is to install via brew
brew tap heroku/brew && brew install heroku
or download the tarball for macOS (if you still prefer doing it manually)
Download the tarball macOS
tar xvf heroku-darwin-x64.tar
sudo mv heroku /usr/local/lib
cd /usr/local/bin
ln -s /usr/local/lib/heroku/bin/heroku .
heroku --help
Apple Silicon Issues
If you’re getting the following error on a machine with an Apple M1 chip, you haven’t installed or declined to install Rosetta 2.
Bad CPU type in executable
Installing Rosetta 2 resolves this issue.
If you don’t want to install Rosetta 2 on your machine, you can install the Heroku npm package globally and use your own Node binary locally. Only v16 of Node has M1 ARM support and npm isn’t the recommended install method.
ref: heroku install
brew tap heroku/brew && brew install heroku
This command doesn't work for me
==> Installing heroku from heroku/brew
Error: Your Xcode (14.0.1) is too outdated.
Please update to Xcode 14.1 (or delete it).
Xcode can be updated from the App Store.
but there is no update in theApp Store.
Try
arch -arm64 brew install heroic
Try
arch -arm64 brew install heroku

cocoapods not installed in macos big sur flutter

it's my first using macOS I downloaded big sur version and I had install flutter
when I run flutter doctor I see this problem
Idk how to solve it
and i saw many answers here but still not working
it fixed when i install homebrow
If you are using an M1 mac, you can download ffi first by this command:
sudo arch -x86_64 gem install ffi
then run pod commands like this :
arch -x86_64 pod install

MacOs Big Sur: Failure to install RPM with brew

I'm trying to install rpm on mac os big sur with:
brew install rpm
but i'm getting always the same error:
Error: rpm: no bottle available!
Already tried
brew update
brew upgrade
brew update-reset
and no good.
My brew version is:
❯ brew --version
Homebrew 3.2.9-64-g6da8630
Any ideas what's going on?
Thanks
You're using an ARM Mac and the rpm doesn't support built as native arm64 package. You need to install a Rosetta Homebrew as well.
Check gdb: no bottle available-gdb install for detail explanation.

Unable to install appium 1.6.0-beta3 using npm as error(refer to attached screenshot) arises

problem screenshotDetails:
Xcode version 8.0 Mac OS sierra 10.12
Did you run the npm command with sudo before? In my windows machine I had same problem with 1.6.0-beta2. But when I executed using elevated login it worked. If this is mac I would suggest using avm.
I will try the same with AVM on my mac later today and I will update you if I see same problem.
Try installing with Brew.
Run these commands at the terminal one after one:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install node
npm install -g appium
(Running this will install the latest stable version, but if you want to install a specific verstion then run e.g. npm install -g appium#1.4.16)
Hope it helps :)

Install libtools on mac

I wanted to installs libtools on mac. I went to the apple developer site and downloaded the .dgm that downloaded the cmdline tools for Xcode for Mountain Lion.
But when I go to terminal and type libtools it says that the bash command is not found.
Could someone please tell me how to install libtools on mac.
If you installed brew like this
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
You can just write in terminal
brew install libtool
Note that libtool is called glibtool on OSX:
This tool is installed in OS X as glibtool to avoid a name conflict with NeXT libtool.
Source: https://developer.apple.com/library/mac/documentation/Porting/Conceptual/PortingUnix/compiling/compiling.html#//apple_ref/doc/uid/TP40002850-SW5
Install libtool on MacOS as below -
brew install libtool
Extreme rookie mistake. The command is libtool and not libtools.
I found the installation link in Apple Developers website
You've to un-pack the package and it will automatically start the installation on Xcode.

Categories

Resources