React-native-admob: Can't build due to "Argument list too long" error

Created on 7 Nov 2017  路  6Comments  路  Source: sbugert/react-native-admob

When trying to run my app using react-native run-ios, I receive the following error:

=== BUILD TARGET RNAdMobManager OF PROJECT RNAdMobManager WITH CONFIGURATION Debug ===


Check dependencies

Argument list too long: recursive header expansion failed at /Users/gilad/MyProject/node_modules/react-native-admob/ios/../../../ios/Pods/React/node_modules/fsevents/node_modules/ajv/dist.



** BUILD FAILED **

I have the following in my package.json:

    "react-native-admob": "^2.0.0-beta.2",

And inside my Podfile:

  pod 'Google-Mobile-Ads-SDK'

I've tried to clean my build folder, as well as XCode's DerivedData - but it doesn't help...

Most helpful comment

Same here.

Argument list too long: recursive header expansion failed at /Users/patw/Projects/news/node_modules/react-native-admob/ios/../../../ios/Pods/Target Support Files/Pods-news.

--
Update:

I solved by revising Framework SearchPaths in RNAdMobManager.xcodeproj to $(PROJECT_DIR)/../../../ios/Pods.

All 6 comments

Same here.

Argument list too long: recursive header expansion failed at /Users/patw/Projects/news/node_modules/react-native-admob/ios/../../../ios/Pods/Target Support Files/Pods-news.

--
Update:

I solved by revising Framework SearchPaths in RNAdMobManager.xcodeproj to $(PROJECT_DIR)/../../../ios/Pods.

same issue here

Argument list too long: recursive header expansion failed at /Users/dantecervantes/Documents/react-native/FinanceApp/node_modules/react-native-admob/ios/../../../ios/Pods/React/node_modules/react-tools/src/isomorphic.

Same error here :
Argument list too long: recursive header expansion failed at /Users/username/Documents/work/repos/Mobile/node_modules/react-native-admob/ios/../../../ios/Pods/React/node_modules/react-tools/src/renderers/dom/client/__tests__.

any solution ?

same issue

the same issue, I even uninstalled the Xcode, but the issue still hangs there.

Same issue

Argument list too long: recursive header expansion failed at /Users/USERNAME/Documents/work/repos/APPNAME/node_modules/react-native-admob/ios/../../../ios/Pods/React/node_modules/react-tools/src/renderers/dom/client/__tests__.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xencodes picture xencodes  路  5Comments

vu-dang picture vu-dang  路  5Comments

danvass picture danvass  路  6Comments

talaikis picture talaikis  路  3Comments

jonigl picture jonigl  路  4Comments