Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to build SwiftAndroid toolchain #1

Open
liufsd opened this issue Apr 15, 2016 · 7 comments
Open

how to build SwiftAndroid toolchain #1

liufsd opened this issue Apr 15, 2016 · 7 comments

Comments

@liufsd
Copy link

liufsd commented Apr 15, 2016

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)"

@kostiakoval
Copy link

kostiakoval commented Oct 6, 2016

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
Copy link
Author

liufsd commented Oct 6, 2016

@kostiakoval Thanks. I will try it later.

@kostiakoval
Copy link

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

@liufsd
Copy link
Author

liufsd commented Oct 6, 2016

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

@liufsd
Copy link
Author

liufsd commented Oct 6, 2016

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

@kostiakoval
Copy link

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
Copy link
Author

liufsd commented Oct 7, 2016

@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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants