我在 xcode 中的 react-native 项目中添加了一个新的构建配置 Dev.Debug
,复制了现有的 Debug
配置,并为新配置。
现在,当我尝试使用新方案运行项目时,出现错误:
undefined symbol :_OBJC_CLASS_$_FlipperClient
运行我复制的方案工作正常 - 应用安装、启动和运行正常。
添加新的调试方案后是否需要更多配置?
最佳答案
我发现我需要修改我的 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)
...
关于ios - react-native iOS新方案报错: Undefined symbol: _OBJC_CLASS_$_FlipperClient,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70609829/