Documentation
¶
Overview ¶
Command sceneprobe live-checks the iOS scene life cycle (#1117): an app built with the iOS 27 SDK must declare UIApplicationSceneManifest, or UIKit traps in UIApplicationMain before anything draws. It logs, to the console:
sceneprobe lifecycle=started|foreground|background|stopped sceneprobe drawn n=3 size=1640x2360 centre=rgba(230,40,90,255) want=rgba(230,40,90,255) ok=true sceneprobe url=sceneprobe://cold?x=1
The lines are:
- lifecycle: the app's lifecycle callbacks, which the scene delegate's sceneDidBecomeActive / sceneDidEnterBackground now drive.
- drawn: once a second while in the foreground, the centre pixel of a capture of the window, which is filled with one colour. ok=true means the window the scene delegate made is the one bellui paints.
- url: every URL the app is opened with. A URL that launches the app comes through the scene's connection options; a URL that arrives while it runs comes through scene:openURLContexts:. Four seconds after start the probe opens sceneprobe://warm itself to exercise the second path.
The probe exits by itself after a minute, so a run left behind stops.
Package from this directory and run on a device:
bellui package -os ios --app-id com.trendvidia.sceneprobe \
--cert "Apple Development: Benedicto Franco Jr. (D68Z8W925S)"
xcrun devicectl device install app --device <UDID> sceneprobe.app
xcrun devicectl device process launch --console --device <UDID> \
--payload-url 'sceneprobe://cold?x=1' com.trendvidia.sceneprobe
Then send it to the background and back: launch another app (for example `devicectl device process launch --device <UDID> com.apple.Preferences`), and launch the probe again without --terminate-existing.