Skip to content

RNTester's RCTBlobManagerTests fail on main: setUp sets the bridge key that #59250 removed #59597

Closed

Description

@YevheniiKotyrlo

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

  1. In packages/rn-tester: bundle install, then bundle exec pod install.
  2. 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"];
, since #59250

Screenshots and Videos

No response

Activity

  1. react-native-bot commented on Oct 29, 2026

    @react-native-bot
    Collaborator

    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.

  2. YevheniiKotyrlo commented on Oct 29, 2026

    @YevheniiKotyrlo
    ContributorAuthor

    The reproducer is RNTester's own RCTBlobManagerTests, failing on main since #59250: the body has the command and each test's failure, from a device run at 42ba24a with both files unchanged at c12d0b3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: AttentionIssues where the author has responded to feedback.Needs: ReproThis issue could be improved with a clear list of steps to reproduce the issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions