ios - react-native iOS新方案报错: Undefined symbol: _OBJC_CLASS_$_FlipperClient

标签 ios xcode react-native flipper

我在 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/

相关文章:

ios - 为什么我的 uitableview 单元格行重复字幕

ios - Xcode/iOS intern版本号,哪个版本号小?

ios - 如何删除 Xcode 警告 Apple Mach-O Linker Warning 'Pointer not aligned at address

reactjs - react native : Transform Error for Unexpected Token (

ios - 如何让动画旋转同步图像一段时间

ios - UITableView 滚动不流畅

iphone - MKMapView 使用的投影是什么?

ios - Uber iOS App 如何在不将更新推送到 App Store 的情况下更新 App UI?

react-native - react native 溢出和滚动

javascript - 如何使用 TouchableWithoutFeedback 将项目作为参数传递