Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
OAuth Consumer library for Objective-C (works on the iPhone)
Objective-C C++ C Ruby
Branch: master
Pull request Compare This branch is 12 commits ahead of lgalabru:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
platform/iPhone
src
tests
.gitignore
README.textile

README.textile

An OAuth Consumer implementation in Objective-C

The original code for this project was provided by the OAuthConsumer project on Google Code.
To get started please see the Using OAuth Consumer tutorial in the original project wiki.

Integrating OAuthConsumer into your project

OAuthConsumer is compiled as a static library, and the easiest way to add it to your project is to use Xcode’s “dependent project” facilities. Here is how:

  1. Clone the repository and make sure you store it in a permanent place, because Xcode will need to reference the files every time you compile your project.
  2. Drag and drop the “OAuthConsumer.xcodeproj” file under “oauth-objc/src” onto the root of your Xcode project’s “Groups and Files” sidebar.
  3. A dialog will appear — make sure “Copy items” is unchecked and “Reference Type” is “Relative to Project” before clicking “Add”.
  4. Link the OAuthConsumer static library to your project:
    • Doubleclick the “OAuthConsumer.xcodeproj” item that has just been added to the sidebar
    • Go to the “Details” table and you will see a single item: libOAuthConsumer.a.
    • Check the checkbox on the far right of libOAuthConsumer.a.
  5. Add OAuthConsumer as a dependency of your project, so Xcode compiles it whenever you compile your project:
    • Expand the “Targets” section of the sidebar and double-click your application’s target.
    • Go to the “General” tab and you will see a “Direct Dependencies” section.
    • Click the “+” button, select “OAuthConsumer”, and click “Add Target”.
  6. Tell your project where to find the OAuthConsumer headers:
    • Open your “Project Settings” and go to the “Build” tab.
    • Look for “Header Search Paths” and doubleclick it.
    • Add the relative path from your project’s directory to the “oauth-objc/src” directory.
  7. While you are in Project Settings, go to “Other Linker Flags” under the “Linker” section, and add “-ObjC” and “-all_load” to the list of flags.
  8. You’re ready to go. Just #import “OAuthConsumer/OAuthConsumer.h” anywhere you want to use OAuthConsumer classes in your project.
Something went wrong with that request. Please try again.