cocoapods-try icon indicating copy to clipboard operation
cocoapods-try copied to clipboard

pod try doesn't work for repositories without .xcodeproj files

Open weissi opened this issue 6 years ago • 5 comments

Report

What did you do?

pod try SwiftNIO

What did you expect to happen?

Xcode opening up with a project where I can try SwiftNIO

What happened instead?

$ 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 Environment

Stack

   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

Installation Source

Executable Path: /usr/local/bin/pod

Plugins

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

Project that demonstrates the issue

n/a

weissi avatar Aug 16 '18 16:08 weissi

For anyone who opens this see https://github.com/CocoaPods/CocoaPods/issues/8019

dnkoutso avatar Aug 16 '18 16:08 dnkoutso

We should make pod try utilize pod gen if it cant find a project to use.

dnkoutso avatar Aug 16 '18 16:08 dnkoutso