gpt4 book ai didi

api - OAuthSwift- "No Such Module OAuthSwift"

转载 作者:搜寻专家 更新时间:2023-11-01 05:41:01 25 4
gpt4 key购买 nike

我试图在我的 swift 应用程序中使用 OAuthSwift 框架,但当我import swift 时收到错误“No such module 'OAuthSwift'”。

我按照 github 上的以下说明阅读:

Drag OAuthSwift.xcodeproj to your project in the Project Navigator.
Select your project and then your app target. Open the Build Phases panel.
Expand the Target Dependencies group, and add OAuthSwift framework.
import OAuthSwift whenever you want to use OAuthSwift.

我的支持文件中有 OAuthSwift.xcodeproj

在目标依赖项中,我有 OAuthSwift (OAuthSwift)。 Link Binary with libraries 和 Copy bundle resources 都是空白的。

谢谢

最佳答案

您必须在计划使用 OAuth 的地方导入 OAuthSwift。

在此之前,您需要将 OAuthSwift 添加到 Linked Frameworks and Libraries 中。

但是,我更喜欢使用 cocoa pods 来为您的项目添加依赖项。

这是一个链接“如何安装 Cocoapods” 2 : 这是安装 CocoaPods 的方法

关于api - OAuthSwift- "No Such Module OAuthSwift",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30401813/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com