question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting Cannot find type 'ExpoAppDelegateSubscriber' in scope after upgrade v7.2.0

See original GitHub issue

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,
      },
    },
  },
};

Screenshot 2022-03-15 at 8 21 11 AM

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 install and cocoapods version (if applicable): 1.11.2
  • version of Android, gradle, android plugin for gradle, play-services-auth and version of the Google Play Services app on your phone (if applicable)
  • version of iOS (if applicable)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:19 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
tsapetacommented, Mar 15, 2022

Hi @saravanakumargn, could you run yarn why expo-modules-core and post the output here? I guess you have the old version of Expo SDK that doesn’t have the ExpoAppDelegateSubscriber class 🤔

2reactions
KROSFcommented, Mar 23, 2022

i found better solution while working with bare expo workflow, disable autolinking adding the following to your package.json

"expo": {
    "autolinking": {
      "exclude": [
        "@react-native-google-signin/google-signin"
      ]
    }
  },
Read more comments on GitHub >

github_iconTop Results From Across the Web

cannot find type in scope xcode 13 | Apple Developer Forums
I had many swift compiler errors of this type : "Cannot find type 'className' in scope" after passing from Xcode 12.5 to Xcode...
Read more >
Cannot find 'ApplicationDelegate' in scope - Stack Overflow
It seems like I am unable to find the Application Delegate from the Scene Delegate. ... When I apply the above I get...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found