Search code examples
iosswiftiphonecocoapods

Swift version required by a Pod?


I am trying to install a Pod in my IOS/iPhone project using Xcode 9.3.1.

My target app is configured to use Swift 3.3.

After adding the following line to my podfile...

pod 'Concorde'

I ran...

pod install

The pod installed normally. However, upon compilation, I receive a mess of compiler warnings and errors like "NSUrlResponse was obsoleted in Swift 3". It seems the Swift version I have (3.3) is too new.

The Swift version configured for the build target is also 3.3.

enter image description here

It looks like an older Swift is required for this Pod. However, is there a simple way to determine which Swift version is required for the pod?

I checked the CocoaPods.org web site and the page does not show the Swift version required for the library.

I also checked the podspec, where I expected to find that version number requirement.


Solution

  • You can try terminal command,

    pod try "pod name" 
    

    this will clone the repo automatically for you to test the framework on the fly there you can check out whatever you need.

    Plus reading the description on GitHub helps too

    Also i recommend using highly popular pods, as they tempt to be more stable.

    read the reviews about the framework, and try to find other alternatives for it.

    New update: You can try to preview .podspec file inside the Repo on github sometimes you can find the Swift Version of that Pod example : here