Tag Archives: pod

[Solved] M1 chip uses pod to report error: * * * for architecture arm64

1. Add the following configuration

2. Add the following code to podfile

post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings['VALID_ARCHS'] = 'arm64 arm64e armv7 armv7s x86_64 i386'
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
end

end

3.pod install

Pod Install Error: Operation not permitted – /usr/bin/pod

 

After upgrading Mac OS X El Capitan, bloggers found that NIMA had lost many commands. And then my heart almost collapsed, my God! Apple, how can you treat me like this?I managed to install a good command, and you abandoned me like this. And then the first thing I found out was my pod brother, paralyzed, disappeared

Then I started the installation subconsciously, and entered sudo gem install cocoapods in terminal, and the result was:

 

Scheme 1:

$ mkdir -p $HOME/Software/ruby
$ export GEM_HOME=$HOME/Software/ruby
$ gem install cocoapods
[...]
1 gem installed cocoapods
$ export PATH=$PATH:$HOME/Sofware/ruby/bin

The first solution is to modify the installation path of gem, change the default installation path of gem to $home/software/RUBY directory, then install, and finally add the installation path to Path , so that you can run the command without a complete path

Scheme 2:

$ gem install cocoapods -n ~/Software/ruby

In scheme 2, gem’s own parameter - N – – is used to indicate the installation path. If you want to use this parameter, you need to add the path to Path to run the command without a complete path

My personal suggestion is to use the first method to modify the installation path of gem. In this way, you do not need to specify the path with the - N command every time