0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

macOS(BigSur)でUnity+iOSビルド時に「iOS framework addition failed due to a CocoaPods installation failure. This will will likel〜」

Posted at

環境

MacOS Big Sur(v11.4)
xcode 12.4
Unity2019.2.12f1

事象

UnityでiOSビルド時に下記エラーに遭遇。

iOS framework addition failed due to a CocoaPods installation failure. This will will likely result in an non-functional Xcode project.

After the failure, "pod repo update" was executed and succeeded. "pod install" was then attempted again, and still failed. This may be due to a broken CocoaPods installation. See: https://guides.cocoapods.org/using/troubleshooting.html for potential solutions.

pod install output:

Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "FirebaseCore":
  In Podfile:
    Firebase/Analytics (= 6.24.0) was resolved to 6.24.0, which depends on
      Firebase/Core (= 6.24.0) was resolved to 6.24.0, which depends on
        Firebase/CoreOnly (= 6.24.0) was resolved to 6.24.0, which depends on
          FirebaseCore (= 6.7.0)

あれ、CocoaPodsが動かなくなったかなと思ってみたら、
MacOSを先程 Catalinaから Big Surにアップデートしたタイミングで、
CocoaPodsが動かなくなっていました。

改善した方法

CocoaPodsのインストールや、インストールし直しはここが大変参考になりました。🙇
https://qiita.com/noprops/items/f997a438fabb64c15f10

次に、
で、MacOSアップグレードしたばかりだと、Unityで実行ボタンおすとこのようなエラーがでる場合は、
事前に許可しておく。

image.png

image.png

その後、iOSビルドしたら、無事エラーはなくっていました!

image.png

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?