简体   繁体   English

断言:exportArchive:“ Test.app”需要配置文件

[英]Assertion: exportArchive: “Test.app” requires a provisioning profile

When I tried to integrate continuous integration using Xcode server in my Xcode9. 当我尝试在Xcode9中使用Xcode服务器集成持续集成时。 I can successfully create the BOT and I tried to integrate then I always got the error like “Assertion: exportArchive: "Test.app" requires a provisioning profile.” 我可以成功创建BOT并尝试进行集成,然后总会收到类似“声明:exportArchive:“ Test.app”需要配置文件”的错误。

How can solve this issue? 如何解决这个问题?

I was experiencing the same problem and got it fixed following below steps. 我遇到了同样的问题,并按照以下步骤进行了修复。

Though you get the error "exportArchive: requires a provisioning profile", successfully creates Archive but fails to create IPA. 尽管出现错误“ exportArchive:需要配置概要文件”,但成功创建了Archive,但未能创建IPA。

Assuming the issue is faced creating Distribution IPA, Xcode 9 has introduced continuous integration for Distribution IPA's which is great. 假设在创建分发IPA时遇到问题, Xcode 9引入了对分发IPA的持续集成,这是很棒的。

As part of that, Xcode Bot CI requires ExportOptions.plist for generating Distribution IPA's. 作为其一部分,Xcode Bot CI需要ExportOptions.plist来生成分发IPA。

  • Create ExportOptions.plist 创建ExportOptions.plist

One way to get ExportOptions.plist file (Refer the below link for direct Apple's steps), Try manually creating a Distribution IPA once, with valid Distribution certificates and Profiles which will create an IPA with "ExportOptions.plist" file along with IPA. 一种获取ExportOptions.plist文件的方法(有关直接Apple的步骤,请参阅下面的链接),尝试一次使用有效的分发证书和配置文件手动创建分发IPA,这将与“ ExportOptions.plist”文件一起创建IPA。

  • Configure changes in Bot 配置Bot中的更改

Go back to Bot integration and edit the configuration section of your created bot. 返回到Bot集成,然后编辑创建的机器人的配置部分。 Choose 选择

Use Custom Export Options Plist 使用自定义导出选项Plist

from Export Options dropdown (Refer attached screen shot) and refer to the created "ExportOptions.plist" file. 从“导出选项”下拉列表中(请参阅附加的屏幕截图),并参考创建的“ ExportOptions.plist”文件。 Now Integrating will create both Archive and IPA with no error. 现在,集成将无错误地创建存档和IPA。

Bot配置的屏幕截图

Refer Apple's Xcode 9 + Xcode Bot documentation for Xcode 9 + Xcode Bot changes 有关Xcode 9 + Xcode Bot的更改,请参阅Apple的Xcode 9 + Xcode Bot文档

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

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