Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RNFirebase - Argument list too long #808

Closed
thedc89 opened this issue Feb 1, 2018 · 24 comments
Closed

RNFirebase - Argument list too long #808

thedc89 opened this issue Feb 1, 2018 · 24 comments
Labels

Comments

@thedc89
Copy link

thedc89 commented Feb 1, 2018

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

@neeboo
Copy link

neeboo commented Feb 4, 2018

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.

@chrisbianca
Copy link
Contributor

@thedc89 @neeboo Can we see your Podfile please?

@thedc89
Copy link
Author

thedc89 commented Feb 4, 2018

@chrisbianca Sure, I edited my question above

@neeboo
Copy link

neeboo commented Feb 4, 2018

@chrisbianca Here's mine

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

@khsily
Copy link

khsily commented Feb 6, 2018

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

@chrisbianca
Copy link
Contributor

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.

@chrisbianca
Copy link
Contributor

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

@yoonsy
Copy link

yoonsy commented Feb 23, 2018

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

@phil-andrews
Copy link

phil-andrews commented Feb 24, 2018

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

@thedc89
Copy link
Author

thedc89 commented Feb 25, 2018

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
#807
This is crazy :(
@chrisbianca i suppose the issue may be reopened

@ethanyuwang
Copy link

ethanyuwang commented Feb 26, 2018

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'

@neeboo
Copy link

neeboo commented Feb 27, 2018

I’m 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

@thedc89
Copy link
Author

thedc89 commented Feb 28, 2018

@neeboo unfortunately this did not work for me ;(

@mattop1709
Copy link

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

@evanjmg
Copy link

evanjmg commented Mar 3, 2018

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

@thedc89
Copy link
Author

thedc89 commented Mar 7, 2018

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

@evanjmg
Copy link

evanjmg commented Mar 7, 2018

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

@thedc89
Copy link
Author

thedc89 commented Mar 7, 2018

@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

@evanjmg
Copy link

evanjmg commented Mar 7, 2018

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'

@benevbright
Copy link

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.

@phil-andrews
Copy link

@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.

@thedc89
Copy link
Author

thedc89 commented Mar 26, 2018

@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?

@srameshr
Copy link

srameshr commented Jun 6, 2018

Same here :(

@thedc89
Copy link
Author

thedc89 commented Jul 5, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests