Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

NSInternalInconsistencyException crash - Actions added to UIAlertController of style UIAlertActionStyleCancel must have a title when running in UIUserInterfaceIdiomPhone/Pad

オープン
#483 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
ios, objective-c

調査の方向性

GoogleSignIn/Sources/GIDEMMErrorHandler.m から始め、特に213行目と225行目付近のローカライズされたキャンセルアクションのパスを確認し、stack_trace_phone.txt および stack_trace_pad.txt と比較します。サポートされているロケールを使用して、issueで説明されているAPIエラーコードを再現します。ロケールが空のキャンセル文字列を提供した場合に、そのエラーによってiPhoneまたはiPadがクラッシュしなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug

Describe the bug

  • One of your localized strings for the cancel action is being returned as an empty string and crashing our app.
  • I suspect the issue is either on this line of code or this one

To Reproduce

When logging in your API needs to return the following error code.
One of your locales might be returning that empty string. We support the following in our app: Image

Expected behavior
App not to crash when that error is returned by your API

Screenshots

Environment

  • Device: iPhone 11, iPhone 12 Pro Max, iPhone 15 Pro Max, iPad Pro 13-inch (M4
  • OS: iOS 17.5.1, 17.6.1, iOS 18.0.1, iPad OS 17.5.1
  • Browser: [ e.g. Safari, Chrome, etc ]
  • GoogleSignIn SDK version: 7.1.0

Additional context

stack_trace_phone.txt
stack_trace_pad.txt

主要言語
Objective-C
スター
751
フォーク
282
平均マージ
2日 15時間
マージ済み PR(30日)
9

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

google/GoogleSignIn-iOS のほかの issue

google/GoogleSignIn-iOS の issue をすべて見る

似ている issue

Objective-C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。