Repository navigation
Conversation
|
Important Review skippedWe couldn't safely recover the incremental review. No full review was started, and the last reviewed checkpoint was preserved. Retry later, or explicitly request a full review by commenting You can disable this status message by setting the Use the checkbox below for a quick retry:
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬆️ High Merge Risk: ⚪ Minimal · up to
|
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Docstring Coverage | Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 5 files. | Write docstrings for the functions missing them to satisfy the coverage threshold. | |
| Description check | The description covers the required explanation, changes, rationale, testing, impact, and checklist items. However, the required Linked Issue section is incomplete because it states that no issue exis… | Add a valid linked issue reference in the Linked Issue section, using the required Fixes #<issue-number> format, or create an issue before merging. |
✅ Passed checks (3 passed)
-
Check name Status Explanation Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request. Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request. Title check ✅ Passed The title clearly identifies the mobile iOS 27 launch fix and the main implementation approach: adopting the scene lifecycle.
Full details: Description check
-
Explanation
The description covers the required explanation, changes, rationale, testing, impact, and checklist items. However, the required Linked Issue section is incomplete because it states that no issue exists and leaves
Fixes #empty.
Comment @coderabbitai help to get the list of available commands.
There was a problem hiding this comment.
ℹ️ No critical issues — the iOS 27 launch fix works, with two latent scene-lifecycle gaps and a couple of test/doc nits worth a look.
Reviewed changes — one commit (bf0e0d6), 3 files, entire diff read.
mobile/plugins/ios-scene-lifecycle.js(new): Expo config plugin that writes a single-sceneUIApplicationSceneManifest, strips React Native's window/startReactNativeblock from the generatedAppDelegate.swift, and appends aSceneDelegatethat builds the window from theUIWindowScene, starts RN with the cold-start URL as a launch option, and forwards warm URLs/NSUserActivityto the app delegate.mobile/app.json: registers the plugin, bumpsexpo-build-propertiesios.deploymentTargetto16.0.mobile/scripts/ios-scene-lifecycle-plugin.test.ts(new): tests for the rewrite, idempotency, and loud template-drift failure.
The core mechanism checks out. I verified the WINDOW_BLOCK regex matches Expo SDK 55's real AppDelegate.swift template, the emitted Swift type-checks against the RN 0.83 / Expo SDK 55 APIs, and a cold-start orca:// link reaches React Native's Linking.getInitialURL() through the bridge launch options — which is exactly what mobile/app/_layout.tsx and mobile/app/pair.tsx read, so pairing on cold start is preserved.
ℹ️ Deployment target 16.0 raises the app's floor
This is the right call to compile expo-router under Xcode 27, but it drops the iPhone 6s / 7 / SE 1st gen from future builds. As noted in the PR body, that is a product decision for a maintainer rather than a code defect. Two local podspecs still declare :ios => '15.1' and mobile/modules/orca-mobile-web-shell/ios/MobileWebShellView.swift:206 still cites a 15.1 floor; harmless, but worth tidying for consistency.
Technical details
# iOS floor and leftover 15.1 references
## Affected sites
- `mobile/app.json:112` — `deploymentTarget` 15.1 → 16.0
- `mobile/modules/orca-mobile-web-shell/ios/OrcaMobileWebShell.podspec:10` — `:ios => '15.1'`
- `mobile/modules/orca-notification-dismissal/ios/OrcaNotificationDismissal.podspec:10` — `:ios => '15.1'`
- `mobile/modules/orca-mobile-web-shell/ios/MobileWebShellView.swift:206` — comment cites the 15.1 floor
## Required outcome
- Confirm dropping pre-iOS-16 devices is intended.
- Decide whether the local podspec platforms / comment should follow the app floor (cosmetic; 15.1 pods still build and link into a 16.0 app).
## Open questions for the human (optional)
- Is raising the minimum to 16.0 approved, or should this ship as 15.1 plus an iOS-16-only pod workaround?ℹ️ Nitpicks
- The test's
TEMPLATEconstant is a hand-written paraphrase of Expo SDK 55's realAppDelegate.swift(it omits the// Linking APIand// Universal Linksoverrides andpublicon the class). The regex only depends on the window block, so the transform is still pinned — but a fixture that does not track the real template cannot detect drift in the parts it omits. UIApplication.LaunchOptionsKey.urlis used for the cold-start URL; Expo's current canonical scene delegate builds the same key viaUIApplication.LaunchOptionsKey(rawValue: "UIApplicationLaunchOptionsURLKey"). Same key, so no functional difference — only relevant if a future SDK deprecates the.urlaccessor.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
ℹ️ No critical issues — the pod deployment-target plugin checks out; one minor test-coverage suggestion inline.
Reviewed changes — one new commit (7596304) on top of bf0e0d6. Net additions: a new iOS config plugin, its test, and one app.json entry.
mobile/plugins/ios-pod-deployment-target.js(new): appends apost_installstep afterreact_native_post_install(...)that raises every pod target'sIPHONEOS_DEPLOYMENT_TARGET— never lowers it — topodfile_properties['ios.deploymentTarget'], throwing if the Podfile template stops matching.mobile/app.json: registers the new plugin; keepsexpo-build-propertiesios.deploymentTargetat"16.0".mobile/scripts/ios-pod-deployment-target-plugin.test.ts(new): tests hook placement, raise-only, idempotency, and loud template-drift failure.
I re-ran the transform against Expo SDK 55's real ios/Podfile: POST_INSTALL_CALL matches, the hook lands at the correct indentation inside post_install directly after the React Native call, and a second pass is a no-op; ruby -c parses the result. podfile_properties is a top-level local the template already reads in that same block, and expo-build-properties writes the ios.deploymentTarget key the hook reads. CocoaPods runs the Podfile post_install hook before saving the Pods project, so the mutation persists, and RN's own updateOSDeploymentTarget only raises pods to RN's floor (15.1) — this plugin is what lifts them to the 16.0 that expo-router needs. The prior review's three open threads are on the untouched ios-scene-lifecycle.js plugin and its test, so they are unchanged by this commit and not re-raised.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — one commit (1f9ef2a) on top of the reviewed 7596304: the SceneDelegate in mobile/plugins/ios-scene-lifecycle.js and the two plugin test files.
- Cold-start links now reach the app delegate.
willConnectTomapsconnectionOptions.userActivities.firstinto React Native's launch options and, afterstartReactNative, forwards the launch URL and activity through the app delegate'sopen:/continue:, soexpo-linking's registry (ExpoLinkingRegistry.initialURL) is populated alongside RN'sLinking.getInitialURL(). - Scene lifecycle transitions are forwarded.
sceneDidBecomeActive/sceneWillResignActive/sceneWillEnterForeground/sceneDidEnterBackgroundnow call the app delegate equivalents, whichExpoAppDelegatefans out to Expo subscribers, restoring the foreground/background callbacks UIKit stops sending to the app delegate once a scene manifest exists. - Tests cover the wiring. Added assertions for the generated lifecycle forwards and for both the
ios.infoPlistandios.appDelegatemods; the pod plugin test now exercises the registeredios.podfilemod and theapp.jsonplugin list /deploymentTarget.
I checked the new Swift against the SDK 55 sources: ExpoAppDelegate implements all four lifecycle methods, LinkingAppDelegateSubscriber implements open: / continue: and sets the registry, and RCTLinkingManager.getInitialURL reads exactly the launch-option keys the plugin now writes. RCTLinkingManager short-circuits its app-delegate paths for scene-based apps, so the added forward does not double-post RN's url event. All four prior threads are addressed.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Follow-up to the first Pullfrog review: c12fa53 raises the two local module podspecs ( |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
🟡 Minor · Forward every delivered URL context. · ios-scene-lifecycle.js:36-55
mobile/plugins/ios-scene-lifecycle.js:36-55
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winForward every delivered URL context.
When UIKit supplies more than one URL context,
.firstdrops every later URL. If a later context contains anorca://pairlink, Expo Linking never receives it, so the app does not open that pairing confirmation. Keep the first URL inlaunchOptions, but forward every URL context. Apply the same change toscene(_:openURLContexts:), which also currently keeps only the first URL.Suggested fix
- let url = connectionOptions.urlContexts.first?.url + let urls = connectionOptions.urlContexts.map(\.url) + let url = urls.first ... - if let url { + for url in urls { _ = appDelegate.application(UIApplication.shared, open: url, options: [:]) } ... - guard let context = URLContexts.first else { - return - } - var options: [UIApplication.OpenURLOptionsKey: Any] = [:] - if let source = context.options.sourceApplication { - options[.sourceApplication] = source - } - _ = UIApplication.shared.delegate?.application?( - UIApplication.shared, open: context.url, options: options) + for context in URLContexts { + var options: [UIApplication.OpenURLOptionsKey: Any] = [:] + if let source = context.options.sourceApplication { + options[.sourceApplication] = source + } + _ = UIApplication.shared.delegate?.application?( + UIApplication.shared, open: context.url, options: options) + }
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 860df038-9297-48db-b4ee-9f99c465fa0c
📒 Files selected for processing (3)
mobile/modules/orca-mobile-web-shell/ios/MobileWebShellView.swiftmobile/modules/orca-mobile-web-shell/ios/OrcaMobileWebShell.podspecmobile/modules/orca-notification-dismissal/ios/OrcaNotificationDismissal.podspec
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.
|
@coderabbitai re "Forward every delivered URL context": fixed in 3a58d7d. Cold start still forwards only the first URL, on purpose. React Native's launch options ( Checked on the iOS 27 simulator (Xcode 27): the clean-prebuild Release build succeeds and the app launches. Opening |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — one commit (3a58d7d) on top of the reviewed c12fa53, touching the running-scene URL path in mobile/plugins/ios-scene-lifecycle.js and one assertion in its test.
- Forwarded every URL a running scene receives —
scene(_:openURLContexts:)now iterates all deliveredUIOpenURLContexts, building per-contextsourceApplicationoptions and forwarding each to the app delegate, instead of dropping every context after the first. A secondorca://pairin the same batch now reaches Expo Linking. - Kept the cold-start path single-URL on purpose —
willConnectTostill usesurlContexts.first, with an inline rationale: RN's launch options and Expo'sinitialURLregistry each hold one initial URL, so forwarding more than one would make the two disagree. - Added a test assertion that the emitted delegate loops over
URLContextsand no longer referencesURLContexts.first.
I checked the generated Swift: URLContexts is the internal parameter name for openURLContexts, and cold-start URLs arrive through connectionOptions while warm ones arrive through this method, so the loop cannot double-deliver. This adopts the concern CodeRabbit raised against the previous commit, and the cold-start carve-out is sound. All prior Pullfrog threads remain resolved.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
ast-grep outline mobile/plugins/ios-scene-lifecycle.js --items all
ast-grep outline mobile/scripts/ios-scene-lifecycle-plugin.test.ts --items all
rg -n -C 12 'openURLContexts|URLContexts\.first|for .*URLContexts|initialURL|Cold start|cold start' mobile/plugins/ios-scene-lifecycle.js mobile/scripts/ios-scene-lifecycle-plugin.test.ts
git show --stat --oneline 3a58d7dd94 -- mobile/plugins/ios-scene-lifecycle.js mobile/scripts/ios-scene-lifecycle-plugin.test.tsLength of output: 6466
Your iOS 27 simulator results are encouraging. I did not run the build or tests here. ✏️ Learnings added
If you found this review helpful, would you consider giving us a shout-out on X? Thank you for using CodeRabbit! You are interacting with an AI system. |
13d0709 to
355455c
Compare
355455c to
b4136e4
Compare
An app built with the iOS 27 SDK and no scene manifest traps at launch in UIKit (`_UIApplicationEvaluateRuntimeIssueForNoSceneLifecycleAdoption`). Expo SDK 55's template still builds its window in didFinishLaunching, so every Xcode 27 build of Orca crashed before JS ran. - plugins/ios-scene-lifecycle.js declares a single-scene manifest and moves window creation and React Native startup into a SceneDelegate; cold-start and warm URL/universal links are forwarded to the app delegate so pairing links keep working. It throws if the Expo template changes shape instead of silently skipping. - Raise the iOS deployment target to 16.0: expo-router's LinkPreview uses a UIKit API that is iOS 16+, and Xcode 27 no longer builds pods below 15. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
`ios.deploymentTarget` sets the app target and the Podfile platform, but each pod keeps its podspec minimum (SDWebImage 9.0, RNSVG 12.4, RNCAsyncStorage 13.4, React Native's 15.1). Xcode 27 rejects pods below iOS 15, and expo-router's LinkPreview needs 16, so a clean prebuild still failed. plugins/ios-pod-deployment-target.js appends a post_install step, after react_native_post_install, that raises (never lowers) each pod build configuration to the app's target, and throws if the Podfile template stops matching. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…delegate Once the app declares a scene manifest, UIKit stops sending foreground and background callbacks to the app delegate, so Expo's subscribers never heard them. The scene delegate now forwards all four. A cold-start deep link or universal link now also goes through the app delegate, so expo-linking's initial URL matches React Native's. Tests now run the plugins' registered mods and check the app.json entries, so dropping the wiring fails the suite. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The app floor moved to iOS 16.0; the two local module podspecs and one comment still cited 15.1. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
scene(_:openURLContexts:) forwarded only the first URL context, so a second link delivered in the same batch never reached React Native or expo-linking. It now forwards each one. Cold start still forwards only the first: React Native's launch options and expo-linking's registry each hold a single initial URL. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
b4136e4 to
5e4571b
Compare

ELI5
The iPhone app crashed the moment it opened when built with the newest Xcode (27). Apple now requires apps to use a newer startup style ("scenes"); our app still used the old one. This adds a small build plugin that switches the app to the new style, and bumps the minimum iOS version so the newest Xcode can compile our dependencies.
What Changed
Before: building
mobile/with Xcode 27 (iOS 27 SDK):expo-routerdoes not compile (LinkPreviewNativeActionView.swift:141: 'subtitle' is only available in iOS 16.0 or newer).EXC_BREAKPOINTin UIKit's_UIApplicationEvaluateRuntimeIssueForNoSceneLifecycleAdoption_block_invoke, raised from-[UIApplication workspace:didCreateScene:…].After: the app builds with Xcode 27 and launches and stays running on the iOS 27 simulator.
Mechanism:
mobile/plugins/ios-scene-lifecycle.js, registered inapp.json, applied at prebuild:Info.plist: adds a single-sceneUIApplicationSceneManifestpointing at$(PRODUCT_MODULE_NAME).SceneDelegate.AppDelegate.swift: removes the template'sUIWindow(frame:)+startReactNativeblock fromdidFinishLaunching(the factory is still created there) and appends aSceneDelegatethat creates the window from theUIWindowSceneand starts React Native in it.open:/continue:, so React Native's initial URL andexpo-linking's initial URL agree. It forwards warmopenURLContexts(every URL in the batch) andcontinue userActivityto the same app-delegate handlers. That keepsorca://pair?…and universal links going throughRCTLinkingManagerand Expo's subscribers unchanged.ExpoAppSceneDelegatedoes, so Expo's app-delegate subscribers still hear them.expo-build-properties→ios.deploymentTarget: "16.0". The two local module podspecs (OrcaMobileWebShell,OrcaNotificationDismissal) and one code comment are raised from 15.1 to 16.0 to match.mobile/plugins/ios-pod-deployment-target.js:ios.deploymentTargetalone only moves the app and the Podfileplatform; each pod keeps its podspec minimum (SDWebImage 9.0, RNSVG 12.4, RNCAsyncStorage 13.4, React Native 15.1). The plugin appends apost_installstep afterreact_native_post_installthat raises — never lowers — every pod build configuration to the app's target, and throws if the Podfile template stops matching.Why
ios/folder:mobile/iosis generated and gitignored; the repo already customizes native output throughplugins/(e.g.android-respect-rotation-lock.js).ExpoAppDelegatehas no scene support yet (// TODO: - Configuring and Discarding Scenes), so there is no upstream flag to flip. When Expo ships scene support in its template, the plugin's template check will fail loudly and it can be removed.expo-routeras shipped; iOS 15 is well outside current support, and Xcode 27's own floor is 15.0.Linked Issue
No existing issue — found while building the mobile app with Xcode 27.
Visual Proof
N/A for UI: nothing on screen changes. Evidence is launch behavior — before: crash report
EXC_BREAKPOINTin_UIApplicationEvaluateRuntimeIssueForNoSceneLifecycleAdoption; after: process alive after launch on iPhone 18 Pro simulator (iOS 27.0), no new crash report.Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
From a clean
expo prebuild --platform ios --clean(no hand edits): all 308 pod build configurations land on16.0and the scene delegate is generated.macOS 26.6.2, Xcode 27.0, iOS 27.0 simulator: Release simulator build
** BUILD SUCCEEDED **; install + launch; process still running 20s later; no newDiagnosticReportsentry. Before the change the same build crashed at launch every time.Both plugins verified against Expo SDK 55's actual template (
expo/template.tgz→ios/HelloWorld/AppDelegate.swiftandios/Podfile): window block removed, second application is a no-op.New
mobile/scripts/ios-scene-lifecycle-plugin.test.ts(7 tests) andios-pod-deployment-target-plugin.test.ts(6 tests). They cover the rewrite and hook placement, raise-only, idempotency, and a loud failure on template drift. They also run each plugin's registeredinfoPlist/appDelegate/podfilemod and check theapp.jsonentries, so removing any of that wiring fails the suite. Lint/format and the changed-code quality gate pass.Cold start: terminated the app, then
xcrun simctl openurl … 'orca://pair?code=…'launched it straight into the pairing screen (it rejected the dummy code as expected).Warm link:
simctl openurlon the running app shows iOS's "Open in Orca?" prompt and routes to pairing.Background/foreground: switched to Settings and back. The app kept the same process, and UIKit logged
UIApplicationWillEnterForegroundNotificationand thenapplicationDidBecomeActive.Not yet verified: a physical device, and a fresh iOS build after the last commit, which only raises the two local podspec minimums to the app's 16.0 target (the plugin tests pass).
Android: unaffected (iOS-only plugin and property).
AI Disclosure
Implemented with Claude Code (Claude Opus 5.5), reviewed and tested by the author.
Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
UIApplicationSupportsMultipleScenesisfalse: behavior stays single-window; iPad multi-window is out of scope.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred) — the mobile plugin tests, lint/format and the changed-code quality gate pass locally; the full desktop suite and build are left to CI because this change touches onlymobile/.🤖 Generated with Claude Code