我有一个Reactive原住民应用程序,它编译得非常好。
在安装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后发生了此错误
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我根本没有修改RNIntercom项目,这个问题总是在我尝试通过可可安装一个新库之后发生的。
发布于 2019-10-12 18:26:58
我遇到了一个类似的问题,不得不进入并删除一些头搜索路径,如下所述:
参数列表太长:递归头展开失败 在项目的构建设置中,用户搜索头路径和头搜索路径是指定Xcode应该在哪里查找代码中指定的#import头文件的两个信任项。对于Pods,CocoaPods使用一个特定文件夹的默认数组来查找。验证此特定配置没有被覆盖,并且配置的文件夹都没有太大。如果其中一个文件夹是大文件夹,Xcode将尝试递归搜索整个目录,并在某个时候抛出错误。 若要将用户搜索头路径和头搜索路径生成设置的设置还原为CocoaPods设置的默认值,请在“生成设置”面板中选择条目,然后单击“删除”。它将删除自定义覆盖并返回到CocoaPod默认值。

https://stackoverflow.com/questions/49318129
复制相似问题