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

error: cannot find 'WebAuthenticationSessionOptions' in scope #24

Closed
discentem opened this issue Oct 23, 2021 · 0 comments
Closed

error: cannot find 'WebAuthenticationSessionOptions' in scope #24

discentem opened this issue Oct 23, 2021 · 0 comments

Comments

@discentem
Copy link

error: cannot find 'WebAuthenticationSessionOptions' in scope
    @State private var webAuthenticationSessionOptions =  WebAuthenticationSessionOptions()
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/brandon_kurtz/swiftauthexperiment/Sources/swiftauthexperimenttarg/main.swift:19:35: error: cannot find 'gitHubAuthorizationURLString' in scope
                        TextField(gitHubAuthorizationURLString, text: $webAuthenticationSessionOptions.urlString)
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/brandon_kurtz/swiftauthexperiment/Sources/swiftauthexperimenttarg/main.swift:25:35: error: cannot find 'gitHubAuthorizationURLString' in scope
                        TextField(gitHubAuthorizationURLString, text: $webAuthenticationSessionOptions.callbackURLScheme)
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1/2] Compiling swiftauthexperimenttarg main.swift

I'm guessing that my personal Package.swift file is wrong in some way but would appreciate any advice if you can spot the problem:

// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "swiftauthexperiment",
    platforms: [
        .macOS(.v11)
    ],
    dependencies: [
        .package(url: "https://github.com/stleamist/BetterSafariView.git", .upToNextMajor(from: "2.3.1"))
    ],
    targets: [
        .target(name: "swiftauthexperimenttarg", dependencies: ["BetterSafariView"])
    ]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant