首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >参数列表太长:递归头展开失败

参数列表太长:递归头展开失败
EN

Stack Overflow用户
提问于 2018-03-16 10:13:08
回答 1查看 1.7K关注 0票数 3

我有一个Reactive原住民应用程序,它编译得非常好。

在安装react-native-sentry并通过react-native link自动链接之后,我面临以下问题:

代码语言:javascript
复制
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后发生了此错误

Podfile

代码语言:javascript
复制
# 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项目,这个问题总是在我尝试通过可可安装一个新库之后发生的。

EN

回答 1

Stack Overflow用户

发布于 2019-10-12 18:26:58

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

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

参数列表太长:递归头展开失败 在项目的构建设置中,用户搜索头路径和头搜索路径是指定Xcode应该在哪里查找代码中指定的#import头文件的两个信任项。对于Pods,CocoaPods使用一个特定文件夹的默认数组来查找。验证此特定配置没有被覆盖,并且配置的文件夹都没有太大。如果其中一个文件夹是大文件夹,Xcode将尝试递归搜索整个目录,并在某个时候抛出错误。 若要将用户搜索头路径和头搜索路径生成设置的设置还原为CocoaPods设置的默认值,请在“生成设置”面板中选择条目,然后单击“删除”。它将删除自定义覆盖并返回到CocoaPod默认值。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49318129

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档