React-native-firebase: RNFirebase - Argument list too long

Created on 1 Feb 2018  路  24Comments  路  Source: invertase/react-native-firebase

Building for release and keep getting this error:

Argument list too long: recursive header expansion failed at /Users/DC/Development/pagarony/node_modules/react-native-firebase/ios/../../../ios/Pods/React/node_modules/fsevents/node_modules/isarray.

It occurs under RNFirebase target.
I have gone through some similar issues here, but none did the trick. Any ideas how to silent this error?
Podfile:

platform :ios, '11.0'
target "MyProject" do
  pod 'Firebase/Core'
  pod 'Firebase/Storage'
  pod 'Firebase/Database'
end

Thanks in advance

Environment

Application Target Platform:
iOS

Development Operating System:
Mac OS High Sierra

Build Tools:
command line
XCode 9.2

React Native version:
react-native-cli: 2.0.1
react-native: 0.52.2

RNFirebase Version:
"react-native-firebase": "^3.2.3",

Firebase Module:
Storage

iOS Waiting for User Response

Most helpful comment

In my case,
Deleting "React" folder in "Pods" solved the problem

All 24 comments

Same problem came to me last night

Something happened using cocoapods with RN 0.52

I've tried work around with "firebase frameworks" downloaded from firebase, and import the dependencies directly. Build Successfully, but crashed on app start.

@thedc89 @neeboo Can we see your Podfile please?

@chrisbianca Sure, I edited my question above

@chrisbianca Here's mine

platform :ios, '9.3'
target "MyAwesomeProject" do
pod 'Firebase/Core'
pod 'Firebase/Auth
end

In my case,
Deleting "React" folder in "Pods" solved the problem

I'm unclear why you're having these errors if you're not specifying React as a pod.
Have you in the past? I'd suggest completely deleting your Pods folder (leave your podfile) and re-running pod install.

Closing due to lack of response. Please re-open if this is still an issue and include the details requested above.

I faced same issue and after deleting my Pods folder and re-running pod install, it works! Thanks @chrisbianca

Same problem, no solution posted her has worked. Why would this happen suddenly without touching RNFB?

Same again, recently I solved it by running pod deintegrate and pod install but does not work anymore
zrzut ekranu 2018-02-25 o 19 30 05

I deleted React pod and now I got back this issue
https://github.com/invertase/react-native-firebase/issues/807
This is crazy :(
@chrisbianca i suppose the issue may be reopened

Having the same problem here. Have tried every solution above, also tried manual linking, none of them worked.

my Podfile:

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'

target 'myproject' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for myproject
  pod 'Firebase/Core'

I鈥檓 not quite sure but i think it is related to cocoapods when i came into another problem.

see also here

After I tried these:
sudo gem update
sudo gem install cocoapods
sudo gem install xcodeproj

Then
pod update, clean project and reboot

Then
build

Both problems seem solved

@neeboo unfortunately this did not work for me ;(

@neeboo that didn't work with me either...done updating the pods..

Still having issues, definitely need to remove the React pod dependency from this library and use the node modules version. But having trouble with that process

@evanjmg Have you managed to get rid of this issue?

Yes, I simply removed all my react-* pods and make sure to only use their dependencies as React native will link the node modules for you already

@evanjmg Could you describe step by step what you have done and your final Podfile looks like? This might be very helpful.
When I deleted my React pod from the folder, it started to show the issue described here #807

I didn't have that issue, but try adding subspecs?
pod 'React', :path => '../node_modules/react-native', :subspecs => ['DevSupport']

Required by RNFirebase

pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'Firebase/Messaging'

I had the same issue and following resolved my issue.

remove ios/Pods by rm -rf ios/Pods.
remove Podfile.lock.
remove lines in Podfile that you didn't add but there is.
pod install

The problem is gone.

@benevbright This is ultimately what I did as well. There are bunch of unnecessary pods that got added somewhere in here, and I'm pretty sure it's RNFB. Delete them, delete your pods, clean project, reinstall pods.

@benevbright does not work for me, still getting the issue. To get rid of the error, I use @evanjmg solution, but it eventually ends up with #807. To recap - it remains unsolved. Anybody figured out sth new?

Same here :(

The problem occurs only when node modules for some other libraries are linked in Podfile. After I added all other libraries manually and do not run react-native link, it's all fine

Was this page helpful?
0 / 5 - 0 ratings