swiftappauth

App crash - AuthenticationServices Library not loaded


I'm trying to use AppAuth-iOS dev-logout branch and I tested on simulator 10.3.1. When I try to run the code I get this crash:

dyld: Library not loaded: /System/Library/Frameworks/AuthenticationServices.framework/AuthenticationServices Reason: image not found

AuthenticationServices only appeared in iOS 12.0+, so this may be the cause of the crash.

Link to github issue: https://github.com/openid/AppAuth-iOS/issues/350

Thanks for any hint!


Solution

  • You can mark the AuthenticationServices.framework as Optional in the Linked Frameworks and Libraries section. This solved the problem for me.