A colossal Dreamer: GR鐵塔-天生我材

swift playground with cocoapods 본문

Development/아이폰

swift playground with cocoapods

江多林 2022. 9. 7. 15:36

스위프트플레이그라운드에서 코코아팟을 사용하려면.

매번 애가 많이 쓰여서 이참에 정리하고 넘어가고자 함.

 

방법은 2가지 있는 듯.

1. ruby gem cocoapods-playgrounds <-- 활용하는 방식과

2. 한땀한땀 수동 설정하는 방식.

 

(2)방식으로 구성해보자.

 

ㄱ. App 프로젝트를 하나 생성하자

    - XcodeBeta 사용금지, 코코아팟이 지원 안할 수 있다.

ㄴ. Playground 프로젝트를 생성하면서, 위에 App프로젝트에 임배드 시키자.

ㄷ. 터미널로 App 프로젝트 디렉토리에서 'pod init'

ㄹ. 터미널로 App 프로젝트 디렉토리에서 'pod install'

 

끗.

 

참조: 자세한 내용은 선구자들이 작성한 블로그 참조.

https://hyuni74.tistory.com/entry/XCode8-Playground-에서-cocoapod-라이브러리-사용하기

 

XCode8 Playground 에서 cocoapod 라이브러리 사용하기

XCode8 Playground 에서 cocoapod 라이브러리 사용하기 why? XCode8 이전 버전에서도 playground 에서 cocoapod 라이브러리를 이용하고자 하는 시도는 꽤 있었고 잘 되었다. 단, XCode8 버전대 그리고 cocoapods 1..

hyuni74.tistory.com

https://www.letmecompile.com/use-cocoapod-in-playground/

 

Playground에서 Cocoapod 라이브러리 사용하기

엑스코드 플레이그라운드(Xcode Playground)에서 간단하게 코드를 테스트 해보고 싶은데 해당 코드가 특정 cocoapod 라이브러리에 의존성이 있는 경우 cocoapods-playgrounds 명령어 도구를 사용하면 편리하

www.letmecompile.com

 

'Development > 아이폰' 카테고리의 다른 글

SwiftUI - ContainerView ⨁ ContentView  (0) 2022.09.13
macOS, show hidden files in Finder UI  (0) 2022.09.07
remove files from tracking git  (0) 2022.09.07
Swift: getting Date Components  (0) 2022.07.18
Swift PropertyWrapper  (0) 2022.07.11