Repository navigation
fix(ci): repair Android, iOS and macOS example builds - #680
Merged
Merged
Conversation
- Autolink the library in the example app via react-native.config.js; it was not symlinked into node_modules so CI never built its native code - Declare the macOS project for react-native-test-app so run-macos can find it, and pass --scheme Example to the root macos script - Run `pod install` in example/macos (npx pod-install installed ios pods) - Align react-native-macos (0.75 -> 0.76) and react-native (0.76.3 -> 0.76.9); codegen for the 0.75 macOS specs overwrote FBReactNativeSpec and broke the iOS build - Enable newArchEnabled for the Android example; react-native-test-app compiles OnLoad.cpp on RN 0.76, which needs the new-arch autolinking.h - Point the library's gradle at the hoisted react-native - Replace the broken yarn cache step (`yarn cache dir` does not exist in Yarn 4, and set-output is deprecated) with setup-node's `cache: yarn` Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
macos-latest is now macOS 26 with Xcode 26, where the fmt 9.1.0 pod shipped with React Native 0.76 fails with consteval errors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
run-ios launched an iOS 18.5 simulator, which Xcode 16.2 cannot target (xcodebuild exit code 70). CI only needs to verify the build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 16, 2026
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.
Summary
Android, iOS and macOS fail on every PR. The JS checks (lint, flow, tsc) pass. There are no green native runs in the available history. These builds have probably been broken since react-native-test-app was added in #603, which reported no checks.
Root causes and fixes
react-native configlisted onlyreact-native-test-app), so CI wasn't building the picker's native code at allexample/react-native.config.jswithroot: ..react-native-macos@0.75sits in the example deps. Pod-install codegen processes itsFBReactNativeSpecafter react-native's and overwrites it with 0.75 specs, givingno member named 'allowCollapsableChildren' in NativeReactNativeFeatureFlagsreact-native-macosto^0.76andreact-nativeto0.76.9(its peer requirement)OnLoad.cppon RN ≥ 0.76, which includesautolinking.h. The RN Gradle plugin only generates that file when New Architecture is on, so the build failed with'autolinking.h' file not foundnewArchEnabled=truein the example (the RN 0.76 default)build.gradlecouldn't find the hoistedreact-nativeREACT_NATIVE_NODE_MODULES_DIRinexample/android/build.gradlenpx pod-installrun fromexample/macosactually installsexample/iospods. The macOS project wasn't declared inconfigureProjects, and the scheme isExample, not the inferredExample-macOS. Result:Xcode project for macOS not foundpod installdirectly, addmacostoconfigureProjects, pass--scheme Examplemacos-latestis now macOS 26 / Xcode 26. RN 0.76'sfmt9.1.0 pod fails there withcall to consteval function ... is not a constant expression(also on Xcode 16.3+)macos-15and select Xcode 16.2yarn iosboots the newest simulator on the runner (iOS 18.5), which Xcode 16.2 cannot target, so xcodebuild exits with code 70xcodebuild -destination 'generic/platform=iOS Simulator'instead of launching the appyarn cache dirdoesn't exist in Yarn 4, so the cache step cached an error string.set-outputis deprecatedactions/setup-node'scache: yarnVerification (local, Xcode 16.2 / JDK 17)
./gradlew assembleDebug: BUILD SUCCESSFUL. The APK containslibreact_codegen_rnpicker.soxcodebuild: BUILD SUCCEEDED, RNCPicker compiledxcodebuild -scheme Example: BUILD SUCCEEDED (react-native-macos 0.76.12 pods + RNCPicker)yarn validate:eslint,validate:flowandvalidate:typescriptpassAll 12 checks pass on this PR.
Not in this PR
yarn test:jestfails withCannot read properties of undefined (reading 'testEnvironmentOptions'). The root uses Jest 26, but React Native 0.76's jest env needs Jest 29. CI doesn't run Jest, and I believe master fails the same way, though I didn't check it separately.🤖 Generated with Claude Code