【发布时间】:2019-01-03 18:27:52
【问题描述】:
我已经使用 NativeScript 构建了我的 android 和 iOS 应用程序。对于 Android,一切都很好......但是当我尝试发布适用于 iOS 的应用程序时,我从 Apple Store 连接中收到了这个错误:
SDK Version Issue - This app was built with the iOS 11.3 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.
所以应用程序被拒绝了...所以,我在 de Properties -> iOS -> Deployment Target 中将 NativeScript SideKick 应用程序中的部署目标更改为 12.1
但是当我运行tns run ios
我明白了:
clang: error: invalid iOS deployment version '-mios-simulator-version-min=12.1', iOS 10 is the maximum deployment target for 32-bit targets [-Winvalid-ios-deployment-target]
note: Using new build systemnote: Planning buildnote: Constructing build description
** BUILD FAILED **
我的电脑是 64b 和 macOS Mojave 的 MacBook Pro i5
所以我不知道是哪个问题..你能帮帮我吗?
【问题讨论】:
-
看起来你已经包含了一个 32 位目标。
-
@IanMacDonald 那在哪里?怎么改?
-
您在项目中使用的 NativeScript 运行时版本是什么?
-
@Manoj 版本是(我运行 tns --version)5.0.1
-
运行时版本是您在
package.json中指定为tns-ios的版本。您指的是 CLI 版本。
标签: ios nativescript angular2-nativescript