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

NSInternalInconsistencyException GIDEMMErrorHandler #309

Closed
VBegoyan opened this issue May 11, 2023 · 2 comments · May be fixed by #373
Closed

NSInternalInconsistencyException GIDEMMErrorHandler #309

VBegoyan opened this issue May 11, 2023 · 2 comments · May be fixed by #373
Labels
bug Something isn't working triage Issues that need to be triaged

Comments

@VBegoyan
Copy link

Describe the bug
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Actions added to UIAlertController of style UIAlertActionStyleCancel must have a title when running in UIUserInterfaceIdiomPhone'.
Crash: **NSInternalInconsistencyException GIDEMMErrorHandler

To Reproduce
Steps to reproduce the behavior:

  1. Open Picsart
  2. Select Google icon on a very first page to Sign_in or to register
    Actual result:
    Request is being sent and app crashes

Expected behavior
No crash should happen

Screenshots
No screenshots

Environment

  • Device: iPhone [iphone 11, ipad 9, iphone 8, etc]
  • OS: [ 24% 16.3.1, 12.6% 16.4.1, 8% 15.7.3, etc ]

Additional context
Add any other context about the problem here.

@VBegoyan VBegoyan added bug Something isn't working triage Issues that need to be triaged labels May 11, 2023
@mdmathias
Copy link
Collaborator

@VBegoyan could you add more details? I don't know what Picsart is. A stack trace showing how we got to this error would be helpful.

I think it could be this App on the App Store. I downloaded it and was able to go through the sign in flow with Google up to the point where the app asked me to start a trial or pay money.

If I had to guess, I'd say that the error you're seeing is coming from one of these places:

  1. https://github.com/google/GoogleSignIn-iOS/blob/main/GoogleSignIn/Sources/GIDEMMErrorHandler.m#L213
  2. https://github.com/google/GoogleSignIn-iOS/blob/main/GoogleSignIn/Sources/GIDEMMErrorHandler.m#L225
  3. https://github.com/google/GoogleSignIn-iOS/blob/main/GoogleSignIn/Sources/GIDEMMErrorHandler.m#L243

Somehow you're getting into a situation where there is an enterprise mobility management (EMM) error to be handled and the title isn't being created correctly for the cancel button (per 'Actions added to UIAlertController of style UIAlertActionStyleCancel must have a title when running in UIUserInterfaceIdiomPhone'. from your issue description above).

I'm not sure how that can happen given the links I've shared above, each of which use -[GIDEMMErrorHandler cancelString].

@mdmathias
Copy link
Collaborator

I'm closing this due to inactivity. Please comment here if this issue persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Issues that need to be triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants