【Xcode】The app references non-public selectors : authenticationDidCompleteWithError:の解決法!アーカイブエラー

この記事からわかること
- Xcodeでアーカイブ時に発生したエラー(警告)の原因
- The app references non-public selectors:authenticationDidCompleteWithError:の解決方法
index
[open]
\ アプリをリリースしました /
エラー:The app references non-public selectors : authenticationDidCompleteWithError:
Xcodeでアプリをアーカイブしようとした際に以下のようなエラーが発生しアーカイブの際に「Uploaded with warnings」(警告)が発生してしまいました。

発生した警告エラー
The app references non-public selectors in Payload/プロジェクト.app/Frameworks/Realm.framework/Realm: authenticationDidCompleteWithError:
おすすめ記事:【Swift】iOSアプリをAppStoreで公開する方法!前準備とXcodeのビルドのやり方
警告エラーの原因
この警告エラーは特定のライブラリが古くなってしまっている場合にに発生することがある警告エラーのようです。
参考文献:Warning about use of private API when uploading app with Xcode 14 #7945
解決方法
今回はアプリに導入しているRealmSwiftが古くなっていることが原因のようなのでこれを更新することで解決することができました。
- アップデート前:10.29.0
- アップデート後:10.34.0
CocoaPodsでライブラリを更新するpod update
コマンドを実行します。
$ pod update
Update all pods
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Installing FirebaseAnalytics 10.3.0 (was 9.3.0)
〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜
Installing Realm 10.34.0 (was 10.29.0)
Installing RealmSwift 10.34.0 (was 10.29.0)
Removing FirebaseCoreDiagnostics
Removing GoogleDataTransport
Generating Pods project
Integrating client project
Pod installation complete! There are 5 dependencies from the Podfile and 15 total pods installed.
おすすめ記事:【Swift/Realm】Undefined symbolエラーでアーカイブ出来ない問題の解決法!
まだまだ勉強中ですので間違っている点や至らぬ点がありましたら教えていただけると助かります。
ご覧いただきありがとうございました。