参数列表太长:递归头扩展失败 [英] Argument list too long: recursive header expansion failed

查看:37
本文介绍了参数列表太长:递归头扩展失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

显示最近的问题参数列表太长:递归头扩展在/Users/dan/Sites/app/node_modules/react-native-intercom/iOS/../../../ios/Pods/React/node_modules/exit-hook 失败.

这个错误是在我运行 pod install

后发生的

Podfile

# 取消下一行的注释,为你的项目定义一个全局平台# 平台:ios,'9.0'目标应用程序"做# 如果您正在使用 Swift 或想使用动态框架,请取消注释下一行# 使用框架!# 应用程序的 Podpod 'AppCenterReactNativeShared', '~>1.4.0'pod 'SentryReactNative', :path =>'../node_modules/react-native-sentry'平台:ios,'9.0'目标appTests"做继承!:search_paths# 用于测试的 Pod结尾结尾目标app-tvOS"做# 如果您正在使用 Swift 或想使用动态框架,请取消注释下一行# 使用框架!# app-tvOS 的 Pod目标 'app-tvOSTests' 做继承!:search_paths# 用于测试的 Pod结尾结尾

我根本没有修改 RNIntercom 项目,这个问题总是在我尝试通过可可安装新库后出现.

解决方案

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

I have a React Native application that did compile absolutely fine.

After installing react-native-sentry and automatically linking via react-native link, I am faced with this problem:

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.

This error occurred after I ran pod install

Podfile

# 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

I've not modified the RNIntercom project at all, this problem always occurs after I try to install a new library via cocoa.

解决方案

I ran into a similar issue and had to go in and remove a few header search paths, as described here:

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.

这篇关于参数列表太长:递归头扩展失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆