简体   繁体   English

Expo中如何更新iOS SDK版本

[英]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. 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?因为我用的是Expo,如何更新Expo中的iOS SDK版本?

There are two different scenarios: 有两种不同的方案:

Building on Expo Server 在Expo Server上构建

A quick test: 快速测试:

  • built with expo-cli build:ios 使用expo-cli build:ios
  • version is built on expo.io 版本基于expo.io构建
  • downloaded .ipa 下载的.ipa
  • checked entry DTXcodeBuild in info.plist 在info.plist中选中了条目DTXcodeBuild

This gives the value 10A255, which actually indeed means Xcode 10.0 released on 17 Sep 2018. 这给出了值10A255,实际上确实意味着Xcode 10.0已于2018年9月17日发布。

As mentioned by Jeaf Gilbert in the comments, Expo is aware of this: 正如Jeaf Gilbert在评论中提到的那样,世博会意识到这一点:

thanks for reporting! 感谢您的举报! We're aware of this warning and we promise the issue will be resolved before March 2019 我们已注意到此警告,并承诺将在2019年3月之前解决此问题

see here: https://github.com/expo/expo-cli/issues/264 看到这里: https : //github.com/expo/expo-cli/issues/264

Ejected to ExpoKit 弹出ExpoKit

If ejected to ExpoKit then Expo is using the SDK of the installed Xcode version, because the building is managed locally. 如果弹出到ExpoKit,则Expo使用的是已安装Xcode版本的SDK,因为该建筑物是在本地管理的。

In this case just install the newest Xcode version. 在这种情况下,只需安装最新的Xcode版本。 This also includes the newest SDK. 这也包括最新的SDK。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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