-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
When compiling a new SwiftPM project with your library it fails with the following errors
<ProjectPath>/.build/checkouts/SwiftDiscord--7968038837483286921/Sources/SwiftDiscord/Voice/DiscordVoiceEngine.swift:235:96: error: cannot convert value of type '[UInt8]' to expected argument type 'UInt8'
let success = crypto_secretbox_easy(encrypted, &buf, UInt64(buf.count), &nonce, &secret!)
~~~~~~^
<ProjectPath>/.build/checkouts/SwiftDiscord--7968038837483286921/Sources/SwiftDiscord/Voice/DiscordVoiceEngine.swift:255:114: error: cannot convert value of type '[UInt8]' to expected argument type 'UInt8'
let success = crypto_secretbox_open_easy(unencrypted, voiceData, UInt64(data.count - 12), &nonce, &secret!)
~~~~~~^
error: terminated(1): /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build-tool -f '<ProjectPath>/.build/debug.yaml' main output:
Here is my full output when I run the compile command: https://pastebin.com/vUrpzfQS
My main.swift only contains this:
import SwiftDiscord
print("Hello, world!")
First I used version 6.0.0 of your library, like suggested in the README.md, but now I tried 9.0.0, which doesn't work either.
I am using Swift 4 on macOS, but I tried it on Linux Ubuntu 16.04 too.
Metadata
Metadata
Assignees
Labels
No labels