CocoaPods plugin which allows to quickly try the demo project of a Pod.
$ pod try POD_NAME
$ gem install cocoapods-try
CocoaPods plugin which allows to quickly try the demo project of a Pod.
License: MIT License
Right now I have a repo like so: https://ada.csse.rose-hulman.edu/rosefire/ios-sdk/tree/master
I want to be able to run pod try https://ada.csse.rose-hulman.edu/rosefire/ios-sdk.git
The issue is right here, it's grabing it from the repo URL, but I want to use a different name. Or perhaps it would be better to grab the .podspec
file from the root? There should only be one such file right?
On attempting to use pod try
with Google-Maps-iOS-SDK
we wind up with a sample sans API Key that will crash if the user just hits run.
It'd be nice to have some post install script driven interaction where by we can direct the user to get an API Key, and then splice it into the sample to make it work out of the box. How can we achieve this with pod try
?
When I attempt to use pod try on any cocoapod in cocoapods v0.37.0 I get this message:
[!] Unable to find any project in the source files of the Pod: /private/tmp/CocoaPods/Try/PODNAME
If I go into that directory it seems like everything has been stripped out except the README.md, LICENSE and the folder containing the actual pod source files.
cocoapods-try
Hey all, any ideas why I might be getting the following error?
tumblr-MacBookPro-2a5158:deleteme bryan$ pod try XExtensionItem
Updating spec repositories
Trying XExtensionItem
Analyzing dependencies
Fetching podspec for XExtensionItem
from ../
/usr/bin/pod install
CocoaPods : 0.37.1
Ruby : ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
RubyGems : 2.0.14
Host : Mac OS X 10.10.3 (14D136)
Xcode : 6.3.1 (6D1002)
Git : git version 2.3.2 (Apple Git-55)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 3a499560f72fc75721439a542afb8d85fb8b0ca7
Tumblr - [email protected]:TumblrMobile/Podspecs.git @ f3bf64ce514cc0c27d7bd9e25cd557c3ea9e99d3
tumblr-tumblrmobile-podspecs - https://github.ewr01.tumblr.net/TumblrMobile/Podspecs.git @ f3bf64ce514cc0c27d7bd9e25cd557c3ea9e99d3
tumblr-tumblrmobile-podspecs-1 - git://github.ewr01.tumblr.net/TumblrMobile/Podspecs.git @ f3bf64ce514cc0c27d7bd9e25cd557c3ea9e99d3
cocoapods-deintegrate : 0.2.1
cocoapods-plugins : 0.4.2
cocoapods-trunk : 0.3.1
cocoapods-try : 0.4.4
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
target 'App', :exclusive => true do
pod "XExtensionItem", :path => "../"
end
target 'Extension', :exclusive => true do
pod "XExtensionItem", :path => "../"
end
Errno::EACCES - Permission denied - /private/tmp/CocoaPods/Try/XExtensionItem/Example/Pods/Local Podspecs/XExtensionItem.podspec.json
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/sandbox.rb:257:in `initialize'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/sandbox.rb:257:in `open'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/sandbox.rb:257:in `open'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/sandbox.rb:257:in `store_podspec'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/external_sources/abstract_external_source.rb:147:in `store_podspec'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/external_sources/path_source.rb:17:in `block in fetch'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/user_interface.rb:70:in `titled_section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/external_sources/path_source.rb:11:in `fetch'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/installer/analyzer.rb:347:in `fetch_external_source'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/installer/analyzer.rb:324:in `block (2 levels) in fetch_external_sources'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/installer/analyzer.rb:323:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/installer/analyzer.rb:323:in `block in fetch_external_sources'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/user_interface.rb:49:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/installer/analyzer.rb:322:in `fetch_external_sources'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/installer/analyzer.rb:57:in `analyze'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/installer.rb:190:in `analyze'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/installer.rb:112:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/user_interface.rb:49:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/installer.rb:111:in `resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/installer.rb:91:in `install!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/command/project.rb:71:in `run_install_with_update'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/command/project.rb:101:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-0.8.1/lib/claide/command.rb:312:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/command.rb:46:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/bin/pod:44:in `<top (required)>'
/usr/bin/pod:23:in `load'
/usr/bin/pod:23:in `<main>'
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=Permission+denied+-+%2Fprivate%2Ftmp%2FCocoaPods%2FTry%2FXExtensionItem%2FExample%2FPods%2FLocal+Podspecs%2FXExtensionItem.podspec.json&type=Issues
If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
Opening '/private/tmp/CocoaPods/Try/XExtensionItem/Example/XExtensionItemExample.xcworkspace'
I just created a private pod following the cocoapods guidelines. Then I tried pod try myPrivatePod
Didn't really expect it to work without some sort of source URL added
Performing CocoaPods Installation
[!] Unable to find a specification for myPrivatePod
CocoaPods : 1.3.1
Ruby : ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin16]
RubyGems : 2.6.14
Host : Mac OS X 10.13.2 (17C88)
Xcode : 9.2 (9C40b)
Git : git version 2.14.3 (Apple Git-98)
Ruby lib dir : /Users/ericchang/.rvm/rubies/ruby-2.4.2/lib
Repositories : giift-specs - [email protected]:giiftalldev/specs.git @ 5fc0dd7b5496f5022981086c028ef63377aa7be5
master - https://github.com/CocoaPods/Specs.git @ 971ab63e341e8ed0a8af519244a491a7c110a493
Executable Path: /Users/ericchang/.rvm/gems/ruby-2.4.2/bin/pod
cocoapods-deintegrate : 1.0.1
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.3.0
cocoapods-try : 1.1.0
Was there a way to try private pods? Thank you.
See #18 for more context
It currently breaks during pod installation, I’ve told the world we’d look into it over the next few days: http://twitter.com/CocoaPods/status/415915985322131456
For an example of the error see: CocoaPods/CocoaPods#1712.
Ok, so as stated in #7 we should create a separate issue for pods, that fail to work with pod try command, so i'm moving previous comment here.
pod try DTTableViewManager
Repo contains Example folder, which contains xcodeproj and Podfile for it. Generated report:
CocoaPods : 0.29.0
Ruby : ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
RubyGems : 2.0.3
Host : Mac OS X 10.9.1 (13B3116)
Xcode : 5.0.2 (5A3005)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 808af2430949fa1800a71e3bfde901b739debdb6
TypeError - no implicit conversion of nil into String
/Library/Ruby/Gems/2.0.0/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:137:in `expand_path'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:137:in `block in install_podfile'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:133:in `chdir'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:133:in `install_podfile'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:31:in `block in run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/user_interface.rb:94:in `title'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:28:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-0.4.0/lib/claide/command.rb:213:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:51:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/bin/pod:24:in `<top (required)>'
/usr/bin/pod:23:in `load'
/usr/bin/pod:23:in `<main>'
The error output when an example project can't be found for a pod omits a space.
Expected output: "[!] Unable to find any project in the source files of the Pod: '/tmp/CocoaPods/Try/boxBlur'"
Actual output (emphasis added): "[!] Unable to find any project in the source filesof the Pod: '/tmp/CocoaPods/Try/boxBlur'"
Greetings,
I updated my Cocoapods gem from 0.39 to 1.0.0 beta 3, after completely wiping all of my gems and installing from scratch. After installing, I see the following error every time I run any pod command:
Error loading the plugin `cocoapods-try-1.0.0.beta.3`.
NameError - uninitialized constant Pod::Command::Try::RepoUpdate
/Library/Ruby/Gems/2.0.0/gems/cocoapods-try-1.0.0.beta.3/lib/pod/command/try.rb:10:in `<class:Try>'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-try-1.0.0.beta.3/lib/pod/command/try.rb:9:in `<class:Command>'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-try-1.0.0.beta.3/lib/pod/command/try.rb:6:in `<module:Pod>'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-try-1.0.0.beta.3/lib/pod/command/try.rb:5:in `<top (required)>'
/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-try-1.0.0.beta.3/lib/cocoapods_plugin.rb:1:in `<top (required)>'
/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0.beta.3/lib/claide/command/plugin_manager.rb:95:in `block in safe_activate_and_require'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0.beta.3/lib/claide/command/plugin_manager.rb:95:in `each'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0.beta.3/lib/claide/command/plugin_manager.rb:95:in `safe_activate_and_require'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0.beta.3/lib/claide/command/plugin_manager.rb:31:in `block in load_plugins'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0.beta.3/lib/claide/command/plugin_manager.rb:30:in `map'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0.beta.3/lib/claide/command/plugin_manager.rb:30:in `load_plugins'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0.beta.3/lib/claide/command.rb:326:in `block in run'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0.beta.3/lib/claide/command.rb:325:in `each'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0.beta.3/lib/claide/command.rb:325:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.0.beta.3/lib/cocoapods/command.rb:48:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.0.beta.3/bin/pod:44:in `<top (required)>'
/usr/local/bin/pod:22:in `load'
/usr/local/bin/pod:22:in `<main>'
I should note that this doesn't appear to impair any of the basic commands in any way thus far.
I'm on OSX El Capitan 10.11.3
If there is any other info you need, let me know. Thanks!
Hey!
I'm using .cocoapods.yml to pull all submodules into project to get example project running. Commands are detected, project opened, however it does not seem like git commands were executed. Here's output of pod try command:
pod --version
1.0.0.beta.2
pod try DTTableViewManager
Running Pre-Install Commands
In order to try this pod, CocoaPods-Try needs to run the following command:
- git submodule foreach --recursive git submodule update --init
Press return to run these command, or press `ctrl + c` to stop trying this pod.
$ /bin/bash -ec git submodule foreach --recursive git submodule update
--init
Opening '/private/var/folders/fb/wfd_w9kn7bqf86gm9dpk0wg40000gn/T/CocoaPods/Try/DTTableViewManager/Example/DTTableViewManager.xcodeproj'
Contents of .cocoapods.yml:
try:
install:
pre:
- git submodule foreach --recursive git submodule update --init
What do you think?
I'm trying to open the Google Sign In demo but it returned this error instead:
Error loading the plugin
slather-2.4.7
.Gem::ConflictError - Unable to activate slather-2.4.7, because activesupport-5.2.4.5 conflicts with activesupport (>= 4.0.2, < 5)
'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:2302:inraise_if_conflicts' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1418:in
activate'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command/plugin_manager.rb:93:insafe_activate_and_require' /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command/plugin_manager.rb:31:in
block in load_plugins'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command/plugin_manager.rb:30:inmap' /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command/plugin_manager.rb:30:in
load_plugins'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:326:inblock in run' /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:325:in
each'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:325:inrun' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in
run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55:in<top (required)>' /usr/local/bin/pod:23:in
load'
/usr/local/bin/pod:23:in `
Updating spec repositories
Trying GoogleSignIn
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
/usr/local/bin/pod try GoogleSignIn
What did you do? Trying Google Sign In
What did you expect to happen? Can open demo
What happened instead? Error
CocoaPods : 1.10.1
Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
RubyGems : 3.0.3
Host : Mac OS X 10.15.7 (19H2)
Xcode : 12.4 (12D4e)
Git : git version 2.21.0
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : master - git - https://github.com/CocoaPods/Specs.git @ 6e6bef7dc3778f3aaca9b6f65ffe24fba74b05f3
trunk - CDN - https://cdn.cocoapods.org/
cocoapods-deintegrate : 1.0.4
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.1.0
cocoapods-trunk : 1.4.1
cocoapods-try : 1.1.0
NoMethodError - undefined method `root' for false:FalseClass
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/pod_source_installer.rb:180:in `root_spec'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/pod_source_installer.rb:193:in `predownloaded?'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/pod_source_installer.rb:69:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-try-1.1.0/lib/pod/command/try.rb:139:in `install_pod'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-try-1.1.0/lib/pod/command/try.rb:50:in `block in run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:118:in `title'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-try-1.1.0/lib/pod/command/try.rb:49:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Upon a fresh installation of Cocoapods via gem install cocoapods
, I am unable to run pod try
right away:
> pod try GoogleNavigation
Setup completed
Updating spec repositories
[!] Unable to find a specification for `GoogleNavigation`
It isn't until I run a pod install
command (and fetch the specs repo) that I can then begin using pod try
.
ℹ Please replace these two lines with what you did.
e.g. Run pod install
ℹ Please replace these two lines with what you expected to happen.
e.g. Install all pod dependencies correctly.
ℹ Please replace these two lines with of what happened instead.
e.g. Pod A is missing the subspec B for target C.
ℹ Please replace these two lines with the output of pod env
.
e.g. via pod env | pbcopy
ℹ Please link to a project we can download that reproduces the issue.
You can delete this section if your issue is unrelated to build problems,
i.e. it's only an issue with CocoaPods the tool.
https://guides.cocoapods.org/using/pod-install-vs-update.html
🌈
% pod try Google-Mobile-Ads-SDK
Updating spec repositories
CocoaPods 1.9.0.beta.2 is available.
To update use: sudo gem install cocoapods --pre
[!] This is a test version we'd love you to try.
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.9.0.beta.2
Trying Google-Mobile-Ads-SDK
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
/usr/local/bin/pod try Google-Mobile-Ads-SDK
pod try Google-Mobile-Ads-SDK
sudo gem install cocoapods --pre
zsh: command not found: Building
Run without error Google-Mobile-Ads-SDK
zsh: command not found: Building
Probably related to Catalina Mac OSX encountered wit Firebase pod install which became successful.
[!] Oh no, an error occurred.
CocoaPods : 1.8.4
Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
RubyGems : 3.0.3
Host : Mac OS X 10.15.2 (19C57)
Xcode : 11.3.1 (11C504)
Git : git version 2.21.1 (Apple Git-122.3)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : master - git - https://github.com/CocoaPods/Specs.git @ d9532e58a4464712f1216f41dfe41f4b630ef3d8
trunk - CDN - https://cdn.cocoapods.org/
cocoapods-deintegrate : 1.0.4
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.1.0
cocoapods-trunk : 1.4.1
cocoapods-try : 1.1.0
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'two3' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for two3
target 'two3Tests' do
inherit! :search_paths
# Pods for testing
end
target 'two3UITests' do
# Pods for testing
pod try Google-Mobile-Ads-SDK
end
NoMethodError - undefined method `root' for false:FalseClass
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/pod_source_installer.rb:179:in `root_spec'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/pod_source_installer.rb:192:in `predownloaded?'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/pod_source_installer.rb:69:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-try-1.1.0/lib/pod/command/try.rb:139:in `install_pod'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-try-1.1.0/lib/pod/command/try.rb:50:in `block in run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/user_interface.rb:118:in `title'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-try-1.1.0/lib/pod/command/try.rb:49:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[!] Oh no, an error occurred.
/usr/local/bin/pod try Google-Mobile-Ads-SDK
deleted Library/Cache/Cocoapods
then pod try Google-Mobile-Ads-SDK again
no errors
NoMethodError - undefined method `root' for false:FalseClass
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.0.beta.2/lib/cocoapods/installer/pod_source_installer.rb:179:in `root_spec'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.0.beta.2/lib/cocoapods/installer/pod_source_installer.rb:192:in `predownloaded?'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.0.beta.2/lib/cocoapods/installer/pod_source_installer.rb:69:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-try-1.1.0/lib/pod/command/try.rb:139:in `install_pod'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-try-1.1.0/lib/pod/command/try.rb:50:in `block in run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.0.beta.2/lib/cocoapods/user_interface.rb:118:in `title'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-try-1.1.0/lib/pod/command/try.rb:49:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.0.beta.2/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.0.beta.2/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
CocoaPods : 1.9.0.beta.2
Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
RubyGems : 3.0.3
Host : Mac OS X 10.15.2 (19C57)
Xcode : 11.3.1 (11C504)
Git : git version 2.21.1 (Apple Git-122.3)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : master - git - https://github.com/CocoaPods/Specs.git @ 13815dad04c17417ee15e3e6e12bdba49f9510da
trunk - CDN - https://cdn.cocoapods.org/
cocoapods-deintegrate : 1.0.4
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.1.0
cocoapods-trunk : 1.4.1
cocoapods-try : 1.1.0
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'two3' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for two3
target 'two3Tests' do
inherit! :search_paths
# Pods for testing
end
target 'two3UITests' do
# Pods for testing
pod try Google-Mobile-Ads-SDK
end
NoMethodError - undefined method `root' for false:FalseClass
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.0.beta.2/lib/cocoapods/installer/pod_source_installer.rb:179:in `root_spec'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.0.beta.2/lib/cocoapods/installer/pod_source_installer.rb:192:in `predownloaded?'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.0.beta.2/lib/cocoapods/installer/pod_source_installer.rb:69:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-try-1.1.0/lib/pod/command/try.rb:139:in `install_pod'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-try-1.1.0/lib/pod/command/try.rb:50:in `block in run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.0.beta.2/lib/cocoapods/user_interface.rb:118:in `title'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-try-1.1.0/lib/pod/command/try.rb:49:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.0.beta.2/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.0.beta.2/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Please try on current Catalina Mac OSX 10.15.2
The command should support URLs as well and assume them to be git repos.
For example, this doesn’t work:
pod try XCDYouTubeVideoPlayerViewController
Opening YouTube Video Player Demo.xcworkspace instead of YouTube Video Player Demo/YouTube Video Player Demo.xcodeproj would work.
https://news.ycombinator.com/item?id=9262765
The CLI help is typically rubyesque, by which I mean frighteningly laconic and uninformative:
try Try a Pod!
CocoaPods.org doesn't seem to document it either: http://guides.cocoapods.org/terminal/commands.html#commands
So what it does is clones a test xcworkspace into a temp folder:
/usr/local/bin/git clone https://github.com/facebook/ios-snapshot-test-case.git /private/tmp/CocoaPods/Try/ORStackView/Pods/FBSnapshotTestCase --single-branch --depth 1 --branch 1.2
Cloning into '/private/tmp/CocoaPods/Try/ORStackView/Pods/FBSnapshotTestCase'...
Opening '/private/tmp/CocoaPods/Try/ORStackView/ORStackView.xcworkspace'
Current:
Downloads the Pod with the given
NAME
(or GitURL
), install its dependencies if needed and opens its demo project. If a Git URL is provided the head of the repo is used.
Proposed:
Downloads the Pod with the given NAME
(or Git URL
) to a local temporary folder, then install its dependencies if needed and opens the Pod's demo project. If a Git URL is provided the head of the repo is used.
---------------------------------------------
Error loading the plugin `cocoapods-keys-1.7.0`.
LoadError - cannot load such file -- /Library/Ruby/Gems/2.0.0/gems/cocoapods-keys-1.7.0/lib/cocoapods_plugin.rb
/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:120:in `require'
/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:120:in `require'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0/lib/claide/command/plugin_manager.rb:95:in `block in safe_activate_and_require'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0/lib/claide/command/plugin_manager.rb:95:in `each'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0/lib/claide/command/plugin_manager.rb:95:in `safe_activate_and_require'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0/lib/claide/command/plugin_manager.rb:31:in `block in load_plugins'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0/lib/claide/command/plugin_manager.rb:30:in `map'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0/lib/claide/command/plugin_manager.rb:30:in `load_plugins'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0/lib/claide/command.rb:326:in `block in run'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0/lib/claide/command.rb:325:in `each'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0/lib/claide/command.rb:325:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command.rb:50:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:22:in `load'
/usr/local/bin/pod:22:in `<main>'
---------------------------------------------
pod try SwiftNIO
Xcode opening up with a project where I can try SwiftNIO
$ pod try SwiftNIO
Updating spec repositories
Trying SwiftNIO
[!] Unable to find any project in the source files of the Pod: `/private/var/folders/k8/7d0p_dxx2ll8vnw5mt5__ddc0000gn/T/CocoaPods/Try/SwiftNIO`
which (thanks @dnkoutso) is because we don't ship an .xcodeproj
. Maybe cocoapods-try should try to generate one using swift package generate-xcodeproj
?
CocoaPods : 1.5.3
Ruby : ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]
RubyGems : 2.5.2.3
Xcode : 10.0 (10A243)
Git : git version 2.17.0
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ d5477981560bd851f8aa66dd2db6a2bfd4251e1b
Executable Path: /usr/local/bin/pod
cocoapods-deintegrate : 1.0.2
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.3.0
cocoapods-try : 1.1.0
n/a
Hey, we have created pod that is using compiled framework as a source file.
In such case 'pod try' command doesn't work.
It would be great to add demo source parameter to spec file e.g.
spec.demo_source = { :git => 'https://github.com/...' }
~/s/i/eigen (fair_mockups ↩) pod try KPAViewControllerTestHelper
Updating spec repositories
Trying KPAViewControllerTestHelper
1: KPAViewControllerTestHelper.xcodeproj
2: KPAViewControllerTestHelper.xcodeproj/project.xcworkspace
3: KPAViewControllerTestHelper.xcworkspace
Which project would you like to open [1-3]?
3
Analyzing dependencies
Pre-downloading: Specta
from https://github.com/specta/specta.git
Downloading dependencies
Installing Expecta (0.2.3)
Installing Specta (0.2.1)
Generating Pods project
Integrating client project
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
CocoaPods : 0.29.0
Ruby : ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin13.0.0]
RubyGems : 2.0.6
Host : Mac OS X 10.9.2 (13C39)
Xcode : 5.0.2 (5A3005)
Ruby lib dir : /Users/orta/.rvm/rubies/ruby-2.0.0-p247/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ ffabee1028cb680532218588344b53d133ac7983
[contains my podfile, not the one from KPAViewControllerTestHelper]
TypeError - no implicit conversion of nil into String
/Users/orta/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:137:in `expand_path'
/Users/orta/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:137:in `block in install_podfile'
/Users/orta/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:133:in `chdir'
/Users/orta/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:133:in `install_podfile'
/Users/orta/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:31:in `block in run'
/Users/orta/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-0.29.0/lib/cocoapods/user_interface.rb:94:in `title'
/Users/orta/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:28:in `run'
/Users/orta/.rvm/gems/ruby-2.0.0-p247/gems/claide-0.4.0/lib/claide/command.rb:213:in `run'
/Users/orta/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:51:in `run'
/Users/orta/.rvm/gems/ruby-2.0.0-p247/gems/cocoapods-0.29.0/bin/pod:24:in `<top (required)>'
/Users/orta/.rvm/gems/ruby-2.0.0-p247/bin/pod:23:in `load'
/Users/orta/.rvm/gems/ruby-2.0.0-p247/bin/pod:23:in `<main>'
/Users/orta/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `eval'
/Users/orta/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `<main>'
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[!] Oh no, an error occurred.
For a pod try-able sample (distributed in a zip file with the library) I'm working on, it would be convenient to be able to edit the Info.plist (add a URL type), but that comes locked (read only perms). However, in the Cache dir the user has rw perms.
~/Library/Caches/Cocoapods/Pods/Releases...
-rw-r--r-- 1 ianbarber eng 949 6 May 18:33 Info.plist
/tmp/CocoaPods/Try...
-r--r--r-- 1 ianbarber wheel 949 30 Apr 12:06 Info.plist
I guess this is happening during the copy from the cache? This is using 0.44, but issue happened on previous version too.
👍
Then we don't have to bug Fabio for releases.
Would be nice to define a pod version to try (as an option). Useful for trying non-latest version, e.g. for older Xcode
This should follow the --no-repo-update
as pod install
does so we can stop doing a repo sync.
Presumably this line needs to check for JSON podspecs as well: https://github.com/CocoaPods/cocoapods-try/blob/master/lib/pod/command/try.rb#L103
To allow you to store example projects in separate repositories. It would be nice if they can be stored in a submodule.
Example here: https://github.com/the-hypermedia-project/Hyperdrive/tree/kylef/example
Using cocoapods-try 1.0.0-beta1 i've encountered situation, where it does not clone entire repo, but simply showing only a bunch of files in Sources folder.
Example
pod --version
-> 1.0.0.beta.1
pod try DTTableViewManager
Updating spec repositories
Trying DTCollectionViewManager
[!] Unable to find any project in the source files of the Pod: `/private/var/folders/fb/wfd_w9kn7bqf86gm9dpk0wg40000gn/T/CocoaPods/Try/DTCollectionViewManager`
Files in Try directory:
DTTableViewManager\
DTTableViewManager\DTTableViewManager\Sources
LICENSE
README.md
🌈
We build several pods, and among them is a pod that includes copies of our samples that are hosted in GitHub: https://cocoapods.org/pods/Google includes samples that are downloaded from https://github.com/googlesamples/google-services/tree/master/ios.
It would be great if pod try
could download the samples from here, rather than us having to bundle them in the pod's archive. Is this something that you think would be a reasonable addition? I'm not sure how exactly it would work: it could be a Podspec syntax addition, or perhaps a file that, if included in the source, tells pod try
to look in the repo that's listed in that file.
It does not seem like .cocoapods.yml customization file is working right now
pod try DTModelStorage
output:
Updating spec repositories
Trying DTModelStorage
Opening '/private/var/folders/fb/wfd_w9kn7bqf86gm9dpk0wg40000gn/T/CocoaPods/Try/DTModelStorage/DTModelStorageTests/DTModelStorage.xcworkspace'
There's no echo message and git submodules did not get updated. I tried with suggested example
pod try ORStackView
and it doesn't seem like it prints anything.
versions:
cocoapods-try 0.50.1
cocoapods (0.38.2)
Maybe i'm missing something?
//cc @orta
/Users/simon/.rvm/gems/ruby-2.2.0/bin/pod install
I ran pod try PNChart
(also occurs with `pod try {MSCollectionViewCalendarLayout, Mantle-HAL, https://github.com/kevinzhow/PNChart.git, etc.)
There shouldn't be any complaints, Xcode opens & I can try out said pod.
There is a permissions error, as highlighted in this template that you've kindly provided. Xcode still opens, but the PNChart sample project doesn't build due to Pods/Manifest.lock
missing. The same issue occurred when I tried out pod try https://github.com/kevinzhow/PNChart.git
. I also tried it out MSCollectionViewCalendarLayout and Mantle-HAL and this same issue occurred.
From my deductions, it seems like this issue occurs with pods with third party non-test dependencies as similar commands for AFNetowrking, Mantle and SRMonthPicker (head version only as cough I need to update it) - these libraries lack pod dependencies.
CocoaPods : 0.37.1
Ruby : ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]
RubyGems : 2.4.5
Host : Mac OS X 10.10.3 (14D136)
Xcode : 6.3.1 (6D1002)
Git : git version 2.3.2 (Apple Git-55)
Ruby lib dir : /Users/simon/.rvm/rubies/ruby-2.2.0/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 5ae10957b2084d13ca34e949469433d1f5315edc
cocoapods-plugins : 0.4.2
cocoapods-trunk : 0.6.0
cocoapods-try : 0.4.4
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '6.0'
pod 'UICountingLabel','~> 1.2.0'
target :PNChartTests do
pod 'Expecta'
end
Errno::EACCES - Permission denied @ rb_sysopen - /private/tmp/CocoaPods/Try/PNChart/Podfile.lock
/Users/simon/.rvm/gems/ruby-2.2.0/gems/cocoapods-core-0.37.1/lib/cocoapods-core/lockfile.rb:300:in `initialize'
/Users/simon/.rvm/gems/ruby-2.2.0/gems/cocoapods-core-0.37.1/lib/cocoapods-core/lockfile.rb:300:in `open'
/Users/simon/.rvm/gems/ruby-2.2.0/gems/cocoapods-core-0.37.1/lib/cocoapods-core/lockfile.rb:300:in `open'
/Users/simon/.rvm/gems/ruby-2.2.0/gems/cocoapods-core-0.37.1/lib/cocoapods-core/lockfile.rb:300:in `write_to_disk'
/Users/simon/.rvm/gems/ruby-2.2.0/gems/cocoapods-0.37.1/lib/cocoapods/installer.rb:604:in `block in write_lockfiles'
/Users/simon/.rvm/gems/ruby-2.2.0/gems/cocoapods-0.37.1/lib/cocoapods/user_interface.rb:110:in `message'
/Users/simon/.rvm/gems/ruby-2.2.0/gems/cocoapods-0.37.1/lib/cocoapods/installer.rb:603:in `write_lockfiles'
/Users/simon/.rvm/gems/ruby-2.2.0/gems/cocoapods-0.37.1/lib/cocoapods/installer.rb:136:in `block in generate_pods_project'
/Users/simon/.rvm/gems/ruby-2.2.0/gems/cocoapods-0.37.1/lib/cocoapods/user_interface.rb:49:in `section'
/Users/simon/.rvm/gems/ruby-2.2.0/gems/cocoapods-0.37.1/lib/cocoapods/installer.rb:129:in `generate_pods_project'
/Users/simon/.rvm/gems/ruby-2.2.0/gems/cocoapods-0.37.1/lib/cocoapods/installer.rb:97:in `install!'
/Users/simon/.rvm/gems/ruby-2.2.0/gems/cocoapods-0.37.1/lib/cocoapods/command/project.rb:71:in `run_install_with_update'
/Users/simon/.rvm/gems/ruby-2.2.0/gems/cocoapods-0.37.1/lib/cocoapods/command/project.rb:101:in `run'
/Users/simon/.rvm/gems/ruby-2.2.0/gems/claide-0.8.1/lib/claide/command.rb:312:in `run'
/Users/simon/.rvm/gems/ruby-2.2.0/gems/cocoapods-0.37.1/lib/cocoapods/command.rb:46:in `run'
/Users/simon/.rvm/gems/ruby-2.2.0/gems/cocoapods-0.37.1/bin/pod:44:in `<top (required)>'
/Users/simon/.rvm/gems/ruby-2.2.0/bin/pod:23:in `load'
/Users/simon/.rvm/gems/ruby-2.2.0/bin/pod:23:in `<main>'
/Users/simon/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `eval'
/Users/simon/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `<main>'
Trying ComponentKit
Performing CocoaPods Installation
[!] The dependency ComponentKit (from
../..)
is not used in any concrete target.
Error loading the plugin cocoapods-try-1.2.0
.
NoMethodError - undefined method `activate' for #<Gem::StubSpecification:0x000000010b2b0550 @extension_dir=nil, @full_gem_path="/Users/comdosoft/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/cocoapods-try-1.2.0", @gem_dir=nil, @ignored=nil, @loaded_from="/Users/comdosoft/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/specifications/cocoapods-try-1.2.0.gemspec", @DaTa=#<Gem::StubSpecification::StubLine:0x000000010b2c3c90 @name="cocoapods-try", @Version=#<Gem::Version "1.2.0">, @platform="ruby", @extensions=[], @full_name="cocoapods-try-1.2.0", @require_paths=["lib"]>, @name=nil, @SPEC=nil, @base_dir="/Users/comdosoft/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0", @gems_dir="/Users/comdosoft/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems", @default_gem=false>
spec.activate
^^^^^^^^^
safe_activate_and_require' /Users/comdosoft/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/claide-1.0.3/lib/claide/command/plugin_manager.rb:31:in
block in load_plugins'map' /Users/comdosoft/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/claide-1.0.3/lib/claide/command/plugin_manager.rb:30:in
load_plugins'block in run' /Users/comdosoft/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/claide-1.0.3/lib/claide/command.rb:325:in
each'run' /Users/comdosoft/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in
run'<top (required)>' /usr/local/bin/pod:25:in
load'升级完最新的macOS Monterey 12.1 和Xcode 13.2.1后 cmd:pod --version
~/s/i/eigen (fair_mockups ↩) pod try KPAViewControllerTestHelper
Updating spec repositories
Trying KPAViewControllerTestHelper
1: KPAViewControllerTestHelper.xcodeproj
2: KPAViewControllerTestHelper.xcworkspace
[+] I've read and understood the CONTRIBUTING guidelines and have done my best effort to follow.
Run "pod try HEREMapsStarter" or pod try any other lib.
Error happens starting from pod 1.8.x version. Works fine in previous pod versions.
Download lib package
NoMethodError - undefined method `root' for false:FalseClass
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.1/lib/cocoapods/installer/pod_source_installer.rb:179:in `root_spec'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.1/lib/cocoapods/installer/pod_source_installer.rb:192:in `predownloaded?'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.1/lib/cocoapods/installer/pod_source_installer.rb:69:in `install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-try-1.1.0/lib/pod/command/try.rb:139:in `install_pod'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-try-1.1.0/lib/pod/command/try.rb:50:in `block in run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.1/lib/cocoapods/user_interface.rb:118:in `title'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-try-1.1.0/lib/pod/command/try.rb:49:in `run'
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.1/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.8.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:26:in `load'
/usr/local/bin/pod:26:in `<main>'
/usr/local/bin/ruby_executable_hooks:24:in `eval'
/usr/local/bin/ruby_executable_hooks:24:in `<main>'
CocoaPods : 1.8.1
Ruby : ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]
RubyGems : 2.5.2.3
Host : Mac OS X 10.14.6 (18G103)
Xcode : 11.0 (11A420a)
Git : git version 2.19.2
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/
Executable Path: /usr/local/bin/pod
cocoapods-clean : 0.0.1
cocoapods-deintegrate : 1.0.4
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.4.1
cocoapods-try : 1.1.0
earlgrey : 1.13.0
slather : 2.4.3
Not sure if this issue is already fixed in other closed issues:
pod try ASCScreenBrightnessDetector
Trying ASCScreenBrightnessDetector
1: Example/ASCScreenBrightnessDetectorExample.xcodeproj
2: Example/ASCScreenBrightnessDetectorExample.xcodeproj/project.xcworkspace
3: Example/ASCScreenBrightnessDetectorExample.xcworkspace
Which project would you like to open [1-3]?
(That the workspace gets opened by default is already fixed, see pull request #4 and #11)
When trying to manually open the workspace (3) it throws the "TypeError - no implicit conversion of nil into String" error.
CocoaPods : 0.29.0
Ruby : ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
RubyGems : 2.0.3
Host : Mac OS X 10.9.1 (13B42)
Xcode : 5.0.2 (5A3005)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 18bf2cdadf745a13287ebcfbd0c6b229a3ce6697
TypeError - no implicit conversion of nil into String
/Library/Ruby/Gems/2.0.0/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:137:in `expand_path'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:137:in `block in install_podfile'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:133:in `chdir'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:133:in `install_podfile'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:31:in `block in run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/user_interface.rb:94:in `title'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:28:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-0.4.0/lib/claide/command.rb:213:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:51:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/bin/pod:24:in `<top (required)>'
/usr/bin/pod:23:in `load'
/usr/bin/pod:23:in `<main>'
The example project has a workspace, so I'm not sure if this error is also related to 9a53804
.
Adding p Dir.pwd
to the install_pod(spec, dir)
shows the current working dir is the current folder, instead of /tmp/CocoaPods/Try/BRYSerialAnimationQueue/Examples
for example.
~/spiel pod try BRYSerialAnimationQueue --verbose
Updating spec repositories
Updating spec repo `master`
$ /usr/local/bin/git pull
Already up-to-date.
Trying BRYSerialAnimationQueue
> GitHub download
$ /usr/local/bin/git config core.bare
true
$ /usr/local/bin/git config core.bare
true
> Updating cache git repo (/Users/orta/Library/Caches/CocoaPods/GitHub/683df0f1cbe73f97b91fbe53ed8304b81cb88d06)
$ /usr/local/bin/git remote update
Fetching origin
$ /usr/local/bin/git clone '/Users/orta/Library/Caches/CocoaPods/GitHub/683df0f1cbe73f97b91fbe53ed8304b81cb88d06' '/tmp/CocoaPods/Try/BRYSerialAnimationQueue'
Cloning into '/tmp/CocoaPods/Try/BRYSerialAnimationQueue'...
done.
Checking connectivity... done
$ /usr/local/bin/git fetch origin tags/1.0.0 2>&1
From /Users/orta/Library/Caches/CocoaPods/GitHub/683df0f1cbe73f97b91fbe53ed8304b81cb88d06
* tag 1.0.0 -> FETCH_HEAD
$ /usr/local/bin/git reset --hard FETCH_HEAD
HEAD is now at 5f79b2d Initial
$ /usr/local/bin/git checkout -b activated-pod-commit 2>&1
Switched to a new branch 'activated-pod-commit'
Analyzing dependencies
Fetching podspec for `BRYSerialAnimationQueue` from `..`
[!] Unable to satisfy the following requirements:
- `BRYSerialAnimationQueue (from `..`)` required by `Podfile`
Opening '/tmp/CocoaPods/Try/BRYSerialAnimationQueue/Examples/BRYSerialAnimationExample.xcworkspace'
Creating a separate issue for this per #7.
If you're experiencing the same thing with a different pod, please create a separate issue.
CocoaPods : 0.29.0
Ruby : ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-darwin12.5.0]
RubyGems : 2.2.1
Host : Mac OS X 10.9.1 (13B3116)
Xcode : 5.0.2 (5A3005)
Ruby lib dir : /Users/paulyoung/.rvm/rubies/ruby-2.0.0-p353/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ f7c7c527dcb524309f0b99a2b32c0333a8409b12
TypeError - no implicit conversion of nil into String
/Users/paulyoung/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:137:in `expand_path'
/Users/paulyoung/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:137:in `block in install_podfile'
/Users/paulyoung/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:133:in `chdir'
/Users/paulyoung/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:133:in `install_podfile'
/Users/paulyoung/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:31:in `block in run'
/Users/paulyoung/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-0.29.0/lib/cocoapods/user_interface.rb:94:in `title'
/Users/paulyoung/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-try-release-fix-0.1.1/lib/pod/command/try.rb:28:in `run'
/Users/paulyoung/.rvm/gems/ruby-2.0.0-p353/gems/claide-0.4.0/lib/claide/command.rb:213:in `run'
/Users/paulyoung/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:51:in `run'
/Users/paulyoung/.rvm/gems/ruby-2.0.0-p353/gems/cocoapods-0.29.0/bin/pod:24:in `<top (required)>'
/Users/paulyoung/.rvm/gems/ruby-2.0.0-p353/bin/pod:23:in `load'
/Users/paulyoung/.rvm/gems/ruby-2.0.0-p353/bin/pod:23:in `<main>'
/Users/paulyoung/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `eval'
/Users/paulyoung/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `<main>'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.