Skip to content

AppAuth: sharedApplication is unavailable (extensions) #365

@perry-mitchell

Description

@perry-mitchell

Issue

I've gotten react-native-app-auth to work perfectly in the simulator on both iOS and Android. When trying to build & archive for release, however, I get the following error:

image

I'm building a mobile app with an extension, and I guess this is why AppAuth is dying. Would anyone know of a workaround for this?

My Podfile:

# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'

target 'BCAutoFillExtension' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for BCAutoFillExtension
  pod 'AppAuth', '0.95.0'

end

target 'Buttercup' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Buttercup
  pod 'AppAuth', '0.95.0'

end

Versions:

{
	"react-native": "^0.57.1",
    "react-native-app-auth": "^4.4.0"
}

Environment

  • Your Identity Provider: Google
  • Platform that you're experiencing the issue on: iOS
  • Are you using Expo? No

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions