-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Argument list too long: recursive header expansion failed #1407
Comments
I am getting the same issue. Fingers crossed for a quick fix. Thanks for all your stellar work on this project. |
@nikolas7892 I was able to get my project to build by removing the build folder ( |
@jim-at-jibba did this solve permanently your problem? |
Try to clean the project, restart xcode and build. |
@jgfidelis I solved my problem enough to push a build to Testflight. That was the end of the day so we will see this morning 😄 |
I have added Pods at frame relative paths and also replace master repo at package.json but still: |
I solved by replacing "$(SRCROOT)/../../../ios" at both framework search and header search paths with "$(SRCROOT)/../../../ios/Pods/react-native-camera" and added "React and Yoga" to my pod file, works for me. pod 'React', :path => '../node_modules/react-native', :subspecs => ['Core'] |
that didn't do the fix for me - anyone have alternative suggestions on a fix using a manual install instructions? |
Remove/Uninstall 'react-native-camera' from podfile, and if Pod target file has 'react-native-camera', remove this as well and try. |
Deleting the DerivedData folder manually worked for me |
Tried deleting build folder and rebuild, also tried deleting DerivedData. Still got this error when building. |
Same here, it was working fine before I integrated firebase. |
I got the same error, after install Carthage module for the first time.
|
I solved with deleting framework / header search path in camera project. |
Getting the same issue, nothing works for me tried all solutions |
have the same issue, deleting derived directory doesn't help |
Hi everyone, I was experiencing this issue on my companies react native project due to recursive search in the Pods directory here: This causes xcode to look through literally every directory in your projects ios directory. As a temporary fix I've added a postinstall script that executes the following command:
|
I got it fixed after adding $(SRCROOT)/../node_modules/react-native/React in the Header Search Paths in RNCamera project. |
I had version 0.12.0, then I tried to upgrade to 1.1.4 and got the "Argument list..." error. Tried all solutions in this issue, but only suceeded when I removed all references to RNCamera and RCTCamera in Manual install didn't worked for me, even when I removed |
I had version 0.12.0, then I tried to upgrade to 1.1.4 and got the "Argument list..." error. |
I deleted the "ios/build" folder and executed "react-native run-ios" and it worked! |
This happened to me after following the cocoapods based install instructions. Fixed it by:
Clean project and rebuild. |
Thanks @dmitry-salnikov for that super handy script!!! That allowed us to build, however we use wixs cat "${SRC_FILE}" | grep -A 4 FRAMEWORK_SEARCH_PATHS
cat "${SRC_FILE}" | grep -A 3 HEADER_SEARCH_PATHS
cat "${SRC_FILE}" | grep -A 4 LIBRARY_SEARCH_PATHS
perl -i -p0e 's/FRAMEWORK_SEARCH_PATHS = (.*?);/FRAMEWORK_SEARCH_PATHS = "\$(SRCROOT)\/..\/..\/..\/ios\/Pods\/Headers\/**\/**";/gs' ${SRC_FILE}
perl -i -p0e 's/HEADER_SEARCH_PATHS = (.*?);/HEADER_SEARCH_PATHS = "\$(SRCROOT)\/..\/..\/react-native\/React\/**";/gs' ${SRC_FILE}
perl -i -p0e 's/LIBRARY_SEARCH_PATHS = (.*?);/LIBRARY_SEARCH_PATHS = "\$(SRCROOT)\/..\/..\/..\/ios\/Pods\/Headers\/**\/**";/gs' ${SRC_FILE}
echo "Check after fix:"
cat "${SRC_FILE}" | grep FRAMEWORK_SEARCH_PATHS
cat "${SRC_FILE}" | grep HEADER_SEARCH_PATHS
cat "${SRC_FILE}" | grep LIBRARY_SEARCH_PATHS |
@cihadturhan Please let me know have you fixed this issue .. I'm facing the same issue when integrating firebase .. |
I am also having issue, have firebase installed as well! |
Try |
@sibelius Can this by fixed by adjusting the |
Maybe we can fix here, but it should work on both normal projects and podfile projects |
I tried removed Now I switched over to XCODE and build it, I'm hitting the same problem again. Anyone have idea how to deal with it? |
I remove the framework search paths values and add header search paths with the path $(SRCROOT)/../../react-native/React & $(SRCROOT)/../../React in the RNCamera.xcodeproj to fix it |
This worked for me. Xcode -> Your Project -> Libraries -> RNCamera.xcodeproj -> Build Settings -> Framework Search Paths |
@Mohammad-Khalid23 Thank you for the detailed instructions! This worked for me after manual ios installation (no pods). For anyone browsing this issue for a solution, try Mohammad's solution first as it is dead simple and well explained. |
Had a similar issue which was solved by opening (and building) the |
@Mohammad-Khalid23 Thank you. this solution is the answer. Don't reset the git often. |
Where did you do these changes please? |
use autolinking with v3 |
under @sibelius autolinking did not work and I am using cocoapods after using the above solution, I had to solve |
Works for me. Saved my day. Thanks. |
Just noting that there's a mention of this issue in the official documentation: |
in my case, this way works for me. thank you |
Which implementation are you using
I'm using RNCamera
Steps to reproduce
Expected behaviour
I get a build fail and see the following
Argument list too long: recursive header expansion failed at /Users/USER/APP/node_modules/react-native-camera/ios/../../../ios/build/Index/DataStore/v5/records/1G.
Actual behaviour
FAILED BUILD
Environment
react-native-camera
Version: "master"
The text was updated successfully, but these errors were encountered: