gpt4 book ai didi

continuous-integration - Xcode Bots 缺少创建 Pods 目录的写入权限。

转载 作者:行者123 更新时间:2023-12-02 01:41:35 24 4
gpt4 key购买 nike

我在 iOS document 之后设置了一个 Xcode6 服务器和机器人程序.

机器人使用提供的用户名和密码连接到 Bitbucket git。我在同步最新代码时没有遇到任何问题。

然后我为“集成前”设置以下触发脚本,如下所示:

cd/Users/seagull/workspace/develop ---> 源码根目录

pods 安装

然后这会失败并显示错误消息,例如 _xcsbuildd 在日志的触发部分中没有对“mkdir Pods”的写入权限:

我想 xcode 机器人正在使用 linux 用户 _xcsbuildd(这是 xcode 机器人)。但是,由于代码是通过当前用户 checkout 的,_xcsbuildd 没有创建“Pods”目录或“Podfile.lock”或在项目文件夹中添加 Pods.xcproject 文件的写入权限。

我还使用“chmod”为所有文件夹授予所有用户写权限,但 Xcode 生气说我不应该解锁写权限。我应该如何解决这个权限问题?无论如何我可以强制 xcode bot 充当当前用户吗?不是_xcsbuildd? (我通过在触发脚本中添加“whoami”来将 _xcsbuildd 标识为当前用户以进行测试)。

最佳答案

Then I setup the following trigger script for the "Before Integration" like the following:

cd /Users/seagull/workspace/develop ---> Source root

pod install

您的源代码根目录将由 _xcsbuildd 创建,位于/Library/Developer/XcodeServer/Integrations/Caches/{integrationID}/Source/{repo name}

您的 bot 将位于 Source 文件夹中,因此如果您有一个名为“myApp”的存储库,其中 Podfile 位于第一级:

cd myApp
pod install

这是对机器人 CI 变量的引用- Access build folder in Xcode Server CI bot run (env variables?)

关于continuous-integration - Xcode Bots 缺少创建 Pods 目录的写入权限。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28221579/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com