Azoy / Sword

Discord library for Swift
https://azoy.github.io/Sword
MIT License
179 stars 52 forks source link

Running on iOS Fails #34

Closed Stunner closed 6 years ago

Stunner commented 6 years ago

With the following immediate (run-time) error:

dyld: Library not loaded: /usr/local/lib/libsodium.18.dylib
  Referenced from: /Users/aaron/Library/Developer/Xcode/DerivedData/TestDiscord-gqfwnittkvfxvkcyauzrbahztguj/Build/Products/Debug-iphonesimulator/Sword.framework/Sword
  Reason: no suitable image found.  Did find:
    /usr/local/lib/libsodium.18.dylib: mach-o, but not built for iOS simulator

I followed the instructions to install libsodium with Homebrew but that doesn't compile for arm architectures. I found this project, but I am unsure how I would get your Sword framework to link against that as a dependency. Any help would be appreciated!

Stunner commented 6 years ago

I removed the compiler flag that linked the libsodium dynamic library under Other Linker Flags and the app compiles and runs fine.