You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Have cap doctor warn when an iOS project has not adopted UIScene
#8712
cap migrate adopts UIScene since 8.5 (#8544), but nothing tells a developer that an existing project still needs it. cap doctor reports "iOS looking great!" for a project with no UIApplicationSceneManifest.
I hit this with a production app: it passed cap doctor, was built with the iOS 26 SDK, and crashed at launch on iOS 26 until I adopted UIScene. A doctor warning would have pointed me at cap migrate before release.
Proposed change
In cli/src/ios/doctor.ts, add one check that reuses the detection migrate-uiscene.ts already has (scene manifest, SceneDelegate.swift, configurationForConnecting):
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Feature request
cap migrateadopts UIScene since 8.5 (#8544), but nothing tells a developer that an existing project still needs it.cap doctorreports "iOS looking great!" for a project with noUIApplicationSceneManifest.I hit this with a production app: it passed
cap doctor, was built with the iOS 26 SDK, and crashed at launch on iOS 26 until I adopted UIScene. A doctor warning would have pointed me atcap migratebefore release.Proposed change
In
cli/src/ios/doctor.ts, add one check that reuses the detectionmigrate-uiscene.tsalready has (scene manifest,SceneDelegate.swift,configurationForConnecting):npx cap migrateor see https://capacitorjs.com/docs/updating/8-5."I'd make it a warning, not a fatal error, so it doesn't break CI for projects that are deliberately on the old lifecycle.
Questions before I open a PR
cap migrateonly?readDetectionSignals/classifymove frommigrate-uiscene.tsto a shared util so doctor can import them?I'm happy to send the PR with tests in
cli/test.All reactions