Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

syncing profiles and certificates between 2 computers
Started by d2gp Aug 24 2018 08:51 AM

8 replies to this topic
provisioning profiles

Best Answer d2gp , 25 August 2018 - 10:54 AM

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.

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

d2gp

[GLOBAL: userInfoPane.html]
d2gp
  • Contributor

  • 235 posts
  • Corona SDK

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.



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,853 posts
  • Corona Staff

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



[TOPIC: post.html]
#3

d2gp

[GLOBAL: userInfoPane.html]
d2gp
  • Contributor

  • 235 posts
  • Corona SDK

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.



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,853 posts
  • Corona Staff

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



[TOPIC: post.html]
#5

d2gp

[GLOBAL: userInfoPane.html]
d2gp
  • Contributor

  • 235 posts
  • Corona SDK

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



[TOPIC: post.html]
#6

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,853 posts
  • Corona Staff

You will need the same certificates on both computers.

 

Rob



[TOPIC: post.html]
#7

d2gp

[GLOBAL: userInfoPane.html]
d2gp
  • Contributor

  • 235 posts
  • Corona SDK

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?



[TOPIC: post.html]
#8

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,853 posts
  • Corona Staff

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.



[TOPIC: post.html]
#9

d2gp

[GLOBAL: userInfoPane.html]
d2gp
  • Contributor

  • 235 posts
  • Corona SDK

  Best Answer

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.




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: provisioning profiles