mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 20:55:57 +03:00
[GH-ISSUE #503] Newb question #332
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#332
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @EdwardD20 on GitHub (Jan 4, 2019).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/503
Description:
Will this work with Yahoo, specifically Yahoo Weather as it now requires OAuth1 (https://developer.yahoo.com/weather/)?
I followed the "simplest way to add it to your app" instructions and the 4 steps. Are the other steps (Carthage, CocoaPods also required?
macOS development - when I added import OAuthSwift to my AppDelegate.swift code, I get the error: No such module 'OAuthSwift'
OAuth Provider? (Twitter, Github, ..):
Yahoo
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
9.3 (Swift 4.1)
9.0 (Swift 4.0)
9.0 (Swift 3.2)
8.x (Swift 3.x)
8.0 (Swift 2.3)
7.3.1
other: Xcode 10.1 (Please fill in the version you are using.)
objective c
@EdwardD20 commented on GitHub (Jan 5, 2019):
I may have started to figure this out. For macOS, instead of the Build Phase/Target Dependency of OAuthSwift, it needs to be OAuthSwiftMacOS. The Deployment Target also requires 10.10 or higher.
@EdwardD20 commented on GitHub (Jan 6, 2019):
How can I get my OAuth1Swift/oauthswift.client.get call to run synchronously?
@phimage commented on GitHub (Jan 7, 2019):
Why do you want to do that?
It is often a bad practice. You can add a semaphore to wait in calling thread but you will block the thread
Maybe try to achieve beautiful code with promise/future or rxswift
Ps: next time create a new topic for a new question and close the resolved one.
@EdwardD20 commented on GitHub (Jan 7, 2019):
M. Marchand - Sorry for not following the protocols. I am new to GitHub and new to this OAuth process. I am grateful that you put this together.
I didn't want to open too many "newb" questions and clutter up the queue.
For the Installation, I determined the problem but nothing was fixed so I don't feel I should close the Issue. The main page needs to change to:
For the sync code, I tried added these couple of lines but it isn't working. Can you suggest another option?
Thank you.
@EdwardD20 commented on GitHub (Jan 8, 2019):
You specifically mentioned a semaphore so I tried that as well:
@phimage commented on GitHub (Jan 8, 2019):
The xcode target is OAuthSwiftMacOS, the generated framework is called also OAuthSwift
According to the OS, you must drag the good framework into dependencies
N.B. Then never to this in Main thread, you will block everything, network call must be done in background thread