본문 바로가기
Else

CocoaPods 설치 및 오류

by SoosDev 2020. 12. 8.
728x90

 

코코아팟 이란?

CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. It has over 78 thousand libraries and is used in over 3 million apps. CocoaPods can help you scale your projects elegantly.

코코아팟은 Swift와 Objective-C 코코아 프로젝트의 종속성 관리자다. 7만 8천 개가 넘는 도서관을 가지고 있으며, 300만 개 이상의 앱에서 사용되고 있다. 코코아팟은 당신이 프로젝트를 우아하게 확장할 수 있도록 도와준다.

    -수 많은 라이브러리들을 관리함

    -안드로이드의 gradle 같은 역할


 

#CocoaPods 설치하기

1. Terfinal 실행 ( 터미널 앱 실행 )

 

2. 터미널에 sudo gem install cocoapods 입력, 패스워드 입력

sudo gem install CocoaPods

 

3. 설치 완료

 


 

#CocoaPods 오류 발생

 

1. 오류 발생 1번

 

 


 

1-1. 1번 오류 발생 해결

Command + Space => 터미널 검색 후 실행

터미널에 하단의 코드들을 순차적으로 입력하여 실행 (엔터)

 

첫 번째 코드

sudo xcodebuild -license accept

 

두 번째 코드

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null

두번째 코드 입력 실행시 Command Line Tools beta 3 for Xcode 설치 ( 시간 소요 적당히 있음 )

 

실행 화면

==> You are using macOS 11.0.
==> We do not provide support for this pre-release version.
This installation may not succeed.
After installation, you will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew\'s GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience while you are running this pre-release version.

==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following existing directories will be made group writable:
/usr/local/bin
==> The following existing directories will have their owner set to Soo:
/usr/local/bin
==> The following existing directories will have their group set to admin:
/usr/local/bin
==> The following new directories will be created:
/usr/local/etc
/usr/local/include
/usr/local/lib
/usr/local/sbin
/usr/local/share
/usr/local/var
/usr/local/opt
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var/homebrew
/usr/local/var/homebrew/linked
/usr/local/Cellar
/usr/local/Caskroom
/usr/local/Homebrew
/usr/local/Frameworks
==> The Xcode Command Line Tools will be installed.
==> /usr/bin/sudo /bin/chmod u+rwx /usr/local/bin
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/bin
==> /usr/bin/sudo /usr/sbin/chown Soo /usr/local/bin
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/bin
==> /usr/bin/sudo /bin/mkdir -p /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /usr/sbin/chown Soo /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /bin/mkdir -p /Users/Soo/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/Soo/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown Soo /Users/Soo/Library/Caches/Homebrew
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
==> Installing Command Line Tools beta 3 for Xcode-12.2
==> /usr/bin/sudo /usr/sbin/softwareupdate -i Command\ Line\ Tools\ beta\ 3\ for\ Xcode-12.2
Software Update Tool

Finding available software

Downloading Command Line Tools beta 3 for Xcode
Downloaded Command Line Tools beta 3 for Xcode
Installing Command Line Tools beta 3 for Xcode
Done with Command Line Tools beta 3 for Xcode
Done.
==> /usr/bin/sudo /bin/rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
==> /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools
==> Downloading and installing Homebrew...
HEAD is now at 59b130990 Merge pull request #9039 from Rylan12/move-audit-allowlist-to-core
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations
Already up-to-date.
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (or will be during this `install` run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> Next steps:
- Run `brew help` to get started
- Further documentation: 
    https://docs.brew.sh

 

두 번째 코드 입력 후 설치가 끝나면,

세 번째 코드 입력 ( #libffi 설치 )

 

brew install libffi

 

실행 화면

Soo@Park-MacBookPro ~ % brew install libffi
Warning: You are using macOS 11.0.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience while you are running this pre-release version.

==> Downloading https://homebrew.bintray.com/bottles/libffi-3.3.catalina.bottle.
######################################################################## 100.0%
==> Pouring libffi-3.3.catalina.bottle.tar.gz
==> Caveats
libffi is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

For compilers to find libffi you may need to set:
  export LDFLAGS="-L/usr/local/opt/libffi/lib"
  export CPPFLAGS="-I/usr/local/opt/libffi/include"

==> Summary
🍺  /usr/local/Cellar/libffi/3.3: 16 files, 489.4KB

 

네 번째 코드 ( #CocoaPods 설치 ) 실행 및 실행 화면

 

sudo gem install cocoapods
Soo@Park-MacBookPro ~ % sudo gem install cocoapods
Password:
Building native extensions. This could take a while...
Successfully installed ffi-1.13.1
Successfully installed ethon-0.12.0
Successfully installed typhoeus-1.4.0
Successfully installed cocoapods-core-1.10.0
Successfully installed cocoapods-1.10.0
Parsing documentation for ffi-1.13.1
Installing ri documentation for ffi-1.13.1
Parsing documentation for ethon-0.12.0
Installing ri documentation for ethon-0.12.0
Parsing documentation for typhoeus-1.4.0
Installing ri documentation for typhoeus-1.4.0
Parsing documentation for cocoapods-core-1.10.0
Installing ri documentation for cocoapods-core-1.10.0
Parsing documentation for cocoapods-1.10.0
Installing ri documentation for cocoapods-1.10.0
Done installing documentation for ffi, ethon, typhoeus, cocoapods-core, cocoapods after 22 seconds
5 gems installed

 


 

* 1.1 설치 오류 해결 참고 사이트

http://macappstore.org/libffi/

 

Install libffi on Mac OSX – Mac App Store

About the App App name: libffi App description: A portable Foreign Function Interface library App website: Not Available Install the App Press Command+Space and type Terminal and press enter/return key. Run in Terminal app:ruby -e "$(curl -fsSL https://raw

macappstore.org

https://stackoverflow.com/questions/44706311/how-to-install-libffi-dev-on-mac-os-x

 

How to install libffi-dev on Mac OS X

I am trying to implement micropython on unix, which requires libffi-dev. I installed in this way brew install libffi-dev. But it seems that there is no libffi-dev can be found. Is there any way to

stackoverflow.com

 

728x90

'Else' 카테고리의 다른 글

Turbo boost switcher Password  (1) 2020.12.27
Turbo boost switcher  (0) 2020.12.27
애플 수수료 인하 -> 15%  (0) 2020.12.08
Xcode 앱스토어 설치 오류 -> 설치 해결  (0) 2020.12.08
Xcode : Swift 가상 머신 좌우 화면 짤림  (0) 2020.12.08

댓글