Skip to content

Compile Issues with XCode 26.4: "Ambiguous use of" #1471

@aweichandt-lm

Description

@aweichandt-lm

Checklist

Description

Compile issues while building the project:

/node_modules/react-native-auth0/ios/NativeBridge.swift:474:19: error: ambiguous use of 'other'
case .other: if let cause = self.cause as? AuthenticationError {
^
/ios/Pods/Auth0/Auth0/DPoP/DPoPError.swift:51:23: note: found this candidate in module 'Auth0'
public static let other: DPoPError = .init(code: .other)
^
/ios/Pods/Auth0/Auth0/WebAuthError.swift:72:23: note: found this candidate in module 'Auth0'
public static let other: WebAuthError = .init(code: .other)
^
/node_modules/react-native-auth0/ios/NativeBridge.swift:493:19: error: ambiguous use of 'other'
case .other: code = NativeBridge.dpopErrorCode
^
/ios/Pods/Auth0/Auth0/DPoP/DPoPError.swift:51:23: note: found this candidate in module 'Auth0'
public static let other: DPoPError = .init(code: .other)
^
/ios/Pods/Auth0/Auth0/WebAuthError.swift:72:23: note: found this candidate in module 'Auth0'
public static let other: WebAuthError = .init(code: .other)
^
/node_modules/react-native-auth0/ios/NativeBridge.swift:494:19: error: ambiguous use of 'unknown'
case .unknown: code = NativeBridge.dpopErrorCode
^
/os/Pods/Auth0/Auth0/DPoP/DPoPError.swift:55:23: note: found this candidate in module 'Auth0'
public static let unknown: DPoPError = .init(code: .unknown(""))
^
/ios/Pods/Auth0/Auth0/WebAuthError.swift:76:23: note: found this candidate in module 'Auth0'
public static let unknown: WebAuthError = .init(code: .unknown(""))

Reproduction

  1. Download and compile the example project using XCode 26.4
  2. Notice the compile error

Additional context

No response

react-native-auth0 version

5.4.0

React Native version

0.83.1

Expo version

Platform

iOS

Platform version(s)

15.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions