question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Argument list too long: recursive header expansion failed

See original GitHub issue

After integrating react-native-app-auth with our project, our iOS build is now failing with the following error:



Check dependencies

Argument list too long: recursive header expansion failed at /Users/username/app_name/node_modules/react-native-app-auth/ios/../../../ios/build/Index/DataStore/v5/records/UW.

The problem seems to be the result of an overly aggressive HEADER_SEARCH_PATHS build setting causing Xcode to give up after it recurses through too many sub-directories for RNAppAuth’s required header files. Other react native libraries have similar issues reported, and have resolved the issue by modifying HEADER_SEARCH_PATHS to be more specific than the current $(PROJECT_DIR)/../../../ios/**

I tried setting the HEADER_SEARCH_PATHS to $(PROJECT_DIR)/../../../ios/Pods/** but that produced other build errors.

Other libraries with similar problems: https://github.com/react-native-community/react-native-camera/issues/1407 https://github.com/Microsoft/AppCenter-SDK-React-Native/issues/209

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:21 (6 by maintainers)

github_iconTop GitHub Comments

7reactions
kadikramancommented, Aug 9, 2018

This should finally be fixed in v3.0.2. Please let me know is the problem persists.

4reactions
laktarugarcommented, Jun 5, 2018

Hi all, I have fixed this issue for changeng HEADER_SEARCH_PATHS from “$(SRCROOT)/…/…/…/ios/**” to “$(SRCROOT)/…/…/…/ios/Pods/Headers/Public”, “$(SRCROOT)/…/…/…/ios/{rootProjectName}”,

We have main issue with rootProjectName becouse it depends on appDelegate. I have found next line appDelegate.currentAuthorizationFlow = …

I have created the branch with a possible fix. Please check https://github.com/laktarugar/react-native-app-auth/tree/fix/recursive_header

Read more comments on GitHub >

github_iconTop Results From Across the Web

Argument list too long: recursive header expansion failed #1407
Which implementation are you using. I'm using RNCamera. Steps to reproduce. following documentation ( npm install react-native-camera --save); react-native ...
Read more >
Argument list too long: recursive header expansion failed
I ran into a similar issue and had to go in and remove a few header search paths, as described here:.
Read more >
You have to edit your Framework Search Paths of ... - Medium
You have to edit your Framework Search Paths of RNCamera.xcodeproj. Go to,. “Argument list too long: recursive header expansion failed at…
Read more >
Argument list too long: recursive header expansion failed ...
Coding example for the question Argument list too long: recursive header expansion failed react-native-fcm (React Native)
Read more >
Issuehunt
Argument list too long: recursive header expansion failed #1407 · Which implementation are you using · Steps to reproduce · Expected behaviour ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found