How to use cocoapods with playground?

后端 未结 5 805
时光取名叫无心
时光取名叫无心 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:13

    What works for me in Xcode 10 is:

    1. Create simple Single View App;
    2. Init it with all pods needed as usual;
    3. Crate a new separate Playground somewhere on the disc;
    4. After that just go to your Single View App workspace and use "Add files to.." command in Project Navigator, and add your Playground;

    Now you can use all "Import" directives you needed in your playground.

提交回复
热议问题