"iOS Framework Addition Failed Due to CocoaPods Installation Failure, Resulting in Non-Functional Xcode Project"

Hi all,

I’m encountering an issue while building for iOS in Unity, where I’m unable to add the iOS framework due to a CocoaPods installation failure. This results in a non-functional Xcode project. The following error message appears:

iOS framework addition failed due to a CocoaPods installation failure. This will likely result in a non-functional Xcode project.
  • Unity version: unity 2023.2.20f1

  • Xcode version: 16.1

  • CocoaPods version: 1.16.2

  • Reinstalling CocoaPods (sudo gem install cocoapods)

  • Running pod install

  • Trying to build the iOS project again in Unity (error persists)

  • Are there any additional steps or solutions to resolve this issue?

  • Is this issue specific to certain Unity or Xcode versions?

1 Like

Same problem here