Skip to content

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

Open
@sylwesterdigital

Description

@sylwesterdigital

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CocoaPodsbuildDescribes issues related to build operationsos: ios

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions