react-native-audio-session
react-native-audio-session copied to clipboard
Argument list too long: recursive header expansion failed
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",
I solved by replacing "$(SRCROOT)/../../../ios" at framework search path with "$(SRCROOT)/../../../ios/Pods/react-native-audio-session"
- find and goto RNAudioSession.xcodepro in xcode
- goto target RNAudioSession
- goto build setting
- 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