fes*_*ast 6 xcode ios cocoapods swift swift-playground
在https://useyourloaf.com/blog/adding-playgrounds-to-xcode-projects/等博客文章或kickstarter源代码http://github.com/kickstarter/ios-oss中,他们将操场添加到xcode项目中为了获得应用程序中不同视图控制器和视图组件的文档+可视化测试.
他们建议的典型方式是:
这工作不使用的CocoaPods,但我发现,这不是当你的情况做使用的CocoaPods.
将操场添加到Xcode工作区后,Pod可在操场中使用,但不是我的自定义框架.
我不明白cocoapods如何在操场上制作豆荚
我不明白内部游乐场如何决定哪些框架可用于导入等.
你们有没有实现这个目标?有指针去做吗?
谢谢
这是可行的.在你的Podfile,你需要为你的应用程序和框架声明目标,以便CocoaPods可以向两者添加pod.这是一个例子.你可以查看教程使用Playground,demo和Medium post https://medium.com/flawless-app-stories/playground-driven-development-in-swift-cf167489fe7b
platform :ios, '9.0'
use_frameworks!
pod 'Cheers'
target 'UsingPlayground'
target 'AppFramework'
Run Code Online (Sandbox Code Playgroud)