react-native-auth0: 'A0Auth0-Swift.h' file not found

Checklist

Description

Upgrading to v5.0.0-beta.1 and creating a build gives the error below.

I’m also using @react-native-firebase in my project which requires static frameworks. Not sure but maybe the issue has something to do with that?

❌  (../../node_modules/react-native-auth0/ios/A0Auth0.mm:5:9)

  3 | #import <React/RCTUtils.h>
  4 | 
> 5 | #import "A0Auth0-Swift.h"
    |         ^ 'A0Auth0-Swift.h' file not found
  6 | #define ERROR_CANCELLED @{@"error": @"a0.session.user_cancelled",@"error_description": @"User cancelled the Auth"}
  7 | #define ERROR_FAILED_TO_LOAD @{@"error": @"a0.session.failed_load",@"error_description": @"Failed to load url"}
  8 | 

Reproduction

  1. Install react-native-auth0@5.0.0-beta.1
  2. Create build

Additional context

No response

react-native-auth0 version

5.0.0-beta.1

React Native version

0.79.2

Expo version

53

Platform

iOS

Platform version(s)

18.0

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 7
  • Comments: 17 (5 by maintainers)

Most upvoted comments

Thanks for testing and confirming! Apologies for the delay in the release — we’re currently working on some additional fixes and plan to cut a new release later this week.

We’ve started investigating this issue and will share an update once our analysis is complete.

Same problem here as well. The v5.0.0-beta.1 solved the prebuild step, but I get the same error here when building the app.

The issue has been resolved and is available in version v5.0.0-beta.2

Wondering the same. I’m very happy the fix is in, and would like to be able to merge my “upgrade to Expo SDK 53” PR but this is the last missing piece 😅

(I did manually patch the fix from https://github.com/auth0/react-native-auth0/pull/1195 and confirmed it resolves the issue)

Hi there, I see something was merged. Is there any ETA on when we should see this in a beta to test?

@subhankarmaiti I disabled static linking temporarily and can confirm the issue persists.

@jfbaraky I don’t use Expo, but I still get the error. Unsure if that helps, but might save you some extra headache.