Skip to content

Support using Auth0 as a submodule, without Carthage/Swift Package Manager #872

Closed
@hoolrory

Description

@hoolrory

Checklist

  • I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
    I have looked into the API documentation and have not found a suitable solution or answer.
    I have searched the issues and have not found a suitable solution or answer.
    I have searched the Auth0 Community forums and have not found a suitable solution or answer.
    I agree to the terms within the Auth0 Code of Conduct.

Describe the problem you'd like to have solved

We have added Auth0.swift, JWTDecode.swift, and SimpleKeychain as submodules to our project. However since the Auth0 framework does not explicitly link JWTDecode.swift and SimpleKeychain build errors result on clean builds, as Auth0 may attempt to build before JWTDecode.swift and SimpleKeychain have.

Describe the ideal solution

We have forked Auth0 and made these dependencies explicit in Auth0 framework targets, by adding both JWTDecode and SimpleKeychain to "Link Binary With Libraries":
image

This makes the dependency explicit, and ensures that JWTDecode and SimpleKeychain are built before Auth0.

Alternatives and current workarounds

We attempted to resolve this by simply moving JWTDecode to higher in our dependency list, but because Xcode builds things in parallel this wasn't enough to make sure JWTDecode was built before Auth0.

Additional context

No response

Activity

added
feature requestA feature has been asked for or suggested by the community
on Sep 25, 2024
Widcket

Widcket commented on Jan 15, 2025

@Widcket
Contributor

Hi @hoolrory,

I haven't been able to take a look at this yet, but I'll try to do so next week.

Widcket

Widcket commented on Feb 18, 2025

@Widcket
Contributor

Hi @hoolrory, please update the PR with the current state of the master branch and mark the PR as ready for review.

added
waiting for customerThis issue is waiting for a response from the issue or PR author
on Feb 18, 2025
Widcket

Widcket commented on May 30, 2025

@Widcket
Contributor

This is now out in Auth0.swift 2.13.0.

removed
waiting for customerThis issue is waiting for a response from the issue or PR author
on May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestA feature has been asked for or suggested by the community

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @hoolrory@Widcket

        Issue actions

          Support using Auth0 as a submodule, without Carthage/Swift Package Manager · Issue #872 · auth0/Auth0.swift