Ios 参数列表太长:递归标头扩展失败
我有一个React本机应用程序,它编译得非常好 安装Ios 参数列表太长:递归标头扩展失败,ios,react-native,react-native-ios,Ios,React Native,React Native Ios,我有一个React本机应用程序,它编译得非常好 安装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/nod
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安装后
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项目,这个问题总是在我尝试通过cocoa安装一个新库后出现。我遇到了类似的问题,不得不进入并删除一些标题搜索路径,如下所述: 参数列表太长:递归标头扩展失败 在 项目的生成设置、用户搜索标题路径和标题搜索 路径是两个配置,指定Xcode应在何处查找#导入 代码中指定的头文件。对于Pods,CocoaPods使用默认值 要查找的特定文件夹的数组。验证此特定的 配置未被覆盖,并且未配置任何文件夹 太大了。如果其中一个文件夹是大文件夹,Xcode将尝试 递归搜索整个目录,并在 有一点 还原用户搜索标题路径和标题搜索路径的步骤 设置为CocoaPods设置的默认值-在 “生成设置”面板,然后单击“删除”。它将删除该自定义项 覆盖并返回CocoaPod默认值
我想这个链接会对你有所帮助。谢谢,我会尝试一下,让你知道答案outcome@NisargThakkar不幸的是,它不起作用,我没有使用CoCoapod进行对讲。我将其嵌入为一个框架。我尝试了
SRCROOT
答案,但也不起作用。该问题并非特定于库,它会在Intercom和AppCenterReactNativepod之间切换。安装时会覆盖一些文件,这些文件可能在您的gitignore中,因此它将不起作用,即使您将面临问题的每个更改都还原。最近,我在实现codepush时遇到了类似的问题。我必须重置所有内容,然后返回并手动链接codepush。