Expo v35: Error: Unsupported SDK Version!

Hi,

I try to build the apk / ipa and every time i get this error: Error: Unsupported SDK Version!

  Expo CLI 3.1.2 environment info:
    System:
      OS: macOS 10.14.6
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 12.10.0 - /usr/local/bin/node
      Yarn: 1.17.3 - /usr/local/bin/yarn
      npm: 6.4.1 - ~/.npm-global/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    IDEs:
      Android Studio: 3.4 AI-183.6156.11.34.5522156
      Xcode: 11.0/11A420a - /usr/bin/xcodebuild
    npmPackages:
      expo: ^35.0.0 => 35.0.0 
      react: 16.8.3 => 16.8.3 
      react-native: https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz => 0.59.8 
      react-navigation: ^4.0.6 => 4.0.10 
    npmGlobalPackages:
      expo-cli: 3.1.2

What is the SDK version defined in your app.json?

Version 35

Hey @florinp,

Can you paste your app.json and package.json contents?

Cheers,
Adam

package.json

{
  "main": "node_modules/expo/AppEntry.js",
  "private": true,
  "dependencies": {
    "axios": "^0.17.1",
    "expo": "^35.0.0",
    "expo-asset": "~7.0.0",
    "expo-constants": "~7.0.0",
    "expo-permissions": "~7.0.0",
    "firebase": "4.6.2",
    "lodash": "^4.17.4",
    "moment": "^2.19.3",
    "prop-types": "^15.6.0",
    "react": "16.8.3",
    "react-native": "https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz",
    "react-native-calendars": "^1.19.3",
    "react-native-datepicker": "^1.6.0",
    "react-native-drawer": "^2.5.0",
    "react-native-elements": "^0.18.4",
    "react-native-gesture-handler": "~1.3.0",
    "react-native-keyboard-aware-scroll-view": "^0.4.1",
    "react-native-material-bottom-navigation": "^0.6.1",
    "react-native-modal": "^4.1.1",
    "react-native-picker-dropdown": "^0.1.1",
    "react-native-reanimated": "~1.2.0",
    "react-navigation": "^4.0.6",
    "react-navigation-drawer": "^1.4.0",
    "react-navigation-stack": "^1.7.3",
    "react-navigation-tabs": "^1.2.0",
    "react-redux": "^5.0.6",
    "react-router-native": "^4.2.0",
    "redux": "^3.7.2",
    "redux-thunk": "^2.2.0",
    "sentry-expo": "~2.0.0"
  },
  "devDependencies": {
    "babel-preset-expo": "^5.1.1",
    "redux-logger": "^3.0.6"
  }
}

app.json

{
  "expo": {
    "name": "ITPgrup",
    "description": "",
    "slug": "itpgrup-v2",
    "privacy": "unlisted",
    "sdkVersion": "35.0.0",
    "version": "2.0.4",
    "orientation": "portrait",
    "primaryColor": "#009b32",
    "icon": "./assets/new-logo.png",
    "splash": {
      "image": "./assets/new-splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#009b32"
    },
    "ios": {
      "bundleIdentifier": "com.application.itpgrup",
      "supportsTablet": true,
      "buildNumber": "1.0.4",
      "icon": "./assets/ios-logo.png",
      "appStoreUrl": "https://itunes.apple.com/us/app/itpgrup/id1358013275?ls=1&mt=8"
    },
    "android": {
      "package": "com.application.itpgrup",
      "versionCode": 204000,
      "icon": "./assets/android-logo.png",
      "playStoreUrl": "https://play.google.com/store/apps/details?id=com.application.itpgrup",
      "permissions": [
        "ACCESS_COARSE_LOCATION",
        "ACCESS_FINE_LOCATION",
        "READ_EXTERNAL_STORAGE",
        "READ_PHONE_STATE",
        "USE_FINGERPRINT",
        "VIBRATE",
        "WAKE_LOCK",
        "WRITE_EXTERNAL_STORAGE",
        "com.anddoes.launcher.permission.UPDATE_COUNT",
        "com.android.launcher.permission.INSTALL_SHORTCUT",
        "com.google.android.c2dm.permission.RECEIVE",
        "com.google.android.gms.permission.ACTIVITY_RECOGNITION",
        "com.google.android.providers.gsf.permission.READ_GSERVICES",
        "com.htc.launcher.permission.READ_SETTINGS",
        "com.htc.launcher.permission.UPDATE_SHORTCUT",
        "com.majeur.launcher.permission.UPDATE_BADGE",
        "com.sec.android.provider.badge.permission.READ",
        "com.sec.android.provider.badge.permission.WRITE",
        "com.sonyericsson.home.permission.BROADCAST_BADGE"
      ]
    },
    "hooks": {
      "postPublish": [
        {
          "file": "sentry-expo/upload-sourcemaps",
          "config": {
            "organization": "xxxx",
            "project": "xxxx",
            "authToken": "xxxx"
          }
        }
      ]
    }
  }
}

Getting the same error here. (building with expo 35 too)

ERROR ITMS-90725: “SDK Version Issue. This app was built with the iOS SDK. All iOS apps submitted to the App Store must be built with the iOS 11 SDK or later, included in Xcode 9 or later. Further, starting March 2019, all iOS apps submitted to the App Store must be built with the iOS 12.1 SDK or later, included in Xcode 10.1 or later.”

package.json:

{
  "name": "locasaur",
  "version": "2.4.4",
  "private": true,
  "devDependencies": {
    "@babel/plugin-syntax-export-default-from": "^7.2.0",
    "flow-bin": "^0.56.0",
    "jest-expo": "^35.0.0",
    "react-dom": "^16.8.4",
    "react-native-web": "^0.11.1",
    "react-test-renderer": "16.6.3"
  },
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "eject": "expo eject",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "test": "jest"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "@mapbox/geo-viewport": "^0.4.0",
    "@turf/bbox": "^6.0.1",
    "@turf/boolean-point-in-polygon": "^6.0.1",
    "@turf/centroid": "^6.0.2",
    "@turf/distance": "^6.0.1",
    "@turf/helpers": "^6.1.4",
    "babel-preset-expo": "^5.1.1",
    "expo": "^35.0.0",
    "expo-analytics-amplitude": "~7.0.0",
    "expo-blur": "^7.0.0",
    "expo-branch": "^1.0.2",
    "expo-constants": "~7.0.0",
    "expo-facebook": "~7.0.0",
    "expo-font": "~7.0.0",
    "expo-image-manipulator": "~7.0.0",
    "expo-image-picker": "~7.0.0",
    "expo-linear-gradient": "~7.0.0",
    "expo-location": "~7.0.0",
    "expo-mail-composer": "~7.0.0",
    "expo-permissions": "~7.0.0",
    "firebase": "6.0.0",
    "lodash": "^4.17.15",
    "moment": "^2.23.0",
    "react": "16.8.3",
    "react-native": "https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz",
    "react-native-animatable": "^1.3.2",
    "react-native-branch": "~3.1.1",
    "react-native-check-box": "2.1.0",
    "react-native-circular-progress": "^1.3.0",
    "react-native-countup": "^0.0.2",
    "react-native-draggable-flatlist": "^1.1.7",
    "react-native-elevated-view": "0.0.6",
    "react-native-expo-image-cache": "4.0.8",
    "react-native-gesture-handler": "~1.3.0",
    "react-native-gifted-chat": "^0.8.0",
    "react-native-in-app-notification": "^3.0.0",
    "react-native-maps": "~0.25.0",
    "react-native-material-menu": "^0.4.2",
    "react-native-paper": "2.15.0",
    "react-native-reanimated": "~1.2.0",
    "react-native-svg": "9.9.2",
    "react-native-swipeable": "^0.6.0",
    "react-native-swiper": "^1.5.14",
    "react-native-walkthrough-tooltip": "^0.4.1",
    "react-navigation": "4.0.6",
    "react-navigation-material-bottom-tabs": "^1.0.0",
    "react-navigation-stack": "^1.5.1",
    "react-navigation-tabs": "^2.4.0",
    "rn-viewpager": "^1.2.9",
    "sentry-expo": "~2.0.0",
    "socket.io-client": "^2.2.0",
    "supercluster": "^6.0.1"
  }
}

app.json (partial):

{
  "expo": {
    "sdkVersion": "35.0.0",
    "scheme": "locasaur",
    "name": "Locasaur",
    "version": "2.4.4",
    "facebookDisplayName": "Locasaur",
    "orientation": "portrait",
    "primaryColor": "#ffffff",
    "slug": "locasaur",
    "platforms": ["ios", "android"],
    "notification": {
      "icon": "./images/dinos/notoicon.png",
      "color": "#0d213a",
      "androidMode": "default"
    },
    "ios": {
      "appStoreUrl": "https://itunes.apple.com/us/app/locasaur-support-local-spots/id1183072171",
      "bundleIdentifier": "com.locasaur.locasaur",
      "supportsTablet": true,
      "buildNumber": "2.4.5",
      "infoPlist": {
        "NSLocationWhenInUseUsageDescription": "We use your location to show relevant local content.",
        "NSPhotoLibraryUsageDescription": "We access your photo library to upload your profile picture."
      },
      "associatedDomains": ["applinks:locasaur.app.link"],
   ...

Hmmm. That full error provides a bit more insight. For posterity’s sake can you two ensure you’re running the latest versions of expo-cli and try building.

1 Like

updated expo-cli and it worked a++. thanks for responding so quickly and sorry for the trouble

Hey @florinp, can you post the complete error you are getting?

This is from expo build service

Error: Unsupported SDK Version!
    at Object.ensureCanBuildSdkVersion (/app/turtle/build/builders/utils/version.js:18:15)
    at <anonymous>
    at process._tickDomainCallback (internal/process/next_tick.js:229:7)

did you update to the latest version of expo-cli?

Yes. I have the version 3.1.2 .

Hey @florinp,

If you’re comfortable and able to share access to your project, could you email support@expo.io and also could you let me know what the exact command you are running is? Ie: expo build:ios.

One other thing you could try in the interim is creating a new project using SDK35, publish it via expo publish and see if you can build succesfully.

Cheers,
Adam

I created a new project with SDK35 and it works now. Thank you for the answear.

Happy to hear you got it working!

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.