![](/img/trans.png)
[英]How to add custom project configurations to Xcode when using CocoaPods?
[英]How to expose your project code to a Xcode playground when using cocoapods?
在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'
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.