I am creating a pod for my quick 4 for a library.
I run pod lib create IntentedLibraryName , which creates a workspace. Then I made the necessary changes to the IntentedLibraryName.podspec files and moved my library files to the IntentLibraryName / Classes / path.
To check if pod works, I built pod install from the Example project and everything works as intended.
Now I ran pod lib lint IntentedLibraryName.podspec --verbose , after which I got
(1 crash) === BUILD TARGET IntentLibraryName OF PROJECT Pods WITH CONFIGURATION Release ===
Check dependencies. The Swift Language Version assembly line (SWIFT_VERSION) must be set to a supported value for targets that use Swift. This parameter can be set in the assembly settings editor. The Swift Language Version assembly parameter (SWIFT_VERSION) must be set to a supported value for targets that use Swift. This parameter can be set in the assembly settings editor.
I did the following, hoping this fixes:
In the Pod project , From Build Settings > Swift Compiler- Language > Swift Language Version by Swift is not specified in Swift 4.0.
I added and committed all changes to the tag ( git tag 0.0.1 ) and pushed it all out with -tags. (i.e. git push -u origin dev --tags )
I run the linting command again, and the same problem .
I even try echo 4.0 > .swift-version to save all commit and push it again. Nada
Also tried s.pod_target_xcconfig = { 'SWIFT_VERSION' => '4.0' } NADA
#
Project showing a problem
Please link to a project that we can download that reproduces the problem. You can delete this section if your problem is not related to build problems, that is, it is only a problem with the CocoaPods tool.
I really think this is a problem with Xcode 9.0 because I created an empty project, it happened anyway.
Thanks for the help:)
Problem Fixed
The problem had nothing to do with Xcode 9 , but it was with cocoapods . I did remove cocoapods from my machine and install it again. After completion, make sure you have echo 4.0 > .swift-version . Voila :)