I have now narrowed down the problem. An App ID has more than what you can see (called a Prefix). com.YourCompany.YourAppName is really YourDeveloper#.com.YourCompany.YourAppName. So because I transferred the app from another account, my device has the app downloaded from the AppStore (myOldDeveloper#.com.MyCompany.MyAppName. Now the app has (myNewDeveloper#.com.MyCompany.MyAppName). I can see this clearly looking where you create a provision profile and you pick the app id.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: