[11] 在Playground 中 使用 CocoaPods
2017-12-04 本文已影响90人
coderzcj
- 创建Xcode 项目
- 创建Podfile
- 执行pod install
- 创建 Playground
- Xcode Workspace 添加 Playground
- Playground 导入 第三方库
- 异步执行添加以下代码:
import PlaygroundSupport
PlaygroundPage.current.needsIndefiniteExecution = true
// 异步执行完成添加
PlaygroundPage.current.finishExecution()