【问题标题】:Add playground to existing Workspace (with cocoapods)将游乐场添加到现有工作区(使用 cocoapods)
【发布时间】:2017-08-27 07:33:39
【问题描述】:

问题:

如果我在此工作区中已经有一个应用程序项目和一个 pod 项目,如何将游乐场添加到工作区?

它应该看起来像这样:

现在它无法从 cocoapods 项目中找到依赖项:

我尝试了什么:
https://github.com/segiddins/ThisCouldBeUsButYouPlaying
How to add a CocoaPod framework to Xcode 8 Playground
How to use cocoapods with playground?
https://github.com/WhisperSystems/Signal-iOS/pull/1180

没用。

【问题讨论】:

    标签: ios xcode cocoapods swift-playground


    【解决方案1】:

    确保以下所有事项:

    • 在尝试将 Pod 导入 Playground 之前,您构建了整个项目 (CMD+B)。
    • 您为模拟器构建项目,为设备构建项目会为错误的平台构建项目(游乐场在模拟器中运行)。
    • 您为正确的平台(tvOS、macOS、iOS)构建项目。您可以通过File Inspector (ALT+CMD+1) 查看您的 Playground 所在的平台。

    【讨论】:

      猜你喜欢
      • 2016-01-26
      • 2014-04-13
      • 1970-01-01
      • 1970-01-01
      • 2018-05-15
      • 2017-10-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多