美文网首页
[11] 在Playground 中 使用 CocoaPods

[11] 在Playground 中 使用 CocoaPods

作者: coderzcj | 来源:发表于2017-12-04 12:28 被阅读90次
  1. 创建Xcode 项目
  2. 创建Podfile
  3. 执行pod install
  4. 创建 Playground
  5. Xcode Workspace 添加 Playground
  6. Playground 导入 第三方库
  7. 异步执行添加以下代码:
import PlaygroundSupport

PlaygroundPage.current.needsIndefiniteExecution = true

// 异步执行完成添加
PlaygroundPage.current.finishExecution()

相关文章

网友评论

      本文标题:[11] 在Playground 中 使用 CocoaPods

      本文链接:https://www.haomeiwen.com/subject/whatixtx.html