Cocoapods: pod lint doesn't respect swift_version of dependencies

Created on 27 Jun 2019  Â·  10Comments  Â·  Source: CocoaPods/CocoaPods

Report

What did you do?

Ran pod lib lint mypod

What did you expect to happen?

Dependencies with different versions of swift to compile with their respective versions and pass linting.

Per discussion here: https://github.com/CocoaPods/CocoaPods/pull/8897#issuecomment-506399057

What happened instead?

Linting failed as it was using the swift version from the main Podspec to compile the dependencies

CocoaPods Environment

Stack

   CocoaPods : 1.7.2
        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.5 (18F203)
       Xcode : 10.2.1 (10E1001)
         Git : git version 2.20.1 (Apple Git-117)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ a551a2a5f25a47ddf704f7937f8c617dd119f56b

Installation Source

Executable Path: /usr/local/bin/pod

Plugins

claide-plugins                   : 0.9.2
cocoapods-deintegrate            : 1.0.4
cocoapods-plugins                : 1.0.0
cocoapods-search                 : 1.0.0
cocoapods-static-swift-framework : 0.4
cocoapods-stats                  : 1.1.0
cocoapods-trunk                  : 1.3.1
cocoapods-try                    : 1.1.0

Project that demonstrates the issue

https://twstaticfiles.s3.amazonaws.com/specbug.zip

confirmed workaround available defect

Most helpful comment

Shipped 1.7.3.

All 10 comments

@sprynmr that is a confirmed bug. Will ship in 1.7.3.

The PR #8897 actually regressed it. Thanks again for filing.

@sprynmr have you tried CocoaPods 1.7.1?

I haven't, but I will test it now.

Screen_Shot_2019-06-27_at_1_23_33_PM

Confirmed in my change.

🎉

Confirmed 1.7.1 also does not have the issue.

Cool.

Will ship with 1.7.3 which also has some improvements for CDN in CocoaPods/Core.

Shipped 1.7.3.

Was this page helpful?
0 / 5 - 0 ratings