-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listplatform-iosiOS applications specificallyiOS applications specificallyplatform-macBuilding on or for macOS specificallyBuilding on or for macOS specificallyt: xcode"xcodebuild" on iOS and general Xcode project management"xcodebuild" on iOS and general Xcode project managementteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Description
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
flutter/packages/flutter_tools/templates/app_shared/ios-swift.tmpl/Runner/AppDelegate.swift
Line 4 in db141ec
| @UIApplicationMain |
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.
flutter/packages/flutter_tools/templates/app_shared/macos.tmpl/Runner/AppDelegate.swift
Line 4 in db141ec
| @NSApplicationMain |
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 listImportant issues not at the top of the work listplatform-iosiOS applications specificallyiOS applications specificallyplatform-macBuilding on or for macOS specificallyBuilding on or for macOS specificallyt: xcode"xcodebuild" on iOS and general Xcode project management"xcodebuild" on iOS and general Xcode project managementteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team