Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XCode: App Installation Failed: Duplicate Bundle Identifier (Carthage) #1006

Closed
terryworona opened this issue Mar 30, 2018 · 4 comments
Closed
Labels

Comments

@terryworona
Copy link

terryworona commented Mar 30, 2018

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.
@terryworona terryworona changed the title XCode: App Installation Failed (Carthage) XCode: App Installation Failed: Duplicate Bundle Identifier (Carthage) Mar 30, 2018
@paulb777
Copy link
Member

paulb777 commented Mar 30, 2018

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.

@terryworona
Copy link
Author

@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.

@sgrgrsn
Copy link

sgrgrsn commented Jun 13, 2018

@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.

@sgrgrsn
Copy link

sgrgrsn commented Jun 13, 2018

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

@firebase firebase locked and limited conversation to collaborators Nov 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants