Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'RNAppAuthAuthorizationFlowManager.h' file not found #956

Open
raffojoao opened this issue Apr 1, 2024 · 2 comments
Open

'RNAppAuthAuthorizationFlowManager.h' file not found #956

raffojoao opened this issue Apr 1, 2024 · 2 comments
Labels
needs-triage Waiting for a member of the team to confirm

Comments

@raffojoao
Copy link

raffojoao commented Apr 1, 2024

Issue

Hello,

I'm encountering this error in AppDelegate.h after upgrading from RN 0.61.5 to 0.69.12. I have already attempted the solutions proposed here, but none of them seemed to work. Any ideas?

Here is the content of AppDelegate.h:

#import <React/RCTBridgeDelegate.h>
#import <UIKit/UIKit.h>
#import <React/RCTLinkingManager.h>
#import <AppAuth/AppAuth.h>
#import "RNAppAuthAuthorizationFlowManager.h"

@interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate, RNAppAuthAuthorizationFlowManager>

@property (nonatomic, strong) UIWindow *window;
@property (nonatomic, weak) id<RNAppAuthAuthorizationFlowManagerDelegate> authorizationFlowManagerDelegate;

@end

And Podfile:

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '12.4'
install! 'cocoapods', :deterministic_uuids => false

def shared_pods
  $RNFirebaseAsStaticFramework = true
  pod 'Firebase', :modular_headers => true
  pod 'FirebaseCore', :modular_headers => true
  pod 'FirebaseCoreInternal', :modular_headers => true
  pod 'GoogleUtilities', :modular_headers => true
  pod 'Permission-AppTrackingTransparency', :path => "../node_modules/react-native-permissions/ios/AppTrackingTransparency"
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'AppAuth', '>= 0.91'
end

target 'stix dev' do
  config = use_native_modules!

  # Flags change depending on the env values.
  flags = get_default_flags()

  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => false,
    :fabric_enabled => flags[:fabric_enabled],
    # :flipper_configuration => FlipperConfiguration.enabled,
    # An absolute path to your application root.
    :app_path => "#{Pod::Config.instance.installation_root}/.."
  )

  use_frameworks! :linkage => :static
  # Pods for stix
  shared_pods

  def find_and_replace(dir, findstr, replacestr)
    Dir[dir].each do |name|
        text = File.read(name)
        replace = text.gsub(findstr,replacestr)
        if text != replace
            puts "Fix: " + name
            File.open(name, "w") { |file| file.puts replace }
            STDOUT.flush
        end
    end
    Dir[dir + '*/'].each(&method(:find_and_replace))
  end

  post_install do |installer|
    react_native_post_install(installer)
    __apply_Xcode_12_5_M1_post_install_workaround(installer)
  end

end

target 'stix dev (embedded)' do
  # Pods for stix
  shared_pods
end

target 'stix staging' do
  # Pods for stix
  shared_pods
end

target 'stix staging (embedded)' do
  # Pods for stix
  shared_pods
end

target 'stix' do
  # Pods for stix
  shared_pods
end


target 'stix (embedded)' do
  # Pods for stix
  shared_pods
end

Environment

  • Platform where you're experiencing the issue: iOS
  • react-native Version: 0.69.12
  • react-native-app-auth Version: 7.1.3
  • Are you using Expo?: No
@richardReitz
Copy link

Same issue!

@carbonrobot carbonrobot added the needs-triage Waiting for a member of the team to confirm label May 2, 2024
@faizplus faizplus self-assigned this May 13, 2024
@faizplus
Copy link
Contributor

@raffojoao I am not able to reproduce this issue. Can you create a repo where this can be reproduced? Also have a look at react native upgrade tool for your version and troubleshooting section

@faizplus faizplus removed their assignment May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Waiting for a member of the team to confirm
Projects
None yet
Development

No branches or pull requests

4 participants