Azoy/Sword

Running on iOS Fails

Stunner opened this issue · 1 comments

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!

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