react-native-auto-updater icon indicating copy to clipboard operation
react-native-auto-updater copied to clipboard

Argument list too long

Open besarthoxhaj opened this issue 10 years ago • 11 comments

Xcode keeps throwing the following error: Argument list too long: recursive header expansion failed at /Users/besartshyti/Desktop/Awesome/node_modules/react-native-auto-updater/ios/../../react-native/node_modules/babel-plugin-transform-es2015-computed-properties/node_modules/babel-template/node_modules/babel-traverse/node_modules/babel-code-frame/lib.

Just started a new project and installed through npm. Tried to link the libraries with rnpm link and also manually following the README. Nothing so far.

Any suggestion?

I'm using react-native 0.19

besarthoxhaj avatar Feb 01 '16 03:02 besarthoxhaj

@besarthoxhaj I haven't upgraded to React Native 0.19 yet, but remove the "recursive" option in the "Search Header Paths" for the project and see if it works?

I suspect that this problem is arising because the way react-native 0.19 and npm 3.x organizes packages. I have a feeling it is creating a symlink to a parent folder at some level.

rahuljiresal avatar Feb 01 '16 18:02 rahuljiresal

@besarthoxhaj @rahuljiresal I got the same problem. Will try to downgrade react-native and see what happens.

However I would like to use 0.19. Is there some way to fix this? I tried remove "recursive" but nothing.

izaakrogan avatar Feb 01 '16 18:02 izaakrogan

@rahuljiresal got the same error on 0.18. Am I doing something else wrong?

besarthoxhaj avatar Feb 01 '16 19:02 besarthoxhaj

@besarthoxhaj Upgraded to RN 0.19 and using npm v 3.3.12. Works fine on the old Example project I have set up on my machine. Also tried a new project from scratch. Builds and runs perfectly fine.

Did you try Cleaning the project, quitting Xcode and restarting it?

rahuljiresal avatar Feb 01 '16 19:02 rahuljiresal

@rahuljiresal tried again today, no luck! I will keep going and hopefully come and report the solution.

besarthoxhaj avatar Feb 03 '16 21:02 besarthoxhaj

in your project, select RectNativeAutoUpdater.xcodeproj then select Build Settings->Search Paths->Header Search Paths->keep "$(SRCROOT)/../../react-native/React recursive" only. delete another path. it's will ok.

xuming314 avatar Feb 06 '16 14:02 xuming314

+1 Also got this error with React Native 0.19.0

Argument list too long: recursive header expansion failed at /Users/rjbaker/Documents/Development/ios/HazardsReact/node_modules/react-native-auto-updater/ios/../../react-native/node_modules/babel-plugin-transform-es2015-computed-properties/node_modules/babel-helper-define-map/node_modules/babel-helper-function-name/node_modules/babel-helper-get-function-arity.

rjbaker avatar Feb 06 '16 22:02 rjbaker

Fixed this in pull request #13

rjbaker avatar Feb 08 '16 11:02 rjbaker

thanks @xuming314 that solved my problem!

  • create a new project awesome
  • installed react-native-auto-updater
  • followed the instruction to link the library
  • failed with error Argument list too long
  • went to RectNativeAutoUpdater.xcodeproj
  • deleted all the search paths and added $(SRCROOT)/../../react-native/React recursive

it worked!

besarthoxhaj avatar Feb 08 '16 21:02 besarthoxhaj

@rahuljiresal I saw your comment on https://github.com/aerofs/react-native-auto-updater/pull/13

I'm a bit confused, is this not the right solution?

besarthoxhaj avatar Feb 08 '16 21:02 besarthoxhaj

This issue has been fixed and a new version 0.2.1 has been pushed to npm.

rahuljiresal avatar Feb 09 '16 16:02 rahuljiresal