【问题标题】:Xcode server bot: pre Scripts error Trigger Error: Trigger exited with non-zero status 1Xcode server bot: pre Scripts error Trigger Error: Trigger exited with non-zero status 1
【发布时间】:2020-11-25 08:13:24
【问题描述】:

我想设置一个 Xcode 服务器来存档我的项目,但我遇到了一个 tigger 问题,即 tigger 错误 Tigger exited with non-zero status 1.

这是我的脚本:

#!/bin/sh
#make sure the encoding is correct
export LANG=en_US.UTF-8

# fix the path so Ruby can find it's binaries
export PATH=/usr/local/bin:$PATH
# echo "PATH: $PATH"

cd "${XCS_PRIMARY_REPO_DIR}/ZHXShop/"

/usr/local/bin/pod install --verbose --no-repo-update

我的项目名为ZHXShop,“/usr/local/bin/pod”也可以在我的电脑查找器中搜索,我的项目中没有使用Fastlane

My env:
Xcode -> 11.5
Mac os -> 10.15.5
Cocoapods -> 1.9.1
Ruby -> 2.7.0
rvm -> 1.29.10 

最后希望你的回答

【问题讨论】:

    标签: xcode xcode-server xcode-server-bots xcs


    【解决方案1】:

    尝试在致电pod install 后立即添加wait。您可以在编辑 Xcode Server Bot 时将其添加为 Add Pre-Integration Triggers。

    #!/bin/sh
    
    # cd to where your Podfile is
    cd "${XCS_PRIMARY_REPO_DIR}/ZHXShop/"
    
    # add to the path, or explicitly add the path to your `pod` call
    export PATH=/usr/local/bin:$PATH
    pod install --verbose --no-repo-update
    
    wait
    

    我在wait找到的笔记

    wait() 函数暂停其调用线程的执行,直到状态信息可用于子进程或有信号 收到了。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-12-19
    • 2021-12-16
    • 1970-01-01
    • 1970-01-01
    • 2022-12-28
    • 1970-01-01
    • 1970-01-01
    • 2016-11-14
    相关资源
    最近更新 更多