Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Contributes an experimental React Native iOS example for Linux as a bounded feasibility result for #364.
The example resolves React Native 0.77.3's native source graph using CocoaPods, compiles Objective-C/C++/Objective-C++ and assembly locally with Linux Clang, archives/links with LLVM tools against an externally supplied Apple SDK, and uses
xtool installfor provisioning, signing and USB installation. The screen runs React 18.3.1 with system JavaScriptCore and the legacy bridge/Paper renderer; its Pressable updates a React state counter.Includes portable tool/SDK configuration, npm/Ruby/Pod lockfiles, two guarded dependency compatibility patches, setup/build instructions, a validation record, and six SDK-free regression checks with a dedicated CI job. No Apple SDK, signing material, compiled app, dependency cache, or raw device logs are included.
This is a separate example adapter, not integration into
xtool dev build. Scope remains experimental: Hermes, the New Architecture, Expo modules, arbitrary pods/build phases/resources, Swift pods, simulator builds and Fast Refresh remain future work. This PR relates to #364 and does not close the broader request.How was it tested?
bash scripts/build.sh(all 684 files, archives and Mach-O arm64 link). Required React Native/JSC symbols were independently verified again.ios/Main.mmandindex.jssources. After a human deletion, device app browsing confirmed absence; xtool then freshly signed/installed this packaged binary and browsing confirmed presence. The human tester confirmed the screen/counter again, corroborated by a fresh log capture recording component startup and counter values 1–4. The input executable hash matched the clean packaged build. Results are recorded inExamples/ReactNativeLinux/VALIDATION.md.python3 -m unittest discover -s tests -v: six passing checks for toolchain/SDK validation, build settings, cache invalidation, compilation failure handling, safe/idempotent dependency patches, and unsupported xcrun queries.make lintwas attempted: the downloaded SwiftLint 0.65.1 binary cannot start on this Omarchy host becauselibxml2.so.2is unavailable. No Swift source changes are included. Core Swift build/tests, macOS and WSL testing were not run locally.Known device limitations are recorded explicitly: Home Screen launch works, automatic
xtool launchreturned a debugserver error, screenshot capture lacked the required developer disk image, and RN emitted a non-fatal startup warning. No automated device UI test is claimed.AI tool usage
The app was exercised by a human on the phone; source review so far has been AI-only. Opening as a draft in accordance with the repository's PR template.