Cesare
Cesare

Reputation: 9419

Work with somebody else on the same project and the same bundle ID

So my client has invited me under their Apple ID as a developer team member. How do we work on the same project together?

The reason I ask this is because whenever I try to run the app on my device Xcode complains with

The app ID "com.bundle-id-that-client-registered-under-their-account" cannot be registered to your development team. Change your bundle identifier to a unique string to try again.

The bundle ID the Xcode project is using is registered under my client account. This means that I should either find a way to work with it or change it (this would mean that I would have to interchange bundle ID every time we work together with git). Any hints on how to fix this?

Upvotes: 3

Views: 698

Answers (1)

Nordeast
Nordeast

Reputation: 1373

I would just change the bundle ID to one I can build and then write a git pre-commit hook to stop myself from accidentally committing the bundle ID change, Git Docs. Or even better have it ignore that change automatically.

The Bundle ID is stored in the .pbxproj file for your project. I think a simple way of checking would be doing a grep (text search) in the file for your exact bundle ID you are using and stopping the commit if you find it.

Another way is by checking out this gem created by the CocoaPods community which helps when working with Xcode project files.

https://github.com/CocoaPods/Xcodeproj

Upvotes: 3

Related Questions