Skip to content

AppDelegate.swift:4:1 'UIApplicationMain' is deprecated; this is an error in Swift 6 #143044

@jmagman

Description

@jmagman

In Xcode 15.3 beta I see a deprecation warning in a newly created Flutter iOS Xcode project. @UIApplicationMain was renamed to @main in Swift 5.3.

AppDelegate.swift:4:1 'UIApplicationMain' is deprecated; this is an error in Swift 6

We already require Xcode 14, and Swift 5.3 was introduced in Xcode 12.

I bet the same is needed for @NSApplicationMain but I didn't check.

I'm not sure if there are other implications to using @main instead of @UIApplicationMain (scene delegates?)

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listplatform-iosiOS applications specificallyplatform-macBuilding on or for macOS specificallyt: xcode"xcodebuild" on iOS and general Xcode project managementteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions