0

我在 xcode 中的 react-native 项目中添加了一个新的构建配置,Dev.Debug复制了现有Debug配置,还为新配置添加了相应的方案。

现在,当我尝试使用新方案运行项目时,出现错误:

Undefined symbol: _OBJC_CLASS_$_FlipperClient

运行我复制的方案可以正常运行 - 应用程序安装、启动和运行正常。

添加新的调试方案后是否需要更多配置?

4

1 回答 1

0

我发现我需要修改我的 podfile 如下:

...

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)

...
于 2022-01-06T15:53:39.533 回答