ios - Jenkins 构建失败: Xcode couldn't find a provisioning profile matching

标签 ios xcode macos jenkins code-signing-certificate

我让 Jenkins Master 在 Ubuntu 的 Aws 实例上运行,并创建了 mac 笔记本电脑作为从机,当我在 mac loptop 中使用 Xcode 运行时,构建成功,但当我从 Jenkins 触发它时,它给出了。

     error : 

        Check dependencies : No profiles for 'com.xyz.abc' were found: Xcode couldn't find a provisioning profile matching 'com.xyz.abc'. Code signing is required for product type 'Application' in SDK 'iOS 10.2' 

* ARCHIVE FAILED * The following build commands failed: Check dependencies (1 failure) Build step 'Xcode' marked build as failure.

PS:

我已经尝试阅读之前的文章,但大多数都让 Jenkins 在 MAC 上运行,而且 xcode 也在同一台服务器上运行,这不是我的情况。

由于我能够在 xcode 中运行我的项目,我觉得我的代码签名和配置文件是正确的。此外,现在我可以使用创建 IPA Xcode 选项:

产品 --> Mac 笔记本电脑中 Xcode 中的存档

那为什么jenkins无法创建ipa呢?

我还将 login.keychain 中的所有 key 移至 system.keychain

我已经使用java Slave-agent.jnlp将jenkins master(ubuntu)连接到slave(mac)

Jenkins 控制台输出:

================================================== =========== == 可用的配置文件 [ios] $/usr/bin/security find-identity -p codesigning -v

27) XXXXX“Mac 开发人员:Ashish Karpe (YYYYY)”

这与 mac 笔记本电脑中的 xcode 类似,所以我无法弄清楚她出了什么问题!

最佳答案

最后我得到了解决方案,现在我可以看到我们可以使用 MAC 笔记本电脑作为从属设备从 Jenkins Master(Ubuntu AWS 实例)构建 IPA。

我的错误是创建了太多配置文件。当我使用一个配置文件(10 位开发团队 ID)时,我在 Mac 笔记本电脑上使用 Xcode,该配置文件工作正常,因此我在 Jenkins 端使用了相同的配置文件,但失败了!

此外,当我在 Jenkins master 上配置配置配置文件并尝试使用另一个对我有用的 10 位开发团队 ID 时,Jenkins 显示了所有检测到的配置文件。

现在我可以使用 Jenkins build 创建 IPA,但我不确定为什么我的配置文件在 Xcode 中有效,但在 Jenkins 中无效。

因为,我的任务已完成,将其标记为答案,因此如果其他人遇到类似问题,他可以尝试使用 10 位开发团队 ID 来使其正常工作!

希望这对某人有帮助,因为我非常沮丧并且开始讨厌 IOS 部署!

关于ios - Jenkins 构建失败: Xcode couldn't find a provisioning profile matching,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46580092/

相关文章:

linux - 共享库的 Makefile?

iphone - 将 UILabel 限制为 500 个字符,然后在 IOS 中截断 UIlabel

ios - 如果为 setKeepAliveTimeout 方法设置 15 分钟,VOIP 应用程序不会及时唤醒

ios - Application Loader 由于可执行名称拒绝二进制文件

iOS Storyboard - 有什么方法可以根据屏幕大小更改字体大小?

iphone - AVAudioPlayer isPlaying 始终返回 null

objective-c - 小图标应用程序 ListView osx

macos - Mac系统服务-应用程序 "(null)"

iOS : Background Thread Exceptions Not Crashing

ios - 使用 NSURLConnection 获取压缩响应数据?