iphone - iOS-OAuth 实现如何创建框架? (简单的)

标签 iphone ios oauth

你好

我需要在我的项目中包含 OAuth,为此我找到了这个简单的“tuto”。 但我不明白如何从提供的文件转到编译的框架文件。

他们是这样说的:

  • Importing the Framework There are 3 steps for adding the pre-compiled framework to your app in Xcode:

    • Drag the framework into your Linked Frameworks group in Xcode, choosing to copy the framework instead of simply referencing it.
    • Create a new Copy Files Build Phase for your app's main target.
    • Drag the framework from the Linked Frameworks folder into the new Copy Files Build Phase and select "Frameworks" as its destination.

For now, please use this as a private embedded framework rather than copying it to the system's framework folder upon installation.

框架:OAuthLibrary

当我编译它时,我得到一个 .a 文件,我不知道该怎么做。 (什么是链接框架组)?我把这个 .a 文件放在哪里?

谢谢。


编辑:我刚找到这个 RSOAuthEngine - OAuth with ARC但它适用于 OAuth 1。 除了 OAuth 2,我正在寻找相同的想法。

最佳答案

从 OAuthLibrary 的网页来看,它似乎只针对 Mac OS X,而不是 iOS。

此外,iOS 不支持第三方构建的框架。但是,支持静态库。因此,您需要 (1) 使用 OAuthLibrary 源文件构建静态库,或 (2) 将源文件直接合并到您的应用项目中。但这并没有改变这个库似乎只为 Mac OS X 设计的事实。

关于iphone - iOS-OAuth 实现如何创建框架? (简单的),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10695297/

相关文章:

ios - 将MessageObject从ObjC传递到Swift(虫洞)

python - 在 Dropbox API Python 上实现 OAuth

ios - MPMoviePlayerViewController 不通过流播放视频?

iPhone OSC 库

objective-c - 未安装 Sim 卡弹出在调用功能中显示两次

php - PHP for iOS 中的 JSON 编码多重查询返回

ios - 在 Swift 4 中使用掩码使 UIButton 文本透明

php - Laravel REST API - 无限循环

ruby - 从 Ruby 控制台测试 Ruby on Rails OAuth API

iphone - 将组件添加到路径 - Objective C