Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample Project Loading Issue #206

Closed
mparrish91 opened this issue Feb 14, 2017 · 20 comments
Closed

Sample Project Loading Issue #206

mparrish91 opened this issue Feb 14, 2017 · 20 comments

Comments

@mparrish91
Copy link

mparrish91 commented Feb 14, 2017

http://i.imgur.com/lpRIaHY.gif

Hi I downloaded the example project and everything seems to work well, but when I try to search for a listing nothing shows.
Anything I should try?

My reddit app account info is added in the json file

Thanks for the great example btw

@sonsongithub
Copy link
Owner

Do you login with any reddit accounts?
I think search function may need a user authentication. You can login reddit.com left upper button.

@mparrish91
Copy link
Author

mparrish91 commented Feb 15, 2017

have been struggling to get a user authenticated

i must be doing something wrong

link

@sonsongithub
Copy link
Owner

It seems that your setting is almost good.
I guess, callback URL is no invalid? Could one use "+" in URL scheme?
If your URL does not have any problems, currently I do not have any suggestions...

@mparrish91
Copy link
Author

removed the plus and made a new app on reddit site. seems to work. asked me to open in reddit. after i accepted. but the account didn't get added to the tableview

@mparrish91
Copy link
Author

oh just noticed this in console

OSStatus error:[-25300] The specified item could not be found in the keychain.
OSStatus error:[-25300] The specified item could not be found in the keychain.
tokenIsNotAvailable

@sonsongithub
Copy link
Owner

sonsongithub commented Feb 15, 2017

Did you enable the application to use "Keychain Sharing" and "Data protection" in Xcode?
Like this,
xcode

@mparrish91
Copy link
Author

yeah the sample project came with that. this came up on google

http://stackoverflow.com/questions/16845169/error-when-trying-to-obtain-a-certificate-the-specified-item-could-not-be-found

I need to look into it more

@sonsongithub
Copy link
Owner

I got it.
Maybe, you should confirm that your tools can pass tests of the MiniKeychain or KeychainAccess.

@mparrish91
Copy link
Author

mparrish91 commented Feb 16, 2017 via email

@sonsongithub
Copy link
Owner

I think that your problem is caused by Keychain.
When func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) is called, it's not caused by reddift.framework if the callback URL includes oAuth key.
Please check it.

@mparrish91
Copy link
Author

mparrish91 commented Feb 16, 2017 via email

@sonsongithub
Copy link
Owner

sonsongithub commented Feb 16, 2017

  • You should use original application identifier, like "com.mparrish91.redditapp".
  • You should use original keychain identifier, like "com.mparrish91.redditapp.keychain".
  • You should enable to use "Data protection" on "Certificates, identifier and profiles" on iTunes connect.
    -- "Certificates, identifier and profiles" -> "Identifier" -> "AppIDs" -> "Data Protection"
  • You should change identifier of URI Types from com.sonson.reddfit to other one.

@mparrish91
Copy link
Author

mparrish91 commented Feb 17, 2017 via email

@mparrish91
Copy link
Author

mparrish91 commented Feb 17, 2017 via email

@sonsongithub
Copy link
Owner

I don't have much time to struggle with your project....
How about checking whether KeychainAccess example app runs on your environment correctly?
https://github.com/kishikawakatsumi/KeychainAccess

@mparrish91
Copy link
Author

mparrish91 commented Feb 21, 2017 via email

@sonsongithub
Copy link
Owner

My folder is as same as git repository.
You should check out it again, carefully. Recently, at the latest commit, I changed structure of the reddift sample application source code.

git clone --recursive https://github.com/sonsongithub/reddift.git
carthage update --platform iOS

After above commands, check whether following file and folders exist at each path.

/framework/vendor/HTMLSpecialCharacters
/framework/vendor/MiniKeychain
/Carthage/Build/iOS/FLAnimatedImage.framework
/Carthage/Build/iOS/YouTubeGetVideoInfoAPIParser.framework
/Carthage/Build/iOS/UZTextView.framework

@mparrish91
Copy link
Author

mparrish91 commented Feb 21, 2017 via email

@mparrish91
Copy link
Author

mparrish91 commented Feb 21, 2017 via email

@sonsongithub
Copy link
Owner

It's the remains of the code that I tried to make the tab browser.

Repository owner locked and limited conversation to collaborators Mar 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants