我正在尝试使用 AppAuth-iOS dev-logout 分支,并在模拟器 10.3.1 上进行了测试。 当我尝试运行代码时出现崩溃:
dyld: Library not loaded: /System/Library/Frameworks/AuthenticationServices.framework/AuthenticationServices Reason: image not found
AuthenticationServices 只出现在 iOS 12.0+,所以这可能是崩溃的原因。
链接到 github 问题:https://github.com/openid/AppAuth-iOS/issues/350
感谢任何提示!
最佳答案
您可以在 Linked Frameworks and Libraries
部分将 AuthenticationServices.framework
标记为 Optional。这为我解决了问题。
关于swift - 应用程序崩溃 - 未加载 AuthenticationServices 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54307810/