xcodebuild fails when run from Jenkins (works in terminal)

前端 未结 1 2039
执笔经年
执笔经年 2021-02-08 15:59

I am trying to use Jenkins CI (on a Mac Mini with Mavericks) using the xcodebuild command to build my iOS projects. I played around with it for hours, but can\'t ge

相关标签:
1条回答
  • 2021-02-08 16:37

    I am using Xcode 5.0.2 (5A3005) and I am building with xcodebuild from command line as well, without using Jenkins plugin or the IDE.

    One note: Jenkins creates a new set of environment variables for each build step. Any new environment variables created in a certain build step are not replicated in the next build step. There are ways around it (but that is currently not your question). If your export command is running in a separate Execute Shell build step from your xcodebuild command, then it is has no affect.

    Here is something to try:
    On command line, type xcode-select -p.
    Then type set Copy paste the output to a good text editor that can diff

    Then run a Jenkins job, and in Execute Sell build step, use the same commands:
    xcode-select -p set Copy paste the output to a good text editor and than diff the two files.

    Firstly, compare the output of xcode-select -p is same.
    Then, apart from extra variables in the Jenkins execution (such as $BUILD_NUMBER, etc), there should be no differences.

    0 讨论(0)
提交回复
热议问题