In blog posts, such as https://useyourloaf.com/blog/adding-playgrounds-to-xcode-projects/ , or the kickstarter source code http://github.com/kickstarter/ios-oss, they add playgrounds to projects xcode to have documentation + visual tests of various view controllers and view components in the application.
The typical way they recommend doing this is:
- Create a new frame goal
- Add your code to the target infrastructure environment (with the correct access levels).
- Add a playground file to the workspace
- Create a framework
- Then the structure will be available on the playground.
This works without using cocoapods, but I found that this is not the case when you do use cocoapods.
After adding a playground to the Xcode workspace, Pods are available on the playground, but not in my user structure.
I don't understand how cocoapods work to make pods available on the playground.
I don’t understand how the internal market decides which framework should be available for import, etc.
Have any of you achieved this? are there pointers to do this?
thank
source
share