Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Photo Browser iPhone App Connecting to an API using OAuth Introducing API and OAuth 2.0

harpreet grewal
harpreet grewal
19,018 Points

unable to import SimpleAuth

I am able to install simpleauth but unable to import the header file

4 Answers

harpreet grewal
harpreet grewal
19,018 Points

i figured it out.. i had to create the pod file not in the project folder but the folder with xcode project file. thanks for you help tho.

Stone Preston
Stone Preston
42,016 Points

did you switch the the workspace that was created for you after you ran the pod command? You have to use that workspace if you want your pods to work

harpreet grewal
harpreet grewal
19,018 Points

i did and its still not importing..

Stone Preston
Stone Preston
42,016 Points

In the file explorer on the left side of Xcode, you should see a project labeled Pods. expand that folder and there should be a folder called pods. Expand that and make sure a simple auth folder is present. If it is, it should probably be working and your import statement should look like this:

#import <SimpleAuth/SimpleAuth.h>

try copying that in and see if you get an error