Expo run:ios fails with "cannot find type 'ExpoAppDelegateSubscriber' in scope"

Full error message:

❌  (ios/Pods/Target Support Files/Pods-Horizonsdev/ExpoModulesProvider.swift:19:56)

  17 |   }
  18 |
> 19 |   public override func getAppDelegateSubscribers() -> [ExpoAppDelegateSubscriber.Type] {
     |                                                        ^ cannot find type 'ExpoAppDelegateSubscriber' in scope
  20 |     return [
  21 |     ]
  22 |   }


❌  (ios/Pods/Target Support Files/Pods-Horizonsdev/ExpoModulesProvider.swift:19:24)

  17 |   }
  18 |
> 19 |   public override func getAppDelegateSubscribers() -> [ExpoAppDelegateSubscriber.Type] {
     |                        ^ method does not override any method from its superclass
  20 |     return [
  21 |     ]
  22 |   }


› 2 error(s), and 5 warning(s)

Failed to build iOS project. "xcodebuild" exited with error code 65.

Any help would be greatly appreciated.

Hey @cmaycumber, can you share your project’s package.json? As well as your environment info which can be detailed via the expo diagnostics command.

Cheers,
Adam

1 Like

This looks like it could be an issue with me using Yarn v2 after doing doing some digging in the forums. Here’s my package and env info in case it’s still useful.

Expo CLI 4.13.0 environment info:
    System:
      OS: macOS 12.1
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 17.2.0 - /private/var/folders/9s/lx45dpvx4_xb70r2g33v_x5r0000gn/T/xfs-22a6237b/node
      Yarn: 3.1.1 - /private/var/folders/9s/lx45dpvx4_xb70r2g33v_x5r0000gn/T/xfs-22a6237b/yarn
      npm: 8.1.4 - /usr/local/bin/npm
      Watchman: 2021.12.13.00 - /usr/local/bin/watchman
    Managers:
      CocoaPods: 1.11.2 - /usr/local/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0
    IDEs:
      Android Studio: 4.0 AI-193.6911.18.40.6626763
      Xcode: 13.1/13A1030d - /usr/bin/xcodebuild
    npmGlobalPackages:
      expo-cli: 4.13.0
    Expo Workflow: bare
"@babel/core": "7.15.8",
    "@expo/config": "6.0.13",
    "@expo/vector-icons": "^12.0.0",
    "@intercom/intercom-react-native": "1.1.1",
    "@motify/skeleton": "0.16.1",
    "@react-native-async-storage/async-storage": "~1.15.0",
    "@react-native-community/masked-view": "0.1.10",
    "@react-native-community/netinfo": "6.0.2",
    "@react-native-mapbox-gl/maps": "8.5.0",
    "@react-navigation/bottom-tabs": "6.0.1",
    "@react-navigation/drawer": "6.0.1",
    "@react-navigation/elements": "1.2.1",
    "@react-navigation/material-top-tabs": "6.0.4",
    "@react-navigation/native": "6.0.1",
    "@react-navigation/native-stack": "6.2.5",
    "@react-navigation/stack": "6.0.1",
    "@segment/analytics-react-native": "2.0.0-pilot.1",
    "@sentry/react-native": "3.0.3",
    "@unimodules/core": "~7.2.0",
    "amazon-cognito-identity-js": "5.2.3",
    "aws-amplify": "4.3.7",
    "aws-amplify-react-native": "6.0.1",
    "config-plugin-react-native-intercom": "1.0.0",
    "expo": "^43.0.0",
    "expo-analytics-segment": "~11.0.3",
    "expo-application": "~4.0.0",
    "expo-asset": "~8.4.3",
    "expo-constants": "~12.1.3",
    "expo-dev-client": "~0.6.3",
    "expo-device": "~4.0.3",
    "expo-file-system": "~13.0.3",
    "expo-font": "~10.0.3",
    "expo-linear-gradient": "~10.0.3",
    "expo-linking": "~2.4.2",
    "expo-next-react-navigation": "2.0.2",
    "expo-notifications": "~0.13.3",
    "expo-postpublish-slack-notify": "1.2.0",
    "expo-sharing": "~10.0.3",
    "expo-splash-screen": "~0.13.5",
    "expo-status-bar": "~1.1.0",
    "expo-updates": "~0.10.13",
    "expo-web-browser": "~10.0.3",
    "expo-yarn-workspaces": "1.6.0",
    "lottie-react-native": "4.0.3",
    "react": "17.0.1",
    "react-dom": "17.0.1",
    "react-instantsearch-native": "6.17.0",
    "react-native": "0.64.3",
    "react-native-collapsible-tab-view": "4.2.1",
    "react-native-gesture-handler": "~1.10.2",
    "react-native-get-random-values": "~1.7.0",
    "react-native-lottie": "0.0.1-alpha.2",
    "react-native-maps": "0.28.1",
    "react-native-pager-view": "5.4.6",
    "react-native-popper": "0.3.2",
    "react-native-reanimated": "2.2.1",
    "react-native-reanimated-carousel": "1.0.9",
    "react-native-redash": "16.2.2",
    "react-native-safe-area-context": "3.3.2",
    "react-native-screens": "~3.8.0",
    "react-native-svg": "12.1.1",
    "react-native-tab-view": "3.1.1",
    "react-native-uuid": "2.0.1",
    "react-native-web": "0.17.1",
    "react-native-web-lottie": "1.4.4",
    "react-navigation-collapsible": "6.1.0",
    "react-navigation-header-buttons": "7.0.2",
    "react-plaid-link": "3.1.0"