gpt4 book ai didi

ios - 将 Playground 添加到现有工作区(使用 cocoapods)

转载 作者:可可西里 更新时间:2023-11-01 04:49:55 25 4
gpt4 key购买 nike

问题:

How to add a playground to the workspace, if i already have an app project and a pod project in this workspace ?

它应该看起来像这样:

im1

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

我尝试了什么:
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

没用。

最佳答案

确保以下所有事项:

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

关于ios - 将 Playground 添加到现有工作区(使用 cocoapods),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43167610/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com