Most libraries have example apps, we should make it easy for CP users, but also current non-user to try these libs/examples through CP.
pod try NAME
Nice idea. How I could see it working. Using ORStackView as an example. ( https://github.com/orta/ORStackView )
I do pod try ORStackView
pod try ORStackView
It clones that to a temporary folder. Then CP / a plugin, looks for something like s.demo = "Project" if that fails it searches for the first xcproject. If it cannot find one it bails ( in an ideal world this would be a good time to turn it into an IRB like experience ) but if it does it performs pod install in the xcode directory and opens the new xcworkspace.
s.demo = "Project"
IMO this entire thing could be made without changes to the DSL, it'd be a bit less elegant though ( dealing with multiple xcodeprojects ) - not making DSL changes means that it could easily be handled outside of CP.
This is an awesome idea!
To be clear the purpose of this is to open the project used by the spec. This assumes that if a Podfile is found in the dir integration with CocoaPods is required. So we:
This would make an excellent plugin. Could it be as simple as cloning an entire git repo to a temp folder, running any bootstrap commands and then opening the designated proj/workspace? Easier to implement off the bat, and would work right away with AFNetworking, RAC and others.
[Gemspec] Include cocoapods-try