NativeScript / NativeScript/nativescript-cli

Xcode build... error: SWIFT_VERSION '5.0' is unsupported, supported versions are: 3.0, 4.0, 4.2. (in target 'Starscream')

Đang mở
#4,674 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

build CocoaPods os: ios
Ngôn ngữ chính
JavaScript
Star
1.1k
Fork
204
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
8

Mô tả

Environment
tns info

✔ Component nativescript has 5.4.0 version and is up to date.
✔ Component tns-core-modules has 6.0.0-next-2019-06-03-175837-01 version and is up to date.
✔ Component tns-android has 6.0.0-2019-05-29-132216-01 version and is up to date.
✔ Component tns-ios has 6.0.0-2019-05-28-180227-02 version and is up to date.

No plugins, fresh vue template ie

 vue init nativescript-vue/vue-cli-template transport

Bug, can not create ARCHIVE and can not run iOS app, ie

tns run ios --bundle

[...]

Xcode build...
error: SWIFT_VERSION '5.0' is unsupported, supported versions are: 3.0, 4.0, 4.2. (in target 'Starscream')
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 **

Just wasted whole day and thinking about... SwiftUI :) Any idea how to fix this?

Additional info

$tns doctor
$ tns doctor
✔ Getting environment information 

No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ CocoaPods are configured properly.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ The Python 'six' package is found.
✔ Xcode version 10.1.0 satisfies minimum required version 9.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 5.4.0 version and is up to date.
✔ Component tns-core-modules has 6.0.0-next-2019-06-03-175837-01 version and is up to date.
✔ Component tns-android has 6.0.0-2019-05-29-132216-01 version and is up to date.
✔ Component tns-ios has 6.0.0-2019-05-28-180227-02 version and is up to date.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Tái hiện bằng template Vue mới và tns run ios --bundle, sử dụng các phiên bản NativeScript và Xcode 10.1 được liệt kê trong issue. Theo dõi quá trình build archive iOS và SWIFT_VERSION của target Starscream; được xem là hoàn tất khi ứng dụng build và archive thành công mà không gặp lỗi Swift 5.0 không được hỗ trợ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript, swift
Lĩnh vực
build-system, cli, mobile
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.