google-signin: Getting Cannot find type 'ExpoAppDelegateSubscriber' in scope after upgrade v7.2.0
Expected Behavior
It was working fine in version 7.1.0 and after the upgrade Getting an error while ios build. Cannot find type 'ExpoAppDelegateSubscriber' in scope
I am using google-signin only for Android and don’t want to link for ios. So, I included google-signin in react-native.config.js. But still not able to build after an upgrade.
module.exports = {
dependencies: {
'@react-native-google-signin/google-signin': {
platforms: {
ios: null,
},
},
},
};

Environment
Please provide
- react-native version: 0.67.3
- @react-native-google-signin/google-signin version: “^7.2.1”,
- your Podfile, output of running
pod installand cocoapods version (if applicable): 1.11.2 - version of Android, gradle, android plugin for gradle,
play-services-authand version of the Google Play Services app on your phone (if applicable) - version of iOS (if applicable)
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 19 (1 by maintainers)
Hi @saravanakumargn, could you run
yarn why expo-modules-coreand post the output here? I guess you have the old version of Expo SDK that doesn’t have theExpoAppDelegateSubscriberclass 🤔i found better solution while working with bare expo workflow, disable autolinking adding the following to your
package.jsonYes, of course. But if he doesn’t want to upgrade all modules, just pin the version of
expo-modules-coreto at least0.5.0to fix the issue. I have checked the CHANGELOG of theexpo-modules-coreand there is no breaking change, So I think its safe for workaround temporarily. Until he is ready to upgrade. 😉Oh wow,
0.4.10is definitely too old.ExpoAppDelegateSubscriberis available as of SDK44, so I would recommend upgrading to this version.expo-modules-coreshould never be installed directly in the app’s project. It’s intended to be the transitive dependency for apps anddevDependencyfor modules using it. Its version should be inexpopackage hands 😉expo packages
Sorry about this issue, It can be resolved by installing
expo-modules-corein your project.We will discuss internally for the plugin support without breaking anyone don’t use Expo.
Hello and thanks for reporting, please use 7.1.0 for now and we’ll attempt to fix this or revert the expo support until a better approach is available.