react-native-firebase icon indicating copy to clipboard operation
react-native-firebase copied to clipboard

RNFirebase - Argument list too long

Open thedc89 opened this issue 8 years ago • 24 comments

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

thedc89 avatar Feb 01 '18 21:02 thedc89

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.

neeboo avatar Feb 04 '18 07:02 neeboo

@thedc89 @neeboo Can we see your Podfile please?

chrisbianca avatar Feb 04 '18 08:02 chrisbianca

@chrisbianca Sure, I edited my question above

thedc89 avatar Feb 04 '18 08:02 thedc89

@chrisbianca Here's mine

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

neeboo avatar Feb 04 '18 10:02 neeboo

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

khsily avatar Feb 06 '18 01:02 khsily

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 avatar Feb 08 '18 08:02 chrisbianca

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

chrisbianca avatar Feb 15 '18 09:02 chrisbianca

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

yoonsy avatar Feb 23 '18 01:02 yoonsy

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

phil-andrews avatar Feb 24 '18 22:02 phil-andrews

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

thedc89 avatar Feb 25 '18 18:02 thedc89

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'

ethanyuwang avatar Feb 26 '18 19:02 ethanyuwang

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

neeboo avatar Feb 27 '18 20:02 neeboo

@neeboo unfortunately this did not work for me ;(

thedc89 avatar Feb 28 '18 22:02 thedc89

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

mattop1709 avatar Mar 02 '18 10:03 mattop1709

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 avatar Mar 03 '18 19:03 evanjmg

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

thedc89 avatar Mar 07 '18 11:03 thedc89

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 avatar Mar 07 '18 11:03 evanjmg

@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

thedc89 avatar Mar 07 '18 11:03 thedc89

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'

evanjmg avatar Mar 07 '18 11:03 evanjmg

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 avatar Mar 09 '18 14:03 benevbright