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

Argument list too long: recursive header expansion failed at #40

Closed
ferbass opened this issue Oct 5, 2016 · 17 comments
Closed

Argument list too long: recursive header expansion failed at #40

ferbass opened this issue Oct 5, 2016 · 17 comments

Comments

@ferbass
Copy link

ferbass commented Oct 5, 2016

I'm receiving the following message when try to build my project

Argument list too long: recursive header expansion failed at /Users/my-project/node_modules/react-native-intercom/iOS/../../../ios/Pods/React/node_modules/react-tools/src/renderers/dom/shared.

I'm trying to link the project manually

Any ideas?

Thank you in advanced

@ferbass ferbass closed this as completed Oct 13, 2016
@zibs
Copy link
Contributor

zibs commented Oct 26, 2016

@ferbass Any idea why you closed this? I'm trying to integrate this library right now and I'm coming up with the same error.

Thanks

@ferbass
Copy link
Author

ferbass commented Nov 8, 2016

@zibs wow maybe i close it by mistake, i can't solve my problem

@ferbass ferbass reopened this Nov 8, 2016
@prithsharma
Copy link

Installing Intercom SDK through pod Intercom(as listed here) instead of pod 'react-native-intercom', :path => '../node_modules/react-native-intercom' solves this problem.
PS - This involves manually linking the library(as listed here) .

@zibs might be useful to add this to the installation instructions. I suppose pod react-native-intercom downloads the full RN wrapper into Pods making the recursive header expansion throw up.

@robwalkerco
Copy link

I had a similar problem with react-native-camera, and to fix it i just removed the library from 'Link Binary With Libraries` then added it again.

@fan2
Copy link

fan2 commented Sep 18, 2017

just shorten the project path/name, and it works for me!

@holmesal
Copy link

It looks like this library recursively searches through $(SRCROOT)/../../../ios (recursive) by default, which can contain a ton of files. Changing the Framework Search Path to $(SRCROOT)/../../../ios/Pods (recursive) solves the problem for me.

Here's the line of code.

And here's what my Framework Search Paths look like, post-fix:

image

FYI, it was my DerivedData folder that was making my arguments list blow up. If I manually nuked that and then did a build it would work fine, but once that folder existed (and it's got many, many files in it) builds would fail as well as cleans with an error message like @ferbass had originally.

@nbomberger
Copy link

nbomberger commented Oct 20, 2017

@holmesal I had the same issue. I had moved my DerivedData folder to be relative the project root in the Preferences->Locations. It allowed me to easily find and blow out the folder. However, when I moved it back to Default, everything worked.

locations

Fixed:
locations

This issue can happen with other dependencies depending on your configuration.

@cooperka
Copy link

Fwiw this commit solved the same error in a similar library:

evollu/react-native-firebase-analytics@e8559a2

@afilp
Copy link

afilp commented Jan 17, 2018

I get the same error in iOS (using Pod). Is there any fix on the library itself or we need to try these fixes one by one? Thanks!

@holmesal I added the Pods text at Framework Search Path but it did not work.

@afilp
Copy link

afilp commented Jan 18, 2018

I get an error for a different file than the OP (@ferbass) mentioned:

It fails at ../../../ios/Pods/React/node_modules/repeat-element with Argument list too long

Actually, I removed the Pod of react-native-camera and the compile succeeded. Could it be because react-native-camera pod has React also as a dependency? If yes, how can this solved? Thanks for any help. So strange that I look here for Intercom problems that are related to another Pod.

@patelbrinda
Copy link

I have follow all the instruction given in (as listed https://github.com/intercom/intercom-ios#cocoapods)

I am facing this issue in build

Argument list too long: recursive header expansion failed at ../node_modules/react-native-intercom/iOS/../../../ios/Pods/React/node_modules/is-buffer.

Argument list too long: recursive header expansion failed at ../node_modules/react-native-intercom/iOS/../../../ios/Pods/React/node_modules/seek-bzip/bin.

failed: No suchfile or directory
No such file or directory
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/$(MY_APP.app)/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Anyone can suggest any solution that will be help

@Xaber20110202
Copy link

  1. open ./node_modules/react-native-intercom/iOS/RNIntercom.xcodeproj/project.pbxproj
  2. follow this change https://github.com/tinycreative/react-native-intercom/pull/163/files

works for me

@peacechen
Copy link

That PR was merged in March, but another one added back the ios/** path and broke it again:
#219

@browniefed I can make a PR to remove the ios/** path, but someone else apparently wants it in. I installed Intercom iOS manually.

@afilp
Copy link

afilp commented Jan 22, 2019

@peacechen Can you please make that PR again and write a description (and link to this issue) why this is really needed?

Maybe the person that took it out was not aware of this problem.

Thanks!

@peacechen
Copy link

peacechen commented Jan 22, 2019

There's been a lot of back & forth on the framework search paths and creating another PR will just continue that cycle. The problems stem from conflicting path requirements for manual linking vs pods.
#163 made the search path more specific (ios/Pods/** instead of ios/**)

However that broke manual linking, so #219 reverted that. That's puzzling because in my case I manually linked and the latest reversion doesn't work.

One fix only works for some cases but breaks it for others. Vice versa for the other fix. I'm starting to suspect that different versions of Xcode or RN may handle this differently.

deecewan added a commit to TandaHQ/react-native-intercom that referenced this issue Mar 14, 2019
This caused problems because expanding that particular path could get
too long, effectively breaking the build.

More information at tinycreative#40
@SMJ93
Copy link

SMJ93 commented Apr 23, 2019

Removing the ios/build directory fixed it for me:

react-native-camera/react-native-camera#1407 (comment)

Sometimes this failed, so we had to update RNIntercom.xcodeproj in xcode:

"YourProj -> Libraries -> RNIntercom.xcodeproj -> build settings -> search paths -> framework search paths:

Screenshot 2019-07-31 at 10 57 05

@Subway19
Copy link

Subway19 commented Oct 8, 2019

Tried everything and nothing works for me :(

Screen Shot 2019-10-08 at 6 15 47 PM

  1. Not using pod
  2. Manually installed intercom-ios

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

No branches or pull requests