I\'m trying to run downloaded from app, try to open in Xcode and have an error:
\" Showing Recent Messages
:-1: SWIFT_VERSION \'3.0\' is unsu
******** Easiest way: **********
1.Click on PODs in the left column.
2.In the centre column select the pod you want, then navigate to "build settings" in the top right panel.
3.Then search "Swift Language Version" and change to a known version.
Select the target 'SimpleWeather' in the project and change language version Target->build setting -> Swift compiler language -> select 5, 4.2 etc
For Xcode 10.1, select your Pods File
-> Go to Build Settings -> Choose your Pod -> Search "Swift" -> Navigate to "Swift Language version" -> Set to desired language version.
I came across this issue while developing a Cocoapod. I had an old .swift-version
file in my repo that specified Swift 3.0.
Running pod lib lint --verbose
led me to this helpful response:
Please remove the
.swift-version
file which is now deprecated and only use theswift_version
attribute within your podspec.
I deleted the file and added spec.swift_version = '5.0'
to my podspec file to fix the problem.
select pod like as per image and change swift language version this can save you one day