ios - 参数列表太长 : recursive header expansion failed

标签 ios react-native react-native-ios

我有一个 React Native 应用程序,确实编译得非常好。

安装react-native-sentry 并通过react-native link 自动链接后,我遇到了这个问题:

Showing Recent Issues
Argument list too long: recursive header expansion failed at /Users/dan/Sites/app/node_modules/react-native-intercom/iOS/../../../ios/Pods/React/node_modules/exit-hook.

这个错误发生在我运行pod install

Pod 文件

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'app' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for app
  pod 'AppCenterReactNativeShared', '~> 1.4.0'
  pod 'SentryReactNative', :path => '../node_modules/react-native-sentry'

  platform :ios, '9.0'

  target 'appTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

target 'app-tvOS' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for app-tvOS

  target 'app-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

我根本没有修改 RNIntercom 项目,这个问题总是在我尝试通过 cocoa 安装新库后发生。

最佳答案

我遇到了类似的问题,不得不进入并删除一些标题搜索路径,如下所述:

https://facebook.github.io/react-native/docs/0.60/troubleshooting#argument-list-too-long-recursive-header-expansion-failed

Argument list too long: recursive header expansion failed

In the project's build settings, User Search Header Paths and Header Search Paths are two configs that specify where Xcode should look for #import header files specified in the code. For Pods, CocoaPods uses a default array of specific folders to look in. Verify that this particular config is not overwritten, and that none of the folders configured are too large. If one of the folders is a large folder, Xcode will attempt to recursively search the entire directory and throw above error at some point.

To revert the User Search Header Paths and Header Search Paths build settings to their defaults set by CocoaPods - select the entry in the Build Settings panel, and hit delete. It will remove the custom override and return to the CocoaPod defaults.

error

关于ios - 参数列表太长 : recursive header expansion failed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49318129/

相关文章:

ios - 在启动画面加载 iOS 之前 react native 黑屏

javascript - 如果事件被触发,子组件只能改变父状态吗?

javascript - 需要 Babel "^7.0.0-0",但在react-xml-parser包上加载了 "6.26.3"- 已经尝试了所有当前的解决方案

react-native - 导入的 createStackNavigator 未定义

react-native - React-Native ScrollView 与自定义起始位置的中心对齐

ios - 如何在 Objective C 中将 Swift 类导入为 View Controller 的自定义类

ios - iPhone 6 Plus 分辨率困惑 : Xcode or Apple's website? 用于开发

objective-c - 如何使用btouch在BaiDuMaps for iOS中绑定(bind)@package字段?

ios - 在 subview Controller 之间切换

react-native - 使用 React Native Navigation V2 时关闭推送动画