React-native-camera: Argument list too long: recursive header expansion failed

Created on 19 Jun 2018  路  3Comments  路  Source: react-native-camera/react-native-camera

React native camera 1.1.4
i followed the instruction and manually link for ios no face detection setup.
but when i build the project, i got this error

Argument list too long: recursive header expansion failed

can someone share the solution?

Most helpful comment

I opened a ticket about this a few months ago, and it was closed stating it was fixed, but this was not fixed for me.

You need to go to Xcode -> Libraries -> RNCamera.xcodeproj -> Framework Search Paths

this works for me: $(SRCROOT)/../../ios and I need to change it from $(SRCROOT)/../../../ios

But this isn't a great solution, as you need to do this after everytime you run npm/yarn install

All 3 comments

I opened a ticket about this a few months ago, and it was closed stating it was fixed, but this was not fixed for me.

You need to go to Xcode -> Libraries -> RNCamera.xcodeproj -> Framework Search Paths

this works for me: $(SRCROOT)/../../ios and I need to change it from $(SRCROOT)/../../../ios

But this isn't a great solution, as you need to do this after everytime you run npm/yarn install

@JindiHu Did you look into issue #1407? I managed to install without face detection by installing via CocoaPods, as explained here.

Was this page helpful?
0 / 5 - 0 ratings