How to use cocoapods with playground?

后端 未结 5 790
时光取名叫无心
时光取名叫无心 2020-12-07 15:58

I am trying out some pods before I implement it with my main project I want to make sure it works properly for my requirement. Easiest way is to try it with playground.

5条回答
  •  粉色の甜心
    2020-12-07 16:10

    There is an issue of "Little bites of cocoa" explaining how to do this: https://littlebitesofcocoa.com/138-using-cocoapods-in-xcode-playgrounds

    1. Create project
    2. Pod init
    3. Add dependency
    4. Add playground to your workspace
    5. Add 'link_with' directive for your playground

提交回复
热议问题