Yubico / yubikit-ios

Yubico Mobile iOS SDK - YubiKit
Apache License 2.0
195 stars 43 forks source link

YubiKitDemo Build Failure - library not found for -lYubiKit #102

Closed Dsanchez0121 closed 2 years ago

Dsanchez0121 commented 2 years ago

Hello, I cloned the YubiKitDemo and tried to build it. I got this error when building "ld: library not found for -lYubiKit clang: error: linker command failed with exit code 1 (use -v to see invocation)" Am I missing a step?

Dsanchez0121 commented 2 years ago

Potentially fixed it: added YubiKit as a package dependency. File -> Add Packages -> type in https://github.com/Yubico/yubikit-ios in top right corner -> Add Package

WWSellers commented 2 years ago

That happened to me when I tried to build it from yubikit-ios/YubiKitDemo/YubiKitDemo.xcodeproj.
Building from yubikit-ios/YubiKit.xcworkspace with scheme "YubiKitDemo" chosen with iOS device worked for me.

jensutbult commented 2 years ago

Yes, you need to open the Yubikit SDK workspace and build the demo from there.