Reputation: 3070
When I ran "Build", Xcode showed me the error "SWIFT_VERSION '3.2' is unsupported..." for one of my Pods, which, sure enough, was using Swift version 3.2.
I updated the problem Pod to a newer version that specifies Swift 5.0 in its .swift-version
file, but when I run "Build", Xcode still shows me the same error, which claims that the problem Pod is using Swift 3.2.
I've tried cleaning the build folder, deleting the Pod cache and reinstalling all CocoaPods for the project, and quitting and restarting Xcode, but none of that solved this problem. How do I get Xcode to recognize the Swift version in the Pod folder?
Upvotes: 0
Views: 311
Reputation: 3070
The solution was to open the Project Navigator, click on "Pods", select the problem Pod, and in "Build Settings", change the Swift Language Version.
Thank you, @Claus Jørgensen for pointing me to the answer!
Upvotes: 1