mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #528] Build Error under Swift Package Manager in Xcode 11 Beta #348
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#348
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 @paulhimes on GitHub (Jun 15, 2019).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/528
Description:
When the library is imported into an Xcode 11 Beta project using the new built-in swift package manager, it fails to compile with the following errors in OAuthSiftHTTPRequest.swift:
.../SourcePackages/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:99:21: Use of unresolved identifier 'UIApplication'
.../SourcePackages/checkouts/OAuthSwift/Sources/OAuthSwiftHTTPRequest.swift:109:9: Use of unresolved identifier 'UIApplication'
The relevant code snippet:
OAuth Provider? (Twitter, Github, ..):
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
11.0 (Swift 5.0)
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: (Please fill in the version you are using.)
objective c
@phimage commented on GitHub (Jun 17, 2019):
Just to check, on Mojave or Catalina beta?
I have. It tested yet
Then this error exist when OauthSwift is used has app extension without the compilation flag set
@paulhimes commented on GitHub (Jun 17, 2019):
This was on Mojave. The app has no extensions.
@phimage commented on GitHub (Jun 19, 2019):
I add a missing import of
UIKitcompilator is more strict I think
There is also some issue on macOS in
OAuthWebViewControllerIt seems to have some issue to check swift version to make version compatible code
@paulhimes commented on GitHub (Jun 21, 2019):
Your changes fixed the problem for me. Thanks!