react-native-fcm: Error: Argument list too long: recursive header

This error appears when I try to build my app. Any suggestions on how to fix it are appreciated.

Error: Showing All Messages Argument list too long: recursive header expansion failed at …/node_modules/react-native-fcm/ios/…/…/…/ios/Pods/React/node_modules/resolve/test/dotdot/abc.

  1. What version of RN and react-native-fcm are you running? “react-native”: “^0.44.0”, “react-native-fcm”: “^10.0.3”

  2. What device are you using? (e.g iOS9 emulator, Android 6 device)? iOS11

  3. Is your app running in foreground, background or not running? I can not start my app. I can not get the app to boot after upgrading fcm, my old version also no longer worked. I used the Cocoa Pods install method.

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

  # Pods for Stripe
pod 'Stripe', '~> 11.2.0'
pod 'CodePush', :path => '../node_modules/react-native-code-push'
# Pods for CodePush
  # Your 'node_modules' directory is probably in the root of your project,
  # but if not, adjust the `:path` accordingly
  pod 'React', :path => '../node_modules/react-native', :subspecs => [
    'Core',
    'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
    'RCTText',
    'RCTNetwork',
    'RCTWebSocket', # needed for debugging
    # Add any other subspecs you want to use in your project
  ]
# Explicitly include Yoga if you are using RN >= 0.42.0
 pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
 pod 'FirebaseMessaging'

# inherit! :search_paths

end

screenshot 2017-12-11 12 05 24

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

I have the same issue with react-native-fcm, how to fix that?

@Ghostrick can you try the master branch or provide a repo with this issue?