# MacOS Build - An error occurred while generating the build script

**URL:** <https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684>\
**Category:** macOS\
**Tags:** travis-build\
**Created:** [March 21, 2020, 5:56pm UTC](https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684 "2020-03-21T17:56:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![vpicaver](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/vpicaver/32/4088_2.png) [@vpicaver](https://travis-ci.community/u/vpicaver)\
**Post date:** [March 21, 2020, 5:56pm UTC](https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684/1 "2020-03-21T17:56:53Z")

</div>

I’m trying to get a macos instance running but I get the following error:

“An error occurred while generating the build script.”

[https://travis-ci.org/github/Cavewhere/cavewhere/jobs/665248127](https://travis-ci.org/github/Cavewhere/cavewhere/jobs/665248127)

There’s no other error messages.

I’m new to setting up mac builds. I got it to build a couple times, but I’m not sure if it’s my configuration script or a problem with travis.

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kellertuer/32/4092_2.png) [@kellertuer](https://travis-ci.community/u/kellertuer)\
**Post date:** [March 21, 2020, 6:12pm UTC](https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684/2 "2020-03-21T18:12:12Z")

</div>

I have the same problem for a day or two on my project, too, see

[https://travis-ci.org/github/JuliaManifolds/Manifolds.jl/jobs/665247596](https://travis-ci.org/github/JuliaManifolds/Manifolds.jl/jobs/665247596)

and these ran fine for quite a long time (and thank to travis for that!).  
So it might be a general problem.

---

<div class="post-metadata">

**Author:** ![vpicaver](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/vpicaver/32/4088_2.png) [@vpicaver](https://travis-ci.community/u/vpicaver)\
**Post date:** [March 21, 2020, 6:23pm UTC](https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684/3 "2020-03-21T18:23:12Z")

</div>

It seems like fails when it’s trying to queue the job.

---

<div class="post-metadata">

**Author:** ![falsandtru](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/falsandtru/32/3844_2.png) [@falsandtru](https://travis-ci.community/u/falsandtru)\
**Post date:** [March 21, 2020, 6:46pm UTC](https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684/4 "2020-03-21T18:46:16Z")

</div>

This error has appeared at least since 6 hours ago but [https://www.traviscistatus.com/](https://www.traviscistatus.com/) indicates no problem. That status is lying.

Some other similar job failures on OSX had sometimes appeared in the last few days but they were recoverable. But the current error is not.

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [March 21, 2020, 10:46pm UTC](https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684/5 "2020-03-21T22:46:02Z")

</div>

[Confirming](https://travis-ci.org/github/skvark/opencv-python/builds/665214575) that the error happens intermittently – even for jobs of the same build that differ only in a single envvar from passing ones – and some config envvars are missing from the erroring jobs’ configurations.  
So the problem is definitely in the processing infrastructure.

---

<div class="post-metadata">

**Author:** ![macdrevx](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/macdrevx/32/4095_2.png) [@macdrevx](https://travis-ci.community/u/macdrevx)\
**Post date:** [March 21, 2020, 11:05pm UTC](https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684/6 "2020-03-21T23:05:58Z")

</div>

I’m seeing this as well:

[https://travis-ci.org/github/GEOSwift/GEOSwift/builds/665071749](https://travis-ci.org/github/GEOSwift/GEOSwift/builds/665071749)

---

<div class="post-metadata">

**Author:** ![martianplatypus](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@martianplatypus](https://travis-ci.community/u/martianplatypus)\
**Post date:** [March 22, 2020, 1:08am UTC](https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684/7 "2020-03-22T01:08:56Z")

</div>

I’m experiencing the same problem:  
[https://travis-ci.com/github/martianplatypus/ansible-role-virtual-mac/builds/154419324](https://travis-ci.com/github/martianplatypus/ansible-role-virtual-mac/builds/154419324)

---

<div class="post-metadata">

**Author:** ![JOE1994](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/joe1994/32/4108_2.png) [@JOE1994](https://travis-ci.community/u/JOE1994)\
**Post date:** [March 22, 2020, 1:55am UTC](https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684/8 "2020-03-22T01:55:39Z")

</div>

I’m also having the same problem.  
_Funny thing is that slightly shortening a certain **`if-condition`** of my `.travis.yml` file makes the macos build work successfully…_

The only difference between the successful build and the failed build was as below.

- My successful build:

```auto
if: branch = windows_ci_test OR type = pull_request OR type = cron

```

- My failed build:

```auto
if: branch = windows_ci_test OR type = pull_request OR type = cron OR branch = auto OR branch = try

```

- Link to my successful `macos` build:  
[https://travis-ci.org/github/JOE1994/miri/jobs/665359306/config](https://travis-ci.org/github/JOE1994/miri/jobs/665359306/config)
- Link to my failed `macos` build:  
[https://travis-ci.org/github/JOE1994/miri/jobs/665365899/config](https://travis-ci.org/github/JOE1994/miri/jobs/665365899/config)

---

<div class="post-metadata">

**Author:** ![jkowalski](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/jkowalski/32/4102_2.png) [@jkowalski](https://travis-ci.community/u/jkowalski)\
**Post date:** [March 22, 2020, 4:00am UTC](https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684/9 "2020-03-22T04:00:37Z")

</div>

Same here.

[https://travis-ci.org/github/kopia/kopia/jobs/665370415](https://travis-ci.org/github/kopia/kopia/jobs/665370415)

Seeing this for both PRs and post-submits.

---

<div class="post-metadata">

**Author:** ![dporobic](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/dporobic/32/323_2.png) [@dporobic](https://travis-ci.community/u/dporobic)\
**Post date:** [March 22, 2020, 1:07pm UTC](https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684/10 "2020-03-22T13:07:44Z")

</div>

Same here [https://travis-ci.org/github/ksnip/ksnip/jobs/665262196](https://travis-ci.org/github/ksnip/ksnip/jobs/665262196)

---

<div class="post-metadata">

**Author:** ![jamessspanggg](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@jamessspanggg](https://travis-ci.community/u/jamessspanggg)\
**Post date:** [March 22, 2020, 1:19pm UTC](https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684/11 "2020-03-22T13:19:13Z")

</div>

Same here 😕 [https://travis-ci.org/github/reposense/RepoSense/jobs/665421814](https://travis-ci.org/github/reposense/RepoSense/jobs/665421814)

---

<div class="post-metadata">

**Author:** ![franz](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/franz/32/3832_2.png) [@franz](https://travis-ci.community/u/franz)\
**Post date:** [March 22, 2020, 2:02pm UTC](https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684/12 "2020-03-22T14:02:06Z")

</div>

Same problem on our side: [https://travis-ci.org/github/appleseedhq/appleseed/jobs/665314452](https://travis-ci.org/github/appleseedhq/appleseed/jobs/665314452)

---

<div class="post-metadata">

**Author:** ![groves](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/groves/32/4107_2.png) [@groves](https://travis-ci.community/u/groves)\
**Post date:** [March 22, 2020, 2:18pm UTC](https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684/13 "2020-03-22T14:18:31Z")

</div>

This happens consistently for us too: [https://travis-ci.org/github/gfx-rs/gfx/jobs/665481144](https://travis-ci.org/github/gfx-rs/gfx/jobs/665481144)

---

<div class="post-metadata">

**Author:** ![christianbundy](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/christianbundy/32/4109_2.png) [@christianbundy](https://travis-ci.community/u/christianbundy)\
**Post date:** [March 22, 2020, 2:40pm UTC](https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684/14 "2020-03-22T14:40:31Z")

</div>

Happening here too: [https://travis-ci.com/github/fraction/oasis/jobs/300758198](https://travis-ci.com/github/fraction/oasis/jobs/300758198)

Anyone have a workaround?

---

<div class="post-metadata">

**Author:** ![mikehardy](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/mikehardy/32/754_2.png) [@mikehardy](https://travis-ci.community/u/mikehardy)\
**Post date:** [March 22, 2020, 3:35pm UTC](https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684/15 "2020-03-22T15:35:25Z")

</div>

Yep “An error occurred while generating the build script.”  
Occurs intermittently (but more often than not) on any builds generated by this chunk of .travis.yml [https://github.com/ankidroid/Anki-Android/blob/master/.travis.yml#L57](https://github.com/ankidroid/Anki-Android/blob/master/.travis.yml#L57) / [Anki-Android](https://travis-ci.org/github/ankidroid/Anki-Android)

Is there anyone we can tag in for escalation? @banzaiman perhaps - I just don’t know who to tag in order to know it has some attention for investigation

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [March 22, 2020, 4:24pm UTC](https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684/16 "2020-03-22T16:24:57Z")

</div>

Sorry for the delay, everyone. We have identified the problem and working on mitigating an impact, as well as a fix.

We will be updating  
[https://www.traviscistatus.com/incidents/7mbxh26jk3sl](https://www.traviscistatus.com/incidents/7mbxh26jk3sl)

Thanks.

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kellertuer/32/4092_2.png) [@kellertuer](https://travis-ci.community/u/kellertuer)\
**Post date:** [March 22, 2020, 4:54pm UTC](https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684/17 "2020-03-22T16:54:27Z")

</div>

My tests seem to run again, Thanks for your awesome support!

---

<div class="post-metadata">

**Author:** ![dporobic](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/dporobic/32/323_2.png) [@dporobic](https://travis-ci.community/u/dporobic)\
**Post date:** [March 22, 2020, 6:35pm UTC](https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684/18 "2020-03-22T18:35:27Z")

</div>

Works for me too, many thanks 🙂

---

<div class="post-metadata">

**Author:** ![vpicaver](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/vpicaver/32/4088_2.png) [@vpicaver](https://travis-ci.community/u/vpicaver)\
**Post date:** [March 22, 2020, 8:53pm UTC](https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684/19 "2020-03-22T20:53:59Z")

</div>

Awesome! Works on my end. Thanks

---

<div class="post-metadata">

**Author:** ![franz](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/franz/32/3832_2.png) [@franz](https://travis-ci.community/u/franz)\
**Post date:** [March 23, 2020, 7:53am UTC](https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684/20 "2020-03-23T07:53:59Z")

</div>

Our macOS builds work again, thank you!

[Next page](https://travis-ci.community/t/macos-build-an-error-occurred-while-generating-the-build-script/7684.md?page=2)
