-
Notifications
You must be signed in to change notification settings - Fork 16
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
copySwiftStdlib FAILURE: Build failed with an exception #1
Comments
Executing task ':compileSwift' (up-to-date check took 0.0 secs) due to: FAILURE: Build failed with an exception.
BUILD FAILED Total time: 4.071 secs |
i have install swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a-osx.pkg and set my env "export PATH=/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin:"${PATH}"" 04-15 23:08:17.500 23094-23108/? E/art: Failed writing handshake bytes (-1 of 14): Broken pipe |
@liufsd the two libicu libraries need to be copied into your APK bundle alongside libswiftCore.so and all other dynamic dependencies (that are listed elsewhere in the example code and instructions). Have a look at the other libicu issue for a workaround I found when your android system has a conflicting version of libicu already installed. You already posted a comment in that thread: SwiftAndroid/swift#8 Not sure how we can help you beyond that, if that doesn't fix the issue maybe you can rephrase your question. I found it hard to follow all the stack dumps with no explanation. Also note that the code from this Android port wasn't merged into swift master yet at the time of the 2016-03-01 snapshot, so I'd be surprised if it works on android at all. |
@ephemer HI. how to get the libicu libraries ? you mean it need copy the libicu.so to the project libs(this project have libc++_shared.so libswifthello.so)? |
@liufsd If it builds with an older version of swift it's probably for a generic version of Linux armv7 rather than for android specifically. Maybe that'd work too, I'm not sure but I'd guess not. At the moment you'll have to clone swift master and build swiftc yourself to get things working with android. I'd recommend waiting a week or two and getting a prebuilt snapshot with the android code compiled in. When you do get that far you'll also need to package libswiftCore.so and some others. The android runtime linker will ask for them when trying to load your library if they're missing. |
For libicu, look at GitHub.com/SwiftAndroid - there is a repo for libicu android. Again you'll have to build it yourself, there are instructions in that repo |
yes.thanks. i have found this :https://github.com/apple/swift/blob/master/docs/Android.md |
The text was updated successfully, but these errors were encountered: