带有 Cocoapods 的 Xcode Playground

Posted

技术标签:

【中文标题】带有 Cocoapods 的 Xcode Playground【英文标题】:Xcode Playground with Cocoapods 【发布时间】:2016-07-06 04:15:00 【问题描述】:

我正在尝试在我的项目中将 cocoapods 导入 Xcode 游乐场,但尽管找到了一些解决方案,但似乎没有一个在 Xcode 7.3.1 中有效。

例如,我尝试了建议 here,但在操场上导入时出现错误:

“没有这样的模块”

【问题讨论】:

【参考方案1】:

您可以使用 ThisCouldBeUsButYouPlaying 或将其添加到您的 Podfile 中

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['CONFIGURATION_BUILD_DIR'] = '$PODS_CONFIGURATION_BUILD_DIR'
    end
  end
end

【讨论】:

感谢您的回复,但我在问题中引用的帖子中提到了此解决方案,并且在 Xcode 7.3.1 中不起作用 尝试在你之前构建所有的pods方案。

以上是关于带有 Cocoapods 的 Xcode Playground的主要内容,如果未能解决你的问题,请参考以下文章