Closed Nexuist closed 7 years ago
I get the following set of errors when trying to compile:
Andis-MBP:Discort andi$ swift build Compile Swift Module 'Sword' (41 sources) /Users/andi/Desktop/Discort/.build/checkouts/Sodium.git--4358050523248221724/module.modulemap:2:10: error: header '/usr/local/include/sodium.h' not found header "/usr/local/include/sodium.h" ^ /Users/andi/Desktop/Discort/.build/checkouts/Sword-1490915180762393545/Sources/Sword/Voice/VoiceConnection.swift:18:8: error: could not build Objective-C module 'Sodium' import Sodium ^ /Users/andi/Desktop/Discort/.build/checkouts/Sodium.git--4358050523248221724/module.modulemap:2:10: error: header '/usr/local/include/sodium.h' not found header "/usr/local/include/sodium.h" ^ /Users/andi/Desktop/Discort/.build/checkouts/Sword-1490915180762393545/Sources/Sword/Voice/VoiceConnection.swift:18:8: error: could not build Objective-C module 'Sodium' import Sodium ^ /Users/andi/Desktop/Discort/.build/checkouts/Sodium.git--4358050523248221724/module.modulemap:2:10: error: header '/usr/local/include/sodium.h' not found header "/usr/local/include/sodium.h" ^ /Users/andi/Desktop/Discort/.build/checkouts/Sword-1490915180762393545/Sources/Sword/Voice/VoiceConnection.swift:18:8: error: could not build Objective-C module 'Sodium' import Sodium ^ /Users/andi/Desktop/Discort/.build/checkouts/Sodium.git--4358050523248221724/module.modulemap:2:10: error: header '/usr/local/include/sodium.h' not found header "/usr/local/include/sodium.h" ^ /Users/andi/Desktop/Discort/.build/checkouts/Sword-1490915180762393545/Sources/Sword/Voice/VoiceConnection.swift:18:8: error: could not build Objective-C module 'Sodium' import Sodium ^ /Users/andi/Desktop/Discort/.build/checkouts/Sodium.git--4358050523248221724/module.modulemap:2:10: error: header '/usr/local/include/sodium.h' not found header "/usr/local/include/sodium.h" ^ /Users/andi/Desktop/Discort/.build/checkouts/Sword-1490915180762393545/Sources/Sword/Voice/VoiceConnection.swift:18:8: error: could not build Objective-C module 'Sodium' import Sodium ^ /Users/andi/Desktop/Discort/.build/checkouts/Sodium.git--4358050523248221724/module.modulemap:2:10: error: header '/usr/local/include/sodium.h' not found header "/usr/local/include/sodium.h" ^ /Users/andi/Desktop/Discort/.build/checkouts/Sword-1490915180762393545/Sources/Sword/Voice/VoiceConnection.swift:18:8: error: could not build Objective-C module 'Sodium' import Sodium ^ /Users/andi/Desktop/Discort/.build/checkouts/Sodium.git--4358050523248221724/module.modulemap:2:10: error: header '/usr/local/include/sodium.h' not found header "/usr/local/include/sodium.h" ^ /Users/andi/Desktop/Discort/.build/checkouts/Sword-1490915180762393545/Sources/Sword/Voice/VoiceConnection.swift:18:8: error: could not build Objective-C module 'Sodium' import Sodium ^ /Users/andi/Desktop/Discort/.build/checkouts/Sodium.git--4358050523248221724/module.modulemap:2:10: error: header '/usr/local/include/sodium.h' not found header "/usr/local/include/sodium.h" ^ /Users/andi/Desktop/Discort/.build/checkouts/Sword-1490915180762393545/Sources/Sword/Voice/VoiceConnection.swift:18:8: error: could not build Objective-C module 'Sodium' import Sodium ^ <unknown>:0: error: build had 1 command failures error: exit(1): /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build-tool -f /Users/andi/Desktop/Discort/.build/debug.yaml
This obviously all relates to one library, so any ideas on what I can do to fix this?
Thanks!
Did you ever install libsodium (brew update && brew install libsodium)
Huh, looks like that fixed it, although oddly brew complained that libsodium was already installed when I tried to install it again. ¯_(ツ)_/¯
I get the following set of errors when trying to compile:
This obviously all relates to one library, so any ideas on what I can do to fix this?
Thanks!