Skip to content

how to build SwiftAndroid toolchain  #1

Open
@liufsd

Description

@liufsd

HI. I have clone the project (https://github.com/SwiftAndroid/swift)
and then utils/build-script -r
but i do no know to set my env to build your sample programs.
so i have to try to download swift here (https://swift.org/download/#snapshots) and install swift
then build again
error log:"error: unable to invoke subcommand: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build (No such file or directory)"

Activity

kostiakoval

kostiakoval commented on Oct 6, 2016

@kostiakoval

you have to set PATH environment variable.
And you don't need to build your own toolchain, download existing one from https://swift.org/download/#snapshots.

export PATH=$PATH:/path/to/swift/bin

liufsd

liufsd commented on Oct 6, 2016

@liufsd
Author

@kostiakoval Thanks. I will try it later.

kostiakoval

kostiakoval commented on Oct 6, 2016

@kostiakoval

@liufsd I would love to see/ hear if grade plugin is still working with current swift

liufsd

liufsd commented on Oct 6, 2016

@liufsd
Author

@kostiakoval Sorry, i do not know. i need test it. if you build success, you can tell me.

liufsd

liufsd commented on Oct 6, 2016

@liufsd
Author

@kostiakoval Bad news.The SwiftAndroid project last commit 6 months ago...

kostiakoval

kostiakoval commented on Oct 6, 2016

@kostiakoval

I know, thats why I asked. SwiftAndroid was merged into swift repo. The main work is now done there.
https://github.com/apple/swift/blob/master/docs/Android.md

liufsd

liufsd commented on Oct 7, 2016

@liufsd
Author

@kostiakoval SwiftAndroid/swift-android-samples#1
It's not easy to do that.The swift version is 3.0 now~.As your said ,the SwiftAndroid was not track.
So i'd recommend waiting a month or two and getting a prebuilt snapshot with the android code compiled in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @kostiakoval@liufsd

        Issue actions

          how to build SwiftAndroid toolchain · Issue #1 · SwiftAndroid/swift-android-gradle