在我将其应用到主要项目之前,我正在尝试一些pod,我想确保它能够满足我的需求。最简单的方法是在playground中试用。
我尝试了在playground中使用pod init
,但不起作用
[!] 找不到xcode项目,请指定一个
非常感谢您的帮助。
在我将其应用到主要项目之前,我正在尝试一些pod,我想确保它能够满足我的需求。最简单的方法是在playground中试用。
我尝试了在playground中使用pod init
,但不起作用
[!] 找不到xcode项目,请指定一个
非常感谢您的帮助。
这是一个旧问题,但出现在谷歌的首位。
This Could Be Us But You Playing是一个命令行工具,它可以创建一个新的Xcode playground并集成cocoapod。它还支持一次性集成多个cocoapod,只需一个命令即可完成。
gem install cocoapods-playgrounds
pod playgrounds Alamofire
[~]$ pod playgrounds SwiftDate 文件 /Users/emai/SwiftDatePlayground/SwiftDatePlayground/SwiftDate.xcworkspace 不存在。
- bigpotatopod playgrounds Parse
。 - Chlebta有一篇“小可可点心”文章解释如何做到这一点: https://littlebitesofcocoa.com/138-using-cocoapods-in-xcode-playgrounds
link_with
的规范已不再支持,请改用 target blocks。 - Nike KovXcode 10中对我有用的方法是:
现在,您可以在Playground中使用所需的所有“Import”指令。
arena https://github.com/finestructure/Gala
resolving package dependencies
libraries found: Gala
✅ created project in folder 'SPM-Playground'
pod try
并使用与 pod 提供的示例项目。 - Samuel