Can Any one tell why this error occur and how to resolve it
Check Dependencies
Argument list too long: recursive header expansion failed at
I just removed all entries under framework search paths. It works fine, in some other cases you may need to enable always search user paths flag to true.
in my case the error was empty variable in "Header Search Paths" field (in project information) with recursion enabled.
This lead to pass value "/**" to a tool.
In my case, deleting the build folder worked.
rm -rf ios/build
In the Project build settings Framework Search Paths I replaced:
/Users/My.Name/Documents/My-Project/**
with
/Users/My.Name/Documents/My-Project/
For future folks ... I faced this issue for a different reason.
Just check in your Project Settings
that Build System
is set to New Build System (Default)
Happy Coding
If you are using react native and run into this error, this helped me:
I had to use react-native unlink xxx
to unlink the library i was trying to add which caused this error to occur (funny enough the error was about a different library not the one i just added)
After unlinking i followed the steps the library explained in its readme on how to add it manually without using the react native link, then it was happy after that.
Saw on reddit that a lot of people been complaining that react-native link
breaks quite often and causes problems like this