syncing profiles and certificates between 2 computers

hi - I have a desktop and a laptop, and I have two apps on the stores.

I have both distribution and development profiles for both apps. However, only the Dist profile for app A and the Dev profile for app B are available when building on the laptop. The reverse is true on my desktop.

This situation is not by design. I’m assuming it is that way because of the particular machine i was using when I created the profiles. 

How do I sync my computers so all profiles are available on both machines?  Is it just a matter of copying a profile to the machine that doesn’t have it, and double-clicking it? Or do I have to do something in XCode? Thanks.

Your provisioning profiles are store in a folder in your home directory ~/Library/MobileDevice/Provisioning Profiles

I personally don’t use Xcode to manage these, I use the “Download” button from the web portal, which brings the .mobileprovision file into your ~/Downloads folder.  Then from the Terminal/Command line I do:

cd ~/Library/MobileDevice/Provisioning\ Profiles mv ~/Downloads/\*.mobileprovision .

Then restart Corona.

Rob

Thanks, I tried that, but I got:

Davids-MacBook-Air:Provisioning Profiles davidp$ mv ~/Downloads/*.mobiledevice .
mv: rename /Users/davidp/Downloads/*.mobiledevice to ./*.mobiledevice: No such file or directory

so I tried

Davids-MacBook-Air:Provisioning Profiles davidp$ mv ~/Downloads/*.mobileprovision .

The profile got moved to the Provisioning Profiles folder but it’s still not showing up in Corona, even after a restart. Also, if I list the contents of the PP folder, I notice that all the profiles have long alpha-numeric filenames before the .mobileprovision extension, whereas the profile I just moved there still just has the name I gave it.

I tried restarting the computer then downloading the profile again and double-clicking in the downloads folder but that didn’t help either.

Ooops typo on my part.

The profiles with the long alpha-numeric names are ones managed by Xcode. The ones with reasonable filenames are the ones you downloaded. The name doesn’t really matter. Corona pulls information out of the contents of the profile. 

Look and see if there Unsuable Profiles. It could indicate that a key/certificate problem exists.

Rob

Yes, there are unusable profiles (it says “no private certificate found”. Do I need to download the cert as well?

You will need the same certificates on both computers.

Rob

technically they actually are on both computers because I keep all my certs and profiles in my dropbox folder, and both computers are always synced to it with a local copy of the whole folder on each machine. Is it the act of double-clicking on a cert or a profile that ‘activates’ it on that computer? If so then do I just need to double click on everything on both computers?

You have to install the certificates in Keychain Access on both computers. I think you can double-click on them or you can open Keychain Access and drag and drop or follow menu actions to install the certificate as well.

I found that just double clicking everything didn’t help. What I did just now that seemed to work was I went into my apple dev account using my desktop computer and edited the profile that’s not appearing on the desktop. I changed the certificate associated with it and downloaded it. Now that profile appears on my desktop computer.

Your provisioning profiles are store in a folder in your home directory ~/Library/MobileDevice/Provisioning Profiles

I personally don’t use Xcode to manage these, I use the “Download” button from the web portal, which brings the .mobileprovision file into your ~/Downloads folder.  Then from the Terminal/Command line I do:

cd ~/Library/MobileDevice/Provisioning\ Profiles mv ~/Downloads/\*.mobileprovision .

Then restart Corona.

Rob

Thanks, I tried that, but I got:

Davids-MacBook-Air:Provisioning Profiles davidp$ mv ~/Downloads/*.mobiledevice .
mv: rename /Users/davidp/Downloads/*.mobiledevice to ./*.mobiledevice: No such file or directory

so I tried

Davids-MacBook-Air:Provisioning Profiles davidp$ mv ~/Downloads/*.mobileprovision .

The profile got moved to the Provisioning Profiles folder but it’s still not showing up in Corona, even after a restart. Also, if I list the contents of the PP folder, I notice that all the profiles have long alpha-numeric filenames before the .mobileprovision extension, whereas the profile I just moved there still just has the name I gave it.

I tried restarting the computer then downloading the profile again and double-clicking in the downloads folder but that didn’t help either.

Ooops typo on my part.

The profiles with the long alpha-numeric names are ones managed by Xcode. The ones with reasonable filenames are the ones you downloaded. The name doesn’t really matter. Corona pulls information out of the contents of the profile. 

Look and see if there Unsuable Profiles. It could indicate that a key/certificate problem exists.

Rob

Yes, there are unusable profiles (it says “no private certificate found”. Do I need to download the cert as well?

You will need the same certificates on both computers.

Rob

technically they actually are on both computers because I keep all my certs and profiles in my dropbox folder, and both computers are always synced to it with a local copy of the whole folder on each machine. Is it the act of double-clicking on a cert or a profile that ‘activates’ it on that computer? If so then do I just need to double click on everything on both computers?

You have to install the certificates in Keychain Access on both computers. I think you can double-click on them or you can open Keychain Access and drag and drop or follow menu actions to install the certificate as well.

I found that just double clicking everything didn’t help. What I did just now that seemed to work was I went into my apple dev account using my desktop computer and edited the profile that’s not appearing on the desktop. I changed the certificate associated with it and downloaded it. Now that profile appears on my desktop computer.