简体   繁体   中英

How to Update iOS SDK Version in Expo

SDK Version Issue - This app was built with the iOS 12.0 SDK. 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.

Because I'm using Expo, how to Update iOS SDK Version in Expo?

There are two different scenarios:

Building on Expo Server

A quick test:

  • built with expo-cli build:ios
  • version is built on expo.io
  • downloaded .ipa
  • checked entry DTXcodeBuild in info.plist

This gives the value 10A255, which actually indeed means Xcode 10.0 released on 17 Sep 2018.

As mentioned by Jeaf Gilbert in the comments, Expo is aware of this:

thanks for reporting! We're aware of this warning and we promise the issue will be resolved before March 2019

see here: https://github.com/expo/expo-cli/issues/264

Ejected to ExpoKit

If ejected to ExpoKit then Expo is using the SDK of the installed Xcode version, because the building is managed locally.

In this case just install the newest Xcode version. This also includes the newest SDK.

这是我将我的 expo SDK 43 更新到 44 的方法。 1.在本地机器上全局更新你的 expo: npm i -g expo-cli然后运行这个命令: expo upgrade

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM