๋ฐ์ํ
sudo gem install cocoapods ์คํ ์ ์๋ฌ
ERROR: Error installing cocoapods: ERROR: Failed to build gem native extensions
sudo gem install cocoapods ์ ERROR log
sudo gem install cocoapods
Building native extensions. This could take a while...
ERROR: Error installing cocoapods:
ERROR: Failed to build gem native extension.
current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/ext/ffi_c
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20220621-34945-qb0yrw.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
- rbenv install -l ๋ก ์ค์น ๊ฐ๋ฅํ ๋ฒ์ ํ์ธ
- ๋๋ 2.7 ์ด์์ด ํ์ํ์
- ๋ชฉ๋ก์ 2.7.6 ๋ฐ๊ฒฌ → rbenv install 2.7.6 ๋ก ์ค์น
- ์ค์น ํ rbenv versions ๋ก ๋ด ๋ฒ์ ์ด ์ ๋๋ก ๊น๋ ธ๋์ง ํ์ธ
$ rbenv install -l
2.6.10
2.7.6
3.0.4
3.1.2
jruby-9.3.4.0
mruby-3.0.0
rbx-5.0
truffleruby-22.1.0
truffleruby+graalvm-22.1.0
Only latest stable releases for each Ruby implementation are shown.
Use 'rbenv install --list-all / -L' to show all local versions.
$ rbenv install 2.7.6
Downloading openssl-1.1.1n.tar.gz...
-> <https://dqw8nmjcqpjn7.cloudfront.net/40dceb51a4f6a5275bde0e6bf20ef4b91bfc32ed57c0552e2e8e15463372b17a>
Installing openssl-1.1.1n...
Installed openssl-1.1.1n to /Users/###/.rbenv/versions/2.7.6
Downloading ruby-2.7.6.tar.bz2...
-> <https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.6.tar.bz2>
Installing ruby-2.7.6...
ruby-build: using readline from homebrew
Installed ruby-2.7.6 to /Users/###/.rbenv/versions/2.7.6
$ rbenv versions
* system
2.7.6
๋ฐ์ํ
- pod ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํด ๋ฒ์ ์ ํ์ธํ๋ ค๊ณ ํ์ผ๋ pod ๋ช ๋ น์ด๊ฐ ์๋ค๊ณ ๋์ด
- brew๋ฅผ ์ด์ฉํด์ cocoapod๋ฅผ ์ค์น
- pod --version ์ผ๋ก ๋ค์ ํ์ธํด๋ณด๋ ๋ด๊ฐ ์ํ๋ pod ๋ฒ์ ์ผ๋ก ์ ์ค์น๋จ
$ pod --version
zsh: command not found: pod
$ brew install cocoapods
ESC:...skipping...
Warning: Treating cocoapods as a formula. For the cask, use homebrew/cask/cocoapods
cocoapods 1.10.1_1 is already installed but outdated (so it will be upgraded).
==> Downloading <https://ghcr.io/v2/homebrew/core/cocoapods/manifests/1.11.3>
######################################################################## 100.0%
==> Downloading <https://ghcr.io/v2/homebrew/core/cocoapods/blobs/sha256:92ea102a56b7f97ea877b289b92ac7005f10be6ad>
==> Downloading from <https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:92ea102a56b7f97ea877b289b92a>
######################################################################## 100.0%
==> Upgrading cocoapods
1.10.1_1 -> 1.11.3
==> Pouring cocoapods--1.11.3.monterey.bottle.tar.gz
๐บ /usr/local/Cellar/cocoapods/1.11.3: 14,135 files, 29.9MB
==> Running `brew cleanup cocoapods`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /usr/local/Cellar/cocoapods/1.10.1_1... (13,139 files, 30.5MB)
$ pod --version
1.11.3
๐ ๐ ๐ pod ์ค์น ์๋ฃ!!
728x90
๋ฐ์ํ
'Computer Science > swift ๋ฝ๊ฐ๊ธฐ - ์ฐธ๊ณ ์ฌ์ดํธ ์ ์ฅ์' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[swift] Xcode๊ฐ ๋ด ๊ธฐ๊ธฐ๋ฅผ ๋ชป ์ฐพ์ ๋ ํด๊ฒฐ๋ฐฉ๋ฒ (18) | 2024.09.27 |
---|---|
[xcode] Info.plist ํ์ผ์ ์ ์ฒด ์์๋ณด๊ธฐ (0) | 2022.07.31 |
[xcode] xcode์ audio asset ์ถ๊ฐ (local๋ง๊ณ ..!) (0) | 2022.01.28 |
[ios] swift MVVM vs MVC ์ฐจ์ด (0) | 2022.01.26 |
[xcode] xcode๋น๋์ ์ปดํจํฐ ์ฃฝ์/xcode ๋ฉ๋ชจ๋ฆฌ ๋์ํ์/xcode memory leak (ํด๊ฒฐ๋ฐฉ๋ฒO) (0) | 2022.01.09 |
[swift] Alamofire๋? Alamofire ์ฌ์ฉ๋ฒ ๋ฝ๊ฐ๊ธฐ (0) | 2022.01.02 |
[swift] Metal vs OpenGL (0) | 2021.12.27 |
[swift] swiftui zindex ์ซ์ (0) | 2021.11.19 |