react-native-audio-session icon indicating copy to clipboard operation
react-native-audio-session copied to clipboard

Argument list too long: recursive header expansion failed

Open vishalsiddhi opened this issue 4 years ago • 1 comments

Screenshot 2020-08-28 at 6 10 14 PM

Argument list too long: recursive header expansion failed at /Users/iPhone/../../../../node_modules/react-native-audio-session/ios/../../../ios/Pods/React/node_modules/acorn-jsx/node_modules/acorn/src/loose.

Getting this error after linking.

Please help me to fix this issue.

"react-native-audio-session": "0.0.4", "react-native": "^0.59.10", "xcode": "11.3",

vishalsiddhi avatar Aug 28 '20 12:08 vishalsiddhi

I solved by replacing "$(SRCROOT)/../../../ios" at framework search path with "$(SRCROOT)/../../../ios/Pods/react-native-audio-session"

  1. find and goto RNAudioSession.xcodepro in xcode
  2. goto target RNAudioSession
  3. goto build setting
  4. replace "$(SRCROOT)/../../../ios" at framework search path with "$(SRCROOT)/../../../ios/Pods/react-native-audio-session"

Ref : https://github.com/react-native-community/react-native-camera/issues/1407#issuecomment-379152596

vishalsiddhi avatar Aug 28 '20 12:08 vishalsiddhi