mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 20:55:57 +03:00
[GH-ISSUE #193] SharedApplication is unavailable (UIApplication+OAuthSwift.swift) #114
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#114
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 @NSURLSession0 on GitHub (Feb 24, 2016).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/193
I get the following compiler-error:
It refers to the following code from OAuthSwift:
Of course I set
OAUTH_APP_EXTENSIONS..Everywhere else in the code, OAuthSwift uses:
Is there a reason this if-statement is not used inside
UIApplication+OAuthSwift.swift?(Newest OAuthSwift version, installed with CocoaPods, but I also tried installing manually)
@phimage commented on GitHub (Feb 24, 2016):
(issue template?...)
so no any reason, code has been extracted one day, and will be never be called in extensions but in fact code doesn't compile
UIApplication+OAuthSwift.swiftmust be excluded for extensionor
must be added to this file
@NSURLSession0 commented on GitHub (Feb 24, 2016):
How can I do this? I installed with CocoaPods so I can't exclude a file or change code?
@phimage commented on GitHub (Feb 24, 2016):
many ways to change code
1/ edit the code temporary, but each pod update will erase the code change
2/ clone repository, edit, change your podfile to specify the path of the repository
, 'path' => '../the/local/path/where/OAuthSwift/is/OAuthSwift.podspec'3/ the best: fork , clone your fork. edit the code, commit the fix with a clear message
, :git => 'url of your git', until new OAuthSwift release