Api OAuthSwift-“;没有此类模块“OAuthSwift”;

Api OAuthSwift-“;没有此类模块“OAuthSwift”;,api,swift,github,frameworks,oauth-2.0,Api,Swift,Github,Frameworks,Oauth 2.0,我试图在我的swift应用程序中使用OAuthSwift框架,当我导入swift时,我得到错误“没有这样的模块‘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 De

我试图在我的swift应用程序中使用OAuthSwift框架,当我导入swift时,我得到错误“没有这样的模块‘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)
。带有库的链接二进制文件和复制捆绑资源均为空


谢谢

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

在此之前,您需要将OAuthSwift添加到链接的框架和库中

然而,我更喜欢使用cocoa豆荚为您的项目添加依赖项

这里有一个链接“如何安装Cocoapods” :下面是如何安装CocoaPods的方法

我也遇到了同样的问题

我所做的是:

查看应用程序目标->常规:嵌入二进制文件(右键单击,在finder中打开)

OAuthSwift.Framework
拖动到“app name folder”下的我的项目中,“OAuthSwift.Framework”旁边会显示一个公文包图标,然后将其再次导入嵌入式二进制文件并删除OAuthSwift.xcodeproj(不再需要)


让我知道一切进展如何

这件事你运气好吗?我也有同样的问题。有更新@Marcus吗?你必须使用pod来导入库。你在这方面运气好吗?我使用的是OAuthSwift版本1.0.0,但也有同样的问题。