I just ran into this problem with an old Cocoapod file that is written in Swift 3 but my Xcode supports Swift 5. There is no need to download Xcode 10.1. I followed this Apple Forums answer which works fine.
1- When you open project, you get this alert:
2- Select OK and open Issues Navigator (press command button + 5). It's the blue triangle icon
3- Find the yellow triangle warning for project, click each one, then when the alert appears validate changes when requested.
4- You should then get a compilation error, with Swift version undefined:
5- In the Project Navigator (left pane), select the blue project icon:
6- Select Build Settings
and make sure that underneath of it, it's set to All
and Combined
7- In the right search bar enter Swift Language
. The result should say Swift Language Version
- Unspecified
:
8- Just click Unspecified
and change it to Swift 5
9- In the 8th pic above, on the left side the TARGETS
section is on the first target that says Audio Mixer Demo. You're gong to have to do the same thing to Audio Mixer DemoTests because it's also initially set to Unspecified
. The Swift Language
for that is going to need to change to Swift 5
.
10- Fix all the red errors that are going to appear