Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Add UDID to Xcode Managed Provisioning Profile

A couple months ago, I used crashlytics to distribute beta versions of my app and all was well. Recently, I was asked to add another beta tester. This appears to be a simple thing in crashlytics, I clicked "distribute" added an email address, and all seemed fine except for a confounding message along the lines of...

You’ll need to distribute again to make a build that will work for this tester. We’ll walk you through adding any missing devices to the correct provisioning profile

Unfortunately, Crashlytics didn't "walk me through" adding missing devices. I did however login to Apple Developer, went to Devices > iOS, and manually added the tester's UDID. I'm pretty sure this is correct, but I'm unsure how to "distribute again". See the screenshot below for a walk through of what I tried.

The target beta tester is (Bryan). The phone also shows up under Wayne's profile because he attempted to add the phone as well to help troubleshoot. In any case, you'll notice on the last page that it reports that the UDID is missing from the"iOSTeam Provisioning Profile: *".

The iOSTeam Provisioning Profile only contains the original 3 devices and I'm unable to edit from Apple Developer since this profile is apparently managed in Xcode. I created a new profile which includes the added device, but I'm unsure how to get Crashlytics to recognize and use it.

I found this article titled "Fabric for Enterprise Beta Distribution" on Twitter Community which suggested the user run this command...

rm -rf ~/Library/Caches/com.crashlytics.mac

Which I did (after shutting down Fabric), but it had zero affect.

Any suggestion as to what my next steps ought to be? After much head scratching, I'm at a loss.

enter image description here

like image 709
Chris Geirman Avatar asked Jan 19 '16 18:01

Chris Geirman


1 Answers

After adding the UDID into provisioning profile, you should do the following.

  1. Go to Xcode->Settings->Accounts.
  2. Select your team-> View Details...-> Download All.
  3. After download finishes, select updated provisioning profile in the Build Settings ( old should become invalid ).
  4. Press Cmd+Shift+K, Cmd+Alt+Shift+K to clean the project and build folder.
  5. Archive your project and distribute again.
like image 189
Dennis Pashkov Avatar answered Nov 11 '22 22:11

Dennis Pashkov