React-native-fcm: ERROR: Build fail. Argument list too long

Created on 15 Aug 2016  路  18Comments  路  Source: evollu/react-native-fcm

I added this library and now my XCode project is not building anymore. This is the error i am getting.

image

and this is what i have in Header Search Paths

image

Simply by calling react-native link react-native-fcm and nothing else, this error appears

Most helpful comment

This issue is not fix, so it should be opened again. I have the same issue ad there are no solution still

All 18 comments

It seemed to go away when modifying RNFIRMessaging Header Search Paths... removing $(____)/../../../ios <--

Could you please fix it. I don't know what side effects it might have.

I'm having the exact same issue and I'm having trouble understanding what your fix was.
Did you delete $(SRCROOT)/../node_modules/react-native-fcm/ios?

I created a temporary fix for myself in this way.. https://github.com/evollu/react-native-fcm/compare/master...boltss:master

This is definitely not a correct final fix, but it works with cocoapods for me

looks like your react native code lives in Pods folder?

I had a similar problem:

image

I modified RNFIRMessaging Header Search Paths, but I received another error: "Firebase.h" not found

@LucasBassetti can you show the folder structure under /ios/Pods? I didn't expect the whole react app being there

image

I think the problem is the component react-native-linear-gradient that I'm used.

is react part of your pods?
you can add a exclude in the search path

closing due to inactivity

This issue is not fix, so it should be opened again. I have the same issue ad there are no solution still

^^ Same here.

@tiaaaa123 do you use react native as a Pod?

@evollu can you explain what you mean?

I have just added FirebaseMessaging th my Podsfile (like it says it the docs) and for whatever reason this worked for me for the past but right now I'm getting the same error over and over again.

The whole iOS thing is so frustrating when coming from Android development. Maybe someone can post a working example of all required configurations (Podfile, Search Paths, ...)

@baba43 if you initiate your xcode project using react-native's example, you shouldn't have this issue. But you should get different issue than @LucasBassetti 's error

Guys, same error here as well.

I have the same error, how to fix it? How did you modify search path?

I have this error, how to solve?
Argument list too long: recursive header expansion failed at /Volumes/EATA/work/project/node_modules/react-native-fcm/ios/../../../ios/Pods/React/node_modules/decompress-tar/node_modules/through2.

@brave-merida are you getting the latest version of the repo? it shouldn't search under ios/Pods/React folder anymore

Was this page helpful?
0 / 5 - 0 ratings