作者热门文章
- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我试图在我的 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/
我是一名优秀的程序员,十分优秀!