Nativescript - 设置目标操作系统版本(iOS)

das*_*man 5 nativescript

对于NS项目,如何设置最低iOS版本。

我有 IPHONEOS_DEPLOYMENT_TARGET=8.0;在我的 build.xcconfig 文件中,但在构建过程中我收到未设置消息。

在构建过程中,我得到:

Pod installation complete! There are 2 dependencies from the Podfile and 2 total pods installed. [WARNING]: [!] Automatically assigning platform ios with version 8.0 on target publishios because no platform was specified. Please specify a platform for this target in your Podfile. Seehttps://guides.cocoapods.org/syntax/podfile.html#platform.

我的 iOS/build.xcconfig 文件有

IPHONEOS_DEPLOYMENT_TARGET = 8.0;

Fra*_*ank 2

查看这里以获取一些Podfile 语法指南

对于这个特定问题,您只需编辑platforms/ios/Podfile并设置版本,如下所示:

platform :ios, '9.0'

  • 在 nativescript 中生成 podfile。如果调用“tns platform clean ios”,任何更改都将被恢复 (3认同)