Skip to content

[Bug] iOS default pod install fails due to failed iOSResolver depenencies #940

@StephenHodgson

Description

@StephenHodgson

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2022.3.19f1
  • Firebase Unity SDK version: 10.6.0
  • Source you installed the SDK: UPM
  • Problematic Firebase Component: Core
  • Other Firebase Components in use: All
  • Additional SDKs you are using: None
  • Platform you are using the Unity editor on: MacOS
  • Platform you are targeting: iOS
  • Scripting Runtime:IL2CPP
  • Pre-built SDK from the open-source from this repo: https://github.com/GameWorkstore, but I also double checked and downloaded prebuilt from website, and the result is the same.

[REQUIRED] Please describe the issue here:

Simply building from Unity targeting iOS build target in Unity Editor:

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
Adding spec repo `trunk` with CDN `https://cdn.cocoapods.org/`
[!] CocoaPods could not find compatible versions for pod "Firebase/Analytics":
  In Podfile:
    Firebase/Analytics (= 10.15.0)

None of your spec sources contain a spec satisfying the dependency: `Firebase/Analytics (= 10.15.0)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

pod repo update output:

Updating spec repo `trunk`

Steps to reproduce:

Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)? Yes
What's the issue repro rate? 100%

What happened? How can we make the problem occur?

On iOS build export.

Recommended Fix

Change how podfile is generated by removing the extra / in the name of the pod names for the FIrebase deps

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions