React-native-admob: Argument list too long: recursive header expansion

Created on 27 May 2018  路  6Comments  路  Source: sbugert/react-native-admob

hi ,
i search i lot and try all solutions but not work's
Argument list too long: recursive header expansion failed at /Users/user/Desktop/project/node_modules/react-native-admob/ios/../../../ios/Pods/React/node_modules/react-tools/src/shared.

this error shows after i update pod
and this my podfile content

Uncomment the next line to define a global platform for your project

platform :ios, '9.0'

target 'project' do

pod 'Google-Mobile-Ads-SDK'

pod 'RNDeviceInfo', :path => '../node_modules/react-native-device-info'

end

Most helpful comment

@abhaypai2611 modify the following file:
node_modules/react-native-admob/ios/RNAdMobManager.xcodeproj/project.pbxproj

Line 256 and 270 modify to:
FRAMEWORK_SEARCH_PATHS = "$(PROJECT_DIR)/../../../ios/Pods/**";

All 6 comments

instead of Pods/** i add Pods/Google-Mobile-Ads-SDK
and it's work , thanks

@bhram : Can you please elaborate the solution ?

@abhaypai2611 modify the following file:
node_modules/react-native-admob/ios/RNAdMobManager.xcodeproj/project.pbxproj

Line 256 and 270 modify to:
FRAMEWORK_SEARCH_PATHS = "$(PROJECT_DIR)/../../../ios/Pods/**";

The file is already fixed in last commits but still not pushed on npm

Still having the problem with the FRAMEWORK_SEARCH_PATHS updated:

Argument list too long: recursive header expansion failed at /path/to/project/node_modules/react-native-admob/ios/../../../ios/Pods/React/node_modules/lazystream/test.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

giladno picture giladno  路  6Comments

talaikis picture talaikis  路  3Comments

xencodes picture xencodes  路  4Comments

priya-vr picture priya-vr  路  3Comments

danvass picture danvass  路  6Comments