Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift 3 mode has been deprecated

In Xcode 10.1 whenever I build my app I get the warning

Swift 3 mode has been deprecated and will be removed in a later version of Xcode. Please migrate "My Appp" to Swift 4.2 using "Convert > To Current Swift Syntax…" in the Edit menu. (in target 'My App')

How can I suppress the warning?

I tried to convert but conversion fails and besides that my app depends on some Pods / libraries that I can not convert any way.

Is there a way to stop seeing the warning?

like image 645
Bobrovsky Avatar asked Nov 06 '18 11:11

Bobrovsky


Video Answer


1 Answers

Unfortunately, there's no way to remove this. You'll need to manually update your Pods / libraries to Swift 4.x or wait until someone does the job for you. Otherwise, you won't be able to build your project with a newer Xcode version at some point in the future.

From https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes:

Xcode 10 is the last release that will support Swift 3. Migrate your projects from Swift 3 code to Swift 4.2 syntax by opening the project and choosing Edit > Convert > To Current Swift Syntax… (43101816)

like image 192
Cristian Ortega Avatar answered Oct 21 '22 12:10

Cristian Ortega