Revert "Ship serve-sim camera dylib as data and materialize it at runtime"#7172
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
💤 Files with no reviewable changes (6)
📝 WalkthroughWalkthroughThis change removes macOS-specific serve-sim camera dylib compression and runtime materialization logic. The Changes
Related issues: None found. Related PRs: None found. Suggested labels: area:electron, area:emulator, refactor Suggested reviewers: None found. 🥁 A dylib once wrapped, now unbound and free, 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Reverts #7168. Restores a working macOS release pipeline — #7168 broke it.
The v1.4.120-rc.3 mac release build failed at notarization:
That
…dylib.gz/libSimCameraInjector.dylibpath is Apple's notary service decompressing the gzip and inspecting the dylib inside it, then rejecting the whole app. The core premise of #7168 — that gzipping the dylib makes it plain data that notary won't scan — is false. Apple's notarytool recurses through gzip (and other archive containers), so the unnotarizable iOS-simulator dylib is found regardless of compression, and its presence fails the outer-app notarization.This regression was not caught before merge because local
pnpm build:unpackpackages withnotarize: false, so it never exercised the notarization submission that fails — the same "can't run Apple's real notary locally" blind spot that also let #7077 through.Effect of this revert
Returns
mainto the post-#7165 state, which is exactly the v1.4.120-rc.2 configuration that built and notarized successfully. Issue #6877 (the nested simcam dylib is unnotarized on arm64) is unfixed again and should be reopened; getting mac releases un-blocked takes priority over the fix.Validation
git revertof the squash commitf44cb305applied cleanly; the two new modules and their tests are removed, andafterPack/resolveServeSimExecutablereturn to their pre-Ship serve-sim camera dylib as data and materialize it at runtime #7168 form.grepconfirms zero remaining references tocompressMacServeSimCameraDylibs,serve-sim-camera-packaging, ormaterializeServeSimRuntime.pnpm exec vitest run --config config/vitest.config.ts config/scripts/electron-builder-config.test.mjs— 19 passed.Made with Orca 🐋