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 solved by revising Framework SearchPaths in .xcodeproj to
$(PROJECT_DIR)/../../../ios/Pods.
the only thing to remove is search path from project information this solves my problem
I'll share another scenario where you can have the same error.
I had the same problem in my case was related with the Derived Data. After clean the Derived Data folder the problem disappeared.
A different solution for me. I am using a static lib in my XCode project. In XCode preferences > Source trees I set up the lib as follows:
Setting Name: MY_IPHONE_LIB
Display Name: MY_IPHONE_LIB
Path: ../../MyIphoneLib
Then in the project and target build options User Header Search Paths I add recursive path to $(MY_IPHONE_LIB) this shows as ../../MyIphoneLib** in the build settings
My problem was I had a trailing space after the path in project trees so instead of "../../MyIphoneLib" I had entered "../../MyIphoneLib "
So this all looked fine in the settings but I got the 'argument list too long' error for a completely unrelated file!. Removing the trailing space fixed it.