Advertisement
iComputerfreak

Error when compiling SwiftDiscord

Jan 30th, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. $ swift build -Xlinker -L/usr/local/lib -Xlinker -lopus -Xcc -I/usr/local/include
  2. 'CTLS' <ProjectPath>/.build/checkouts/ctls.git--3947211726455151465: warning: Ignoring declared target(s) 'CTLS' in the system package
  3. 'Sodium' <ProjectPath>/.build/checkouts/Sodium--4393648072058833244: warning: Ignoring declared target(s) 'Sodium' in the system package
  4. 'COPUS' <ProjectPath>/.build/checkouts/copus--1181306265855914009: warning: Ignoring declared target(s) 'COPUS' in the system package
  5. Compile Swift Module 'SwiftDiscord' (51 sources)
  6. <ProjectPath>/.build/checkouts/SwiftDiscord--7968038837483286921/Sources/SwiftDiscord/Voice/DiscordVoiceEngine.swift:235:96: error: cannot convert value of type '[UInt8]' to expected argument type 'UInt8'
  7. let success = crypto_secretbox_easy(encrypted, &buf, UInt64(buf.count), &nonce, &secret!)
  8. ~~~~~~^
  9. <ProjectPath>/.build/checkouts/SwiftDiscord--7968038837483286921/Sources/SwiftDiscord/Voice/DiscordVoiceEngine.swift:255:114: error: cannot convert value of type '[UInt8]' to expected argument type 'UInt8'
  10. let success = crypto_secretbox_open_easy(unencrypted, voiceData, UInt64(data.count - 12), &nonce, &secret!)
  11. ~~~~~~^
  12. error: terminated(1): /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build-tool -f '<ProjectPath>/.build/debug.yaml' main output:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement