Search code examples
iosxcodeentitlements

Xcode 6.4 Entitlement bug


I just copied a project to a new VM running Xcode 6.4

There are two errors (with Fixes) that appear

GameCenter: "Add the Game Center entitlement to your App Id"

In-App Purchase: "Add the In-app purchase entitlement to your App Id".

This doesn't make sense because I already did this and everything was working on my old machine. These errors appeared when I copied my project to the VM.

I clicked "Fix Issue", and it added entitlement for Game Center.

But when I click "Fix Issue" for the In-App Purchase entitlement, it fixes the In-App Purchase entitlement problem, but the Game Center appears again!

When I click "Fix Issue" for the Game Center problem, it fixes Game Center, but then cause the In-App Purchase entitlement problem to appear!

I have no idea how to work around this! Everything was working fine on my old machine, and all I did was copy from the project from a backup to a new VM. There have been no code changes / file changes.


Solution

  • This bug had something to do with opening a project created with a previous version of Xcode.

    I fixed it by creating a new project and just copying / Addding all my files again. Didn't have to get any new certs or anything.