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 trialElizabeth Hill
1,147 PointsXcode error?
So I added the Facebook SDK & done all the steps. When I went to go run the app on the simulator I ran into an error that says
'No Visible interface for FBAccessTokenData declares the selector userID'
I looked on stack overflow & was advised to clean the project, or restart it... Didn't work...
Error:
NSString *facebookId = [user objectForKey:kPAPUserFacebookIDKey];
return (facebookId && facebookId.length > 0 && [facebookId isEqualToString:[[[PFFacebookUtils session] accessTokenData] userID]]);
Steve Hunter
57,712 PointsGreat work - I've forked that and am now checking it out into my Xcode. If I get it to work, I'll let you know! (This is the hard bit!!)
I'm getting pod issues, which is understandable ... I may be a while!!
Elizabeth Hill
1,147 PointsSteve Hunter
57,712 PointsSorted that out so the pods work OK.
Now I'm getting issues with FBSDKCoreKit etc. I've not been through the steps you have so my environment isn't set up the same.
Elizabeth Hill
1,147 PointsJust follow the directions on the read me file
I got this source code from Parse's Anypic
[https://github.com/ParsePlatform/Anypic/blob/master/README.md]
Steve Hunter
57,712 PointsCool, thanks, I downloaded the SDK earlier so I'll try to get that included in the project tomorrow.
1 Answer
Steve Hunter
57,712 PointsHi Elizabeth,
I don't think this is an error with Xcode. I'm not sure what the error is because we have very little to go on here.
Word for word:
So I added the Facebook SDK - added to what?
** & done all the steps**- which were?
As in a few of my responses to your other issues you've been having; it will be worth spending ten minutes pushing your code to a Github repo so that, 1. you can roll back to a working version and 2. we can have an application with a live error in front of us.
Steve.
Elizabeth Hill
1,147 PointsSorry for the late response. I created a new repository in Github & copied the link, clicked in source control in Xcode, clicked on configured (my project), then clicked remote & created a remote. Then I clicked push & pushed the project to Github.. Somehow I think I did this all wrong
[https://github.com/Charminglopez/AnypicPro.git]
I really need help with this project.... I have never submitted a repo to Github before so if I did it wrong, please inform me.
I will do it over again if I need too. I just have one error in my project. I pinned it so you can at least see a snap shot
Steve Hunter
57,712 PointsApologies for the late reply on this - I only just saw the notification.
It looks like your repo didn't go to plan, no. I'm just going to create a new application and push that up to Github so I can write step-by-step points on how we might solve that issue.
I'm in my project - go to Source Control. You should have pretty much right at the top "AnypicPro - master". In there, there's the option to Configure that project. Select that. In there, select Remotes at the top - you need to create an empty repo in Github now, I think. It asks for a name and an address - the address is the link to that repo.
Once you've created the repo in Github it gives you the option to copy the address to clipboard - do that and paste it into the Address field in Xcode. Select the Add Remote button. Click Done. Then go back to Source Control and click Push ...
You'll end up with something resembling my repo - https://github.com/OnlySteveH/GithubRepoTest - with all the code in there which isn't what you've currently got. You may be able to just do some parts of that or you may have to start from scratch.
Elizabeth Hill
1,147 PointsElizabeth Hill
1,147 PointsWow, thanks! :) I finally put it on Github.
[https://github.com/Charminglopez/Anypiccc.git]
Steve Hunter