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

この記事からわかること

  • Xcodeアーカイブ時に発生したエラー(警告)の原因
  • The app references non-public selectors:authenticationDidCompleteWithError:解決方法

index

[open]

\ アプリをリリースしました /

みんなの誕生日

友達や家族の誕生日をメモ!通知も届く-みんなの誕生日-

posted withアプリーチ

エラー:The app references non-public selectors : authenticationDidCompleteWithError:

Xcodeでアプリをアーカイブしようとした際に以下のようなエラーが発生しアーカイブの際に「Uploaded with warnings」(警告)が発生してしまいました。

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

発生した警告エラー

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が古くなっていることが原因のようなのでこれを更新することで解決することができました。

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エラーでアーカイブ出来ない問題の解決法!

まだまだ勉強中ですので間違っている点や至らぬ点がありましたら教えていただけると助かります。

ご覧いただきありがとうございました。

searchbox

スポンサー

ProFile

ame

趣味:読書,プログラミング学習,サイト制作,ブログ

IT嫌いを克服するためにITパスを取得しようと勉強してからサイト制作が趣味に変わりました笑
今はCMSを使わずこのサイトを完全自作でサイト運営中〜

New Article

index