【发布时间】:2018-03-16 10:13:08
【问题描述】:
我有一个 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之后
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安装新库后出现。
【问题讨论】:
-
谢谢,我试试看结果告诉你
-
@NisargThakkar 不幸的是,它没有用,我没有使用 cocoapods 进行对讲。我已将其嵌入为框架。我尝试了
SRCROOT答案,但也没有用。 -
问题不是库特有的,它在 Intercom 和 AppCenterReactNative 之间切换
-
pod install 会覆盖一些可能在 gitignore 中的文件,所以它不会起作用,即使你还原每一个更改,你也会遇到问题。最近我在实现 codepush 时遇到了类似的问题。我不得不重置所有内容并返回并手动链接 codepush。
标签: ios react-native react-native-ios