【发布时间】:2019-10-19 07:31:00
【问题描述】:
重建步骤
$ vue init nativescript-vue/vue-cli-template transport
$ cd transport
$ npm install
$ tns run ios --bundle
日志错误:
error: SWIFT_VERSION '5.0' is unsupported, supported versions are: 3.0, 4.0, 4.2. (in target 'Starscream')
note: Using new build systemnote: Planning buildnote: Constructing build description
** ARCHIVE FAILED **
Mac OS High Sierra 10.13.6 Darwin Aerosol.local 17.7.0 达尔文内核版本 17.7.0:2019 年 2 月 27 日星期三 00:43:23 PST;根:xnu-4570.71.35~1/RELEASE_X86_64 x86_64
节点-v v11.7.0 npm -v 6.9.0 vue -v 3.6.3
我能够创建新应用并在我的 iOS 设备上运行它们,但由于某种原因,过去 1-2 周情况发生了变化。看来我不能再开发 NativeScript 应用程序了。有什么提示吗?
【问题讨论】:
-
看起来你运行的 Xcode 版本低于 Starscream 的目标版本,你可以将你的 Xcode 版本更新到 10.3,它应该支持 Swift 5。但你可能必须确保你的其他插件支持 Swift 4 或更高版本,我认为 Xcode 10.3 不会支持 Swift 3。因此,您可能需要稍后进行相应调整。
标签: vue.js nativescript archive starscream