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')
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 1.1k
- Forks
- 204
- Ø Merge
- 1 T. 9 Std.
- Gemergte PRs (30 T.)
- 8
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Mit dem frischen Vue-Template und tns run ios --bundle reproduzieren, unter Verwendung der im Issue aufgeführten NativeScript-Versionen und von Xcode 10.1. Den iOS-Archiv-Build und SWIFT_VERSION des Starscream-Targets nachverfolgen; als erledigt gilt es, wenn die App ohne den Fehler wegen des nicht unterstützten Swift 5.0 erstellt und archiviert wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, swift
- Bereich
- build-system, cli, mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100