Repository navigation
RNTester's RCTBlobManagerTests fail on main: setUp sets the bridge key that #59250 removed #59597
Description
Description
#59250 removed @synthesize bridge = _bridge; from RCTBlobManager.mm. RNTesterUnitTests/RCTBlobManagerTests.m still sets that property by key in its setUp, [_module setValue:nil forKey:@"bridge"]; (L30), so every test in the class fails with NSUnknownKeyException before it runs: testCreateFromParts, testRemove, testResolve, testResolveMap and testResolveURL. No CI job runs RNTester's iOS unit tests (#59596), so nothing reports it.
Steps to reproduce
- In
packages/rn-tester:bundle install, thenbundle exec pod install. xcodebuild test -workspace RNTesterPods.xcworkspace -scheme RNTester -configuration Debug -destination <an iOS device or simulator> -only-testing:RNTesterUnitTests/RCTBlobManagerTests
Expected: the five tests pass.
Seen: each fails at setUp's line 30.
I ran it on an iPhone 12 Pro Max (iOS 27.0.1, Xcode 27.1, macOS 27.0.1) at main 42ba24a; RCTBlobManagerTests.m and RCTBlobManager.mm are unchanged from there to c12d0b3.
React Native Version
main (c12d0b3)
Affected Platforms
Runtime - iOS
Output of npx @react-native-community/cli info
Not applicable: these are RNTester's own unit tests in this repository.
Stacktrace or Logs
One line per test, from the run at 42ba24a:
RCTBlobManagerTests.m:30: error: -[RCTBlobManagerTests testCreateFromParts] : [<RCTBlobManager 0x109b23560> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key bridge. (NSUnknownKeyException)
RCTBlobManagerTests.m:30: error: -[RCTBlobManagerTests testRemove] : [<RCTBlobManager 0x109bcc3f0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key bridge. (NSUnknownKeyException)
RCTBlobManagerTests.m:30: error: -[RCTBlobManagerTests testResolve] : [<RCTBlobManager 0x109b3f0d0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key bridge. (NSUnknownKeyException)
RCTBlobManagerTests.m:30: error: -[RCTBlobManagerTests testResolveMap] : [<RCTBlobManager 0x109b4fcf0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key bridge. (NSUnknownKeyException)
RCTBlobManagerTests.m:30: error: -[RCTBlobManagerTests testResolveURL] : [<RCTBlobManager 0x109b41b70> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key bridge. (NSUnknownKeyException)
MANDATORY Reproducer
RNTester's own test, failing on main:
| [_module setValue:nil forKey:@"bridge"]; |
Screenshots and Videos
No response
Activity
react-native-bot commentedon Oct 29, 2026
Warning
Missing reproducer: We could not detect a reproducible example in your issue report. Reproducers are mandatory and we can accept only one of those as a valid reproducer:
You can read more about about it on our website: How to report a bug.
YevheniiKotyrlo commentedon Oct 29, 2026
The reproducer is RNTester's own
RCTBlobManagerTests, failing onmainsince #59250: the body has the command and each test's failure, from a device run at 42ba24a with both files unchanged at c12d0b3.