简体   繁体   English

如何将UDID添加到Xcode托管供应配置文件

[英]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. 几个月前,我使用crashlytics分发我的应用程序的beta版本,一切都很顺利。 Recently, I was asked to add another beta tester. 最近,我被要求添加另一个beta测试人员。 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... 这似乎是一个简单的事情在crashlytics,我点击“分发”添加了一个电子邮件地址,所有似乎都很好,除了一个混乱的消息沿着......

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. 不幸的是,Crashlytics没有“引导我”添加丢失的设备。 I did however login to Apple Developer , went to Devices > iOS, and manually added the tester's UDID. 然而我登录Apple Developer ,转到Devices> iOS,并手动添加了测试者的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). 目标beta测试者是(Bryan)。 The phone also shows up under Wayne's profile because he attempted to add the phone as well to help troubleshoot. 这款手机也出现在Wayne的个人档案中,因为他也尝试添加手机以帮助排除故障。 In any case, you'll notice on the last page that it reports that the UDID is missing from the"iOSTeam Provisioning Profile: *". 在任何情况下,您都会在最后一页上注意到它报告“iOSTeam Provisioning Profile:*”中缺少UDID。

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. iOSTeam Provisioning Profile仅包含原始的3个设备,我无法从Apple Developer进行编辑,因为此配置文件显然是在Xcode中管理的。 I created a new profile which includes the added device, but I'm unsure how to get Crashlytics to recognize and use it. 我创建了一个包含添加设备的新配置文件,但我不确定如何让Crashlytics识别并使用它。

I found this article titled " Fabric for Enterprise Beta Distribution " on Twitter Community which suggested the user run this command... 我在Twitter社区发现了一篇名为“ Fabric for Enterprise Beta Distribution ”的文章,建议用户运行此命令...

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

Which I did (after shutting down Fabric), but it had zero affect. 我做了什么(在关闭Fabric之后),但它没有影响。

Any suggestion as to what my next steps ought to be? 关于我的下一步应该是什么的任何建议? After much head scratching, I'm at a loss. 经过多次头疼,我不知所措。

在此输入图像描述

After adding the UDID into provisioning profile, you should do the following. 将UDID添加到配置文件后,您应该执行以下操作。

  1. Go to Xcode->Settings->Accounts. 转到Xcode->设置 - >帐户。
  2. Select your team-> View Details...-> Download All. 选择您的团队 - >查看详细信息...->全部下载。
  3. After download finishes, select updated provisioning profile in the Build Settings ( old should become invalid ). 下载完成后,在Build Settings中选择更新的配置文件(旧的应该变为无效)。
  4. Press Cmd+Shift+K , Cmd+Alt+Shift+K to clean the project and build folder. Cmd+Shift+KCmd+Alt+Shift+K清除项目和构建文件夹。
  5. Archive your project and distribute again. 存档您的项目并再次分发。

For me only works: 对我来说只有作品:

Go to folder 转到文件夹

~/Library/MobileDevice/Provisioning Profiles/ 〜/ Library / MobileDevice / Provisioning Profiles /

Delete all the Provisioning Profiles 删除所有配置文件

Press CMD + K CMD + K

Archive again. 再次存档。

Tested it in Xcode 10 Xcode 10中测试过

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM