Argument list too long: recursive header expansion failed
See original GitHub issueAfter 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:
- Created 5 years ago
- Reactions:1
- Comments:21 (6 by maintainers)
This should finally be fixed in
v3.0.2
. Please let me know is the problem persists.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