断言:exportArchive:"Test.app"需要配置文件 [英] Assertion: exportArchive: "Test.app" requires a provisioning profile
问题描述
当我尝试在Xcode9中使用Xcode服务器集成持续集成时.我可以成功创建BOT并尝试进行集成,然后总会收到类似以下的错误 断言:exportArchive:"Test.app"需要配置概要文件."
When I tried to integrate continuous integration using Xcode server in my Xcode9. 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."
如何解决此问题?
推荐答案
我遇到了同样的问题,并按照以下步骤进行了修复.
I was experiencing the same problem and got it fixed following below steps.
尽管出现错误"exportArchive:需要配置概要文件",但成功创建了Archive,但未能创建IPA.
Though you get the error "exportArchive: requires a provisioning profile", successfully creates Archive but fails to create IPA.
假设创建分发IPA时遇到问题, Xcode 9已为分发IPA引入了持续集成.
Assuming the issue is faced creating Distribution IPA, Xcode 9 has introduced continuous integration for Distribution IPA's which is great.
其中一部分,Xcode Bot CI需要ExportOptions.plist来生成分发IPA.
-
创建ExportOptions.plist
一种获取ExportOptions.plist文件的方法(有关直接Apple的步骤,请参见下面的链接),尝试一次手动创建具有有效分发证书和配置文件的分发IPA,这将创建带有"ExportOptions.plist"的IPA. IPA文件.
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.
-
配置Bot中的更改
返回Bot集成,然后编辑所创建的bot的配置部分.选择
Go back to Bot integration and edit the configuration section of your created bot. Choose
使用自定义导出选项Plist
从导出选项"下拉列表中(请参阅所附的屏幕截图),并参考创建的"ExportOptions.plist"文件.现在,集成将无错误地创建存档和IPA.
from Export Options dropdown (Refer attached screen shot) and refer to the created "ExportOptions.plist" file. Now Integrating will create both Archive and IPA with no error.
请参阅 Apple的Xcode 9 + Xcode 9的Xcode Bot文档 + Xcode Bot更改
Refer Apple's Xcode 9 + Xcode Bot documentation for Xcode 9 + Xcode Bot changes
这篇关于断言:exportArchive:"Test.app"需要配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!