React-native-apple-authentication: Use of undeclared identifier 'ASAuthorizationAppleIDButtonTypeSignUp'; did you mean 'ASAuthorizationAppleIDButtonTypeSignIn'?

Created on 22 Apr 2020  路  9Comments  路  Source: invertase/react-native-apple-authentication

After yarn add @invertase/react-native-apple-authentication and cd ios, pod install dependencies, encountered this issue when building on Xcode
image

Most helpful comment

Maybe Mac OS Catalina would be something worth mentioning in the prerequisites? I updated my mac to Catalina to update Xcode and it's working fine now on Xcode 11.5. 11.0 is the max for Xcode on Mojave

All 9 comments

after upgrading Xcode, its fixed

I have the same problem.
Xcode v11.0 and Mac OS Mojave 10.14.6. Is there another option other than upgrade for Catalina and update Xcode?

Developing for iOS implies having up to date Xcode I think, as a basic assumption. I'm not aware of any alternatives.

Maybe Mac OS Catalina would be something worth mentioning in the prerequisites? I updated my mac to Catalina to update Xcode and it's working fine now on Xcode 11.5. 11.0 is the max for Xcode on Mojave

Sounds about right - PRs happily accepted :pray: github makes it trivial for docs updates, it's all in the browser auto-forks etc

I did the suggestion from Xcode and replaced the occurrences by ASAuthorizationAppleIDButtonTypeSignIn and it worked

@qwertzguy if you're not running current Xcode, you will have lots of related troubles. Rather than change the working code here I urge you to upgrade Xcode to current (12.2 as of quite recently) so that APIs apple mandates you use are available to you.

ASAuthorizationAppleIDButtonTypeSignin fixed it for me instead of ASAuthorizationAppleIDButtonTypeSignUp

@syedamirali14 don't do that, update your Xcode! 12.4 is current best for react-native projects. 12.5 will be as soon as a couple build issues in react-native are sorted out.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kaankarakas picture kaankarakas  路  9Comments

odarino picture odarino  路  9Comments

metawort picture metawort  路  6Comments

VictorKolb picture VictorKolb  路  7Comments

aqib1604 picture aqib1604  路  6Comments