Firebase-ios-sdk: XCode: App Installation Failed: Duplicate Bundle Identifier (Carthage)

Created on 30 Mar 2018  路  4Comments  路  Source: firebase/firebase-ios-sdk

Environment

  • Xcode version: 9.2 (9C40b)
  • Firebase SDK version: 4.11.0
  • Firebase Component: Auth, Core

Setup

  • Using Carthage as per these instructions.
  • My Cartfile contains the following:
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json"
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAuthBinary.json"
  • Each framework is imported and added to my target's Linked Frameworks:

  • I've ensured Firebase.framework isn't added to Linked Frameworks as per these instructions:

  • I've added -ObjC to Other Linker Flags.
  • I've added the frameworks to my /usr/local/bin/carthage copy-frameworks run script (also tried without):

Problem

When building to device, Xcode reports: App installation failed: _This application or a bundle it contains has the same bundle identifier as this application or another bundle that it contains. Bundle identifiers must be unique._:

Questions

Note: My app's bundle identifier does not match anything found in Firebase.

  1. Any way to resolve this?
  2. If not, is there a better way to see the logs? I've looked @ device logs and there isn't anything available. Debug console isn't printing anything either.
Carthage

Most helpful comment

Thanks for the report!

The Firebase frameworks should not be add to copy-frameworks. They contain static libraries that are linked at build time.

Please make sure you remove all of them, clean your environment, and retry.

If you're still having the issue, you'll likely need to share a reproducible example for us to help you further.

All 4 comments

Thanks for the report!

The Firebase frameworks should not be add to copy-frameworks. They contain static libraries that are linked at build time.

Please make sure you remove all of them, clean your environment, and retry.

If you're still having the issue, you'll likely need to share a reproducible example for us to help you further.

@paulb777 thanks that worked!

I previously tried removing all the Firebase* frameworks from copy-frameworks, but forgot the clean step. Duh. I should have known :) Rookie mistake.

Marking resolved. Thanks again.

@paulb777 Could we add a comment to the Carthage.md file saying that the frameworks should NOT be added to the Carthage build phase. I was in doubt when I followed the guide today.

@paulb777 I've created a pull request for adding a comment in the Carthage.md

Was this page helpful?
0 / 5 - 0 ratings