LoginSignup
0
0

More than 1 year has passed since last update.

Unity Google Sign-In iOSクラッシュ

Last updated at Posted at 2022-09-30

環境

Unity2021.3.5
macOS 12.5 Montery
Xcode14

前提

Firebase Unity導入 [firebase]、
googlesamples/google-signin-unity [github]導入、
cocoapods導入、
pod対応 [github] (ビルド出来ないとか v4だとUIWebView使ってるのでv5に変更とか)
Firebaseコンソールでの Authentication設定 [console]
全て済んでいて ビルドして 一応Google認証が出来ている前提です。

問題

XcodeやiOSのバージョンによっては クラッシュするようです。
自分の環境では Xcode14 & iOS14.2 で起きました。

** Assertion failure in +[UIAlertAction _actionWithTitle:descriptiveText:image:style:handler:shouldDismissHandler:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKitCore/UIKit‑3901.4.5/UIAlertAction.m:42

iOSのアラート表示に対応できてないぽい?

解決

色々対処法をググりましたが見つからず。
ふと google-signin-unityの pull requetsを見てみると 対処法を発見 [github pr #205]

バージョン指定 [dependencies]と
コード変更[iOS対応]を行いましたら 無事動きました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0