auth0/Lock.swift

Cannot add package withouth Package.swift file

moopoints opened this issue · 2 comments

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

  • SwiftUI project using Xcode 14.1
  • Lock.swift 2.9.0
  • Add via SPM using Xcode 14.x according to the instructions provided by auth0

Environment

  • **Version of Lock.swift used: 2.9.0
  • **Version of iOS: 16
  • **Version of Xcode: 14.1

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

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