New computer, old provisioning profile but iPhone no longer works
Provisioning Profile problems, as usual. I'll keep it brief.
I got a new laptop. Installed XCode. Exported the provisioning p开发者_如何学JAVArofile from my old machine and imported it to the new one. My iPhone shows up fine in the devices list, connected, attached to the correct profile.
But when I try and debug using the device, it tell me
No provisioned iOS devices are available. Connect an iOS device or choose an iOS simulator as the destination.
I've tried refreshing, re-adding, re-creating. Its not interested.
Is there something I'm missing. Do I need to create new certificates? Do I need to re-create a whole new profisioning profile from scratch.
Thanks for any help or advice or emotional support you can give me.
the duncs
You have to export your certificates from the keychain app on the old machine and import them into the new machine's keychain. You can re-download your provisioning profiles from the provisioning center, but your certificates can't; they must be migrated.
EDIT: I might have muddled it up. I think it's your private keys that you have to export/import.
So, turns out there was nothing wrong with my keys or my certificates or provisioning profiles. For what its worth, if anyone else has the same problem:
My iPhone version was 4.2, but the default setting for the iOS device to build to was 4.3.
Fixed it by setting the iOS development target to 4.2.
School boy error I'm sure, but definitely not an obvious one to work out. An error along the lines of 'no iOS device of build version 4.3 could be found'. But anyway. Thanks to everyone for their help and time.
精彩评论