Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react-native iOS new scheme error: Undefined symbol: _OBJC_CLASS_$_FlipperClient

I added a new build configuration, Dev.Debug to my react-native project in xcode, duplicating the existing Debug configuration, and also added a corresponding scheme for the new configuration.

Now when I attempt to run the project with the new scheme I get the error:

Undefined symbol: _OBJC_CLASS_$_FlipperClient

Running the scheme that I duplicated works fine - the app installs, launches, and functions normally.

Is there any more configuration required after adding a new debug scheme?

like image 743
OffensivelyBad Avatar asked Jan 01 '26 01:01

OffensivelyBad


1 Answers

I found that I needed to modify my podfile as follows:

...

target 'MyApp' do
  config = use_native_modules!
  
  # Add the project and build configurations
  project 'MyApp',
    'Dev.Debug' => :debug, # '{Build Configuration name}' => :{debug or release}
    'Debug' => :debug,
    'Dev.Release' => :release,
    'Release' => :release
...

use_flipper!({'Flipper' => '0.126.0', configurations: ['Debug', 'Dev.Debug']}) # Add the Build Configuration name (not scheme name)

...
like image 106
OffensivelyBad Avatar answered Jan 04 '26 18:01

OffensivelyBad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!