Eas build not working after migration to SDK 47

Hello team, I’m migrating from expo 44 and I followed every guide, but I can not find a solution for this problem. The expo run ios is not working anymore (Invariant violation) and I’m trying to build a development build following this guide.

I’m receiving the following errors when running eas build --profile development-simulator --platform ios

» android: androidStatusBar.backgroundColor: Color conflicts with the splash.backgroundColor
» ios: scheme: “ios.infoPlist.CFBundleURLTypes” is set in the config. Ignoring abstract property “scheme”: salimosfuerte
TypeError: [ios.infoPlist]: withIosInfoPlistBaseMod: existingSchemes.some is not a function

In your post, please share:

  • Whether you are bare or managed workflow: managed
  • Your eas-cli version: eas-cli/3.5.2 darwin-x64 node-v16.16.0
  • What you have tried so far: I’ve tried removing plugins, remove the failing configuration, everything under ios.infoPlist, and also looked for any changes in the library/plugin to find anything.

These are my configs

import type { AppManifest } from 'expo-constants/src/Constants.types';

const version = '4.0.0';
const build = 108;
const runtimeVersion = '3';

const config: { expo: Partial<AppManifest> } = {
  expo: {
    name: 'Salimos Fuerte',
    slug: 'salimosfuerte',
    scheme: 'salimosfuerte',
    version,
    runtimeVersion:
      process.env.IGNORE_RUNTIME === 'true' ? undefined : runtimeVersion,
    orientation: 'portrait',
    icon: './assets/icon.png',
    primaryColor: '#242527',
    facebookScheme: 'fb1290555024362541',
    facebookAppId: '1290555024362541',
    facebookDisplayName: 'SalimosFuerte',
    facebookAutoLogAppEventsEnabled: true,
    splash: {
      resizeMode: 'contain',
      backgroundColor: '#103049',
    },
    updates: {
      fallbackToCacheTimeout: 0,
    },
    plugins: [
      'sentry-expo',
      [
        'expo-tracking-transparency',
        {
          userTrackingPermission:
            'Allow this app to collect app-related data that can be used for tracking you or your device for better offers.',
        },
      ],
      // './with-facebook',
      // ['./with-android-colors', { color: '#035995' }],
      [
        'react-native-fbsdk-next',
        {
          // facebookAppId is not accessible
          appID: '1290555024362541',
          displayName: 'SalimosFuerte',
          scheme: 'fb1290555024362541',
          clientToken: 'ddbb604720c7f4fa63043f6d26ac0bf1',
        },
      ],
      '@react-native-google-signin/google-signin',
      // [
      //   'expo-build-properties',
      //   {
      //     ios: {
      //       useFrameworks: 'static',
      //     },
      //   },
      // ],
    ],
    assetBundlePatterns: ['**/*'],
    ios: {
      buildNumber: String(build),
      bundleIdentifier: 'org.reactjs.native.example.drinkdeliveryclient',
      config: {
        googleMapsApiKey: 'AIzaSyCc-fsuxHpDbTxMqOMmUxQsUJKda9oWLLc',
      },
      googleServicesFile: './external/GoogleService-Info.plist',
      supportsTablet: false,
      infoPlist: {
        NSLocationAlwaysUsageDescription:
          'SalimosFuerte uses your location to obtain an estimated time of delivery of your purchases',
        NSLocationUsageDescription:
          'SalimosFuerte uses your location to obtain your recommended region.',
        NSLocationWhenInUseUsageDescription:
          'SalimosFuerte uses your location to obtain your recommended region.',
        CFBundleURLTypes: {
          CFBundleURLSchemes: ['fb1290555024362541', 'salimosfuerte'],
        },
        FacebookAppId: '1290555024362541',
        FacebookDisplayName: 'SalimosFuerte',
        LSApplicationQueriesSchemes: [
          'fbapi',
          'fbapi20130214',
          'fbapi20130410',
          'fbapi20130702',
          'fbapi20131010',
          'fbapi20131219',
          'fbapi20140410',
          'fbapi20140116',
          'fbapi20150313',
          'fbapi20150629',
          'fbapi20160328',
          'fbauth',
          'fb-messenger-share-api',
          'fbauth2',
          'fbshareextension',
        ],
      },
      usesAppleSignIn: true,
    },
    android: {
      versionCode: build,
      adaptiveIcon: {
        foregroundImage: './assets/adaptive-icon.png',
        backgroundColor: '#002A47',
      },
      config: {
        googleMaps: {
          apiKey: 'AIzaSyByy1-xFbaM2cWbP_6f58wbjW03cwmKbzk',
        },
      },
      googleServicesFile: './external/google-services.json',
      icon: './assets/icon.png',
      package: 'com.drinkdeliveryclient',
      permissions: [
        'ACCESS_COARSE_LOCATION',
        'ACCESS_FINE_LOCATION',
        'ACCESS_NETWORK_STATE',
      ],
    },
    androidStatusBar: {
      translucent: false,
      backgroundColor: '#242527',
      barStyle: 'light-content',
    },
    androidNavigationBar: {
      barStyle: 'light-content',
      backgroundColor: '#242527',
    },
    web: {
      favicon: './assets/favicon.png',
      config: {
        firebase: {
          apiKey: 'AIzaSyAa4p1g8RYBHz_4qYURA7iNMcCbqSQi5N0',
          authDomain: 'drinkdelivery-164721.firebaseapp.com',
          databaseURL: 'https://drinkdelivery-164721.firebaseio.com',
          projectId: 'drinkdelivery-164721',
          storageBucket: 'drinkdelivery-164721.appspot.com',
          messagingSenderId: '865527528091',
          appId: '1:865527528091:web:132b43ee247938a043e43e',
          measurementId: 'G-71B9DY3GZ7',
        },
      },
    },
    extra: {
      facebook: {
        // facebookAppId is not accessible
        appId: '1290555024362541',
        appName: 'SalimosFuerte',
        scheme: 'fb1290555024362541',
      },
      firebase: {
        apiKey: 'AIzaSyAa4p1g8RYBHz_4qYURA7iNMcCbqSQi5N0',
        authDomain: 'drinkdelivery-164721.firebaseapp.com',
        databaseURL: 'https://drinkdelivery-164721.firebaseio.com',
        projectId: 'drinkdelivery-164721',
        storageBucket: 'drinkdelivery-164721.appspot.com',
        messagingSenderId: '865527528091',
        appId: '1:865527528091:web:132b43ee247938a043e43e',
      },
      google: {
        auth: {
          androidClientId:
            '865527528091-ju3sjc5sn0fc0smfnjs0tuihukdo5ehj.apps.googleusercontent.com',
          expoClientId:
            '865527528091-2nfjpi9k4h0g1vngieco7h6ffjjaf48i.apps.googleusercontent.com',
          iosClientId:
            '865527528091-75tbrt1ea587p8d0b2sjtd0fqsr3khkn.apps.googleusercontent.com',
          webClientId:
            '865527528091-2nfjpi9k4h0g1vngieco7h6ffjjaf48i.apps.googleusercontent.com',
        },
        maps: {
          web: {
            apiKey: 'AIzaSyCK9o13vV6iiaQHOohC9LGRbvYPsnfBD_4',
          },
          android: {
            apiKey: 'AIzaSyByy1-xFbaM2cWbP_6f58wbjW03cwmKbzk',
          },
          ios: {
            apiKey: 'AIzaSyCc-fsuxHpDbTxMqOMmUxQsUJKda9oWLLc',
          },
        },
      },
      sentry: {
        dsn: 'https://cd3587c9eeda46e1bb7bdb10abd05140@o978218.ingest.sentry.io/5934295',
      },
      web: {
        releaseChannel: process.env.RELEASE_CHANNEL || '',
      },
      eas: {
        projectId: '5d9e879a-4bfd-4149-b954-d63330911e39',
      },
    },
    hooks: {
      postPublish: [
        {
          file: 'sentry-expo/upload-sourcemaps',
          config: {
            organization: 'salimosfuerte',
            project: 'drinkdelivery-expo',
            authToken:
              '9e1308840b034509b0b606d6f912dbb7c96d499085274efdab1937ea5bb94601',
            setCommits: true,
          },
        },
      ],
      postExport: [
        {
          file: './util/slack-notification',
          config: {
            webhookUrl:
              'https://hooks.slack.com/services/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',
            username: 'ExpoBot',
            channel: '#builds',
          },
        },
      ],
    },
    owner: 'salimosfuerte',
  },
};

export default config;

package.json

{
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "cross-env IGNORE_RUNTIME=true npx expo start",
    "android": "cross-env IGNORE_RUNTIME=true npx expo start --android",
    "ios": "cross-env IGNORE_RUNTIME=true npx expo start --ios",
    "web": "cross-env IGNORE_RUNTIME=true npx expo start --web",
    "eject": "npx expo eject",
    "clean": "rm -rf node_modules && npm install",
    "lint": "eslint .",
    "lint:fix": "eslint --fix .",
    "prepare": "husky install",
    "test": "jest",
    "test:watch": "jest --watchAll",
    "tsc:check": "tsc-silent -p tsconfig.json --suppressConfig tsc-silent.config.js",
    "upgrade:expo": "npx expo-cli upgrade",
    "upgrade:all": "npx npm-upgrade"
  },
  "dependencies": {
    "@expo/vector-icons": "^13.0.0",
    "@greatsumini/react-facebook-login": "^3.3.1",
    "@react-native-async-storage/async-storage": "~1.17.3",
    "@react-native-google-signin/google-signin": "^9.0.2",
    "@react-navigation/core": "^6.4.6",
    "@react-navigation/drawer": "^6.5.8",
    "@react-navigation/native": "^6.1.3",
    "@react-navigation/stack": "^6.3.12",
    "@sentry/react-native": "4.9.0",
    "@types/facebook-js-sdk": "^3.3.6",
    "axios": "^1.3.0",
    "eslint-plugin-deprecate": "^0.7.0",
    "expo": "^47.0.13",
    "expo-apple-authentication": "~5.0.1",
    "expo-application": "~5.0.1",
    "expo-asset": "~8.7.0",
    "expo-auth-session": "~3.8.0",
    "expo-build-properties": "~0.4.1",
    "expo-constants": "~14.0.2",
    "expo-dev-client": "~2.0.1",
    "expo-device": "~5.0.0",
    "expo-font": "~11.0.1",
    "expo-linking": "~3.3.0",
    "expo-location": "~15.0.1",
    "expo-navigation-bar": "~2.0.1",
    "expo-notifications": "~0.17.0",
    "expo-random": "~13.0.0",
    "expo-status-bar": "~1.4.2",
    "expo-system-ui": "~2.0.1",
    "expo-tracking-transparency": "~3.0.1",
    "expo-updates": "~0.15.6",
    "expo-web-browser": "~12.0.0",
    "firebase": "^9.16.0",
    "google-map-react": "^2.2.0",
    "immer": "^9.0.19",
    "moment": "^2.29.4",
    "numeral": "^2.0.6",
    "point-in-polygon": "^1.1.0",
    "react": "18.1.0",
    "react-dom": "18.1.0",
    "react-native": "0.70.5",
    "react-native-dotenv": "^3.4.7",
    "react-native-dropdown-picker": "^5.4.4",
    "react-native-expo-viewport-units": "0.0.8",
    "react-native-fbsdk-next": "^11.1.0",
    "react-native-google-places-autocomplete": "^2.5.1",
    "react-native-maps": "1.3.2",
    "react-native-masked-text": "^1.13.0",
    "react-native-paper": "^4.12.0",
    "react-native-phone-number-input": "^2.1.0",
    "react-native-reanimated": "~2.12.0",
    "react-native-responsive-screen": "^1.4.2",
    "react-native-safe-area-context": "4.4.1",
    "react-native-screens": "~3.18.0",
    "react-native-web": "~0.18.9",
    "react-native-web-webview": "^1.0.2",
    "react-native-webview": "11.23.1",
    "react-phone-number-input": "^3.2.16",
    "react-redux": "^7.2.4",
    "redux": "^4.2.1",
    "redux-logger": "^3.0.6",
    "redux-persist": "^6.0.0",
    "redux-saga": "^1.2.2",
    "reselect": "^4.1.7",
    "sentry": "^0.1.2",
    "sentry-expo": "~6.0.0",
    "styled-components": "^5.3.6",
    "uuid": "^9.0.0",
    "validator": "^13.7.0",
    "@expo/webpack-config": "^0.17.2"
  },
  "devDependencies": {
    "@babel/core": "^7.20.12",
    "@expo/ngrok": "^2.5.0",
    "@expo/webpack-config": "^18.0.1",
    "@sentry/cli": "^2.12.0",
    "@sentry/types": "^7.34.0",
    "@types/google-map-react": "^2.1.7",
    "@types/google.maps": "^3.51.0",
    "@types/invariant": "^2.2.35",
    "@types/jest": "^29.4.0",
    "@types/numeral": "^2.0.2",
    "@types/point-in-polygon": "^1.1.1",
    "@types/react": "~18.0.27",
    "@types/react-native": "~0.70.6",
    "@types/react-native-loading-spinner-overlay": "^0.5.3",
    "@types/react-phone-number-input": "^3.0.14",
    "@types/react-redux": "^7.1.25",
    "@types/redux-logger": "^3.0.9",
    "@types/styled-components": "^5.1.26",
    "@types/styled-components-react-native": "^5.2.1",
    "@types/uuid": "^9.0.0",
    "@types/validator": "^13.7.11",
    "@typescript-eslint/eslint-plugin": "^5.50.0",
    "@typescript-eslint/parser": "^5.50.0",
    "core-util-is": "^1.0.3",
    "cross-env": "^7.0.3",
    "eslint": "^8.33.0",
    "eslint-config-airbnb": "^19.0.4",
    "eslint-config-prettier": "^8.6.0",
    "eslint-import-resolver-typescript": "^3.5.3",
    "eslint-plugin-deprecation": "^1.3.3",
    "eslint-plugin-import": "^2.27.5",
    "eslint-plugin-jest": "^27.2.1",
    "eslint-plugin-jsx-a11y": "^6.7.1",
    "eslint-plugin-prettier": "^4.2.1",
    "eslint-plugin-react": "^7.32.2",
    "eslint-plugin-react-hooks": "^4.6.0",
    "husky": "^8.0.3",
    "jest": "^29.4.1",
    "jest-expo": "^47.0.1",
    "jest-mock-extended": "^3.0.1",
    "lint-staged": "^13.1.0",
    "prettier": "^2.8.3",
    "process-nextick-args": "^2.0.1",
    "queue-microtask": "^1.2.3",
    "react-test-renderer": "18.1.0",
    "slack-notify": "^2.0.6",
    "tsc-silent": "^1.2.2",
    "typescript": "^4.9.5"
  },
  "private": true,
  "lint-staged": {
    "*.{ts,tsx}": "eslint",
    "*.js": "eslint --cache --fix"
  },
  "resolutions": {
    "@expo/config-plugins": "5.0.4"
  }
}

Thanks in advance!