auth0 / Lock.swift

A Swift & iOS framework to authenticate using Auth0 and with a Native Look & Feel
https://auth0.com/lock
MIT License
260 stars 108 forks source link

Cannot add package withouth Package.swift file #715

Closed moopoints closed 1 year ago

moopoints commented 1 year ago

Describe the problem

It appears that adding the Lock.swift package via SPM requires a Package.swift file. A Package.swift file does not exist if one is adding and managing packages using Xcode's SPM. Attempting to add the package immediately fails (screenshot).

Error message is: the package manifest at '/Package.swift' cannot be accessed (/Package.swift doesn't existe in the file system)

What was the expected behavior?

Ability to add package via SPM

Reproduction

Environment

Widcket commented 1 year ago

Hi @moopoints, thanks for raising this.

You get this error if you already have Auth0.swift v2 as a dependency. Lock.swift uses Auth0.swift v1.

If you remove Auth0.swift from your app, it will install successfully:

Screenshot 2023-04-24 at 10 39 55 PM
Widcket commented 1 year ago

Closing due to inactivity. Please feel free to ping if you'd prefer to reopen.