# Can Not build for OS X any longer, what happened ?

**URL:** <https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056>\
**Category:** macOS Desktop\
**Created:** [August 15, 2017, 1:52am UTC](https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056 "2017-08-15T01:52:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![sierramanagement](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/8e7dd6/32.png) [@sierramanagement](https://forums.solar2d.com/u/sierramanagement)\
**Post date:** [August 15, 2017, 1:52am UTC](https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056/1 "2017-08-15T01:52:52Z")

</div>

sent 10.82K bytes &nbsp;received 48 bytes &nbsp;21.74K bytes/sec

total size is 39.69M &nbsp;speedup is 3650.69

Building: Processing plugins

ERROR: build command failed: cp -Rv “/var/folders/kq/m3zzrsj50w72rj\_y2lb2d3tw0000gn/T/CLtmpV0q5oX-plugins”/\* “/Users/rogerholmes/Desktop/BusMasterOSX.app/Contents/Plugins”

ERROR: with exit code 1 and output:&nbsp;

cp: /var/folders/kq/m3zzrsj50w72rj\_y2lb2d3tw0000gn/T/CLtmpV0q5oX-plugins/\*: No such file or directory

ERROR: build command failed: find “/Users/rogerholmes/Desktop/BusMasterOSX.app/Contents/Plugins” -type d -empty -delete

ERROR: with exit code 1 and output:&nbsp;

find: -delete: /Users/rogerholmes/Desktop/BusMasterOSX.app/Contents/Plugins: relative path potentially not safe

/var/folders/kq/m3zzrsj50w72rj\_y2lb2d3tw0000gn/T/CLtmpV0q5oX-resource.car -\> /Users/rogerholmes/Desktop/BusMasterOSX.app/Contents/Resources/Corona/resource.car

/Volumes/ssd480/lua\_projects/BusMasterOSX/Icon-osx.icns -\> /Users/rogerholmes/Desktop/BusMasterOSX.app/Contents/Resources/Icon-osx.icns

Building: Cleaning up

macOS build succeeded in 1 seconds

---------- Launching: ~/Desktop/BusMasterOSX.app ----------

2017-08-14 20:51:12.006 BusMasterOSX[11608:1802344] ERROR: Runtime error

?:0: attempt to index global ‘display’ (a nil value)

stack traceback:

?: in main chunk

---------- Finished: ~/Desktop/BusMasterOSX.app (exit code 11) ----------

---

<div class="post-metadata">

**Author:** ![ojnab](https://forums.solar2d.com/user_avatar/forums.solar2d.com/ojnab/32/94_2.png) [@ojnab](https://forums.solar2d.com/u/ojnab)\
**Post date:** [August 15, 2017, 10:22am UTC](https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056/2 "2017-08-15T10:22:37Z")

</div>

> ---------- Launching: ~/Desktop/BusMasterOSX.app ----------
> 
> 2017-08-14 20:51:12.006 BusMasterOSX[11608:1802344] ERROR: Runtime error
> 
> ?:0: attempt to index global ‘display’ (a nil value)

Above could indicate that you are trying to access the display library in your config.lua ( eg. to calculate the aspect ratio )

This causes a crash on OSX but not on iOS.

---

<div class="post-metadata">

**Author:** ![sierramanagement](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/8e7dd6/32.png) [@sierramanagement](https://forums.solar2d.com/u/sierramanagement)\
**Post date:** [August 15, 2017, 1:54pm UTC](https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056/3 "2017-08-15T13:54:37Z")

</div>

Thanks, That was exactly right !

---

<div class="post-metadata">

**Author:** ![iandunbar](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/i/bcef8e/32.png) [@iandunbar](https://forums.solar2d.com/u/iandunbar)\
**Post date:** [September 15, 2017, 6:13pm UTC](https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056/4 "2017-09-15T18:13:18Z")

</div>

I am having this issue as well. This did not use to be the case with older versions of Corona. Is there a plan to fix this?

---

<div class="post-metadata">

**Author:** ![Bektur](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/b/8baadc/32.png) [@Bektur](https://forums.solar2d.com/u/Bektur)\
**Post date:** [September 15, 2017, 7:54pm UTC](https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056/5 "2017-09-15T19:54:20Z")

</div>

Hi, Ian.

Bug report was added to our internal tracker and will be resolved as soon as possible.

---

<div class="post-metadata">

**Author:** ![theromero](https://forums.solar2d.com/user_avatar/forums.solar2d.com/theromero/32/231_2.png) [@theromero](https://forums.solar2d.com/u/theromero)\
**Post date:** [November 1, 2017, 7:12pm UTC](https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056/6 "2017-11-01T19:12:22Z")

</div>

Is there a workaround for this or do I need to keep waiting for a fix? I cannot update my desktop versions until this is fixed or there’s a workaround.

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [November 2, 2017, 4:18pm UTC](https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056/7 "2017-11-02T16:18:43Z")

</div>

You will need to wait for a fix. Does your desktop version need to compute content areas? I know it would be a pain, but you could have two config.lua’s one for desktop builds that doesn’t call APIs and a mobile version that does.

I’ll ask our engineer’s about the status of this.

Rob

---

<div class="post-metadata">

**Author:** ![theromero](https://forums.solar2d.com/user_avatar/forums.solar2d.com/theromero/32/231_2.png) [@theromero](https://forums.solar2d.com/u/theromero)\
**Post date:** [November 3, 2017, 11:13am UTC](https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056/8 "2017-11-03T11:13:41Z")

</div>

Well, our desktop version uses all the same code as the other versions which is one of the reasons why we love Corona.

The config is the only place we calculate aspect ratio because we have to set the application.content values. If we didn’t have to do that in config this wouldn’t be an issue.

It’s messy to have to make another config and then have to rename them every time we make a new build.

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [November 3, 2017, 1:49pm UTC](https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056/9 "2017-11-03T13:49:38Z")

</div>

I asked engineering to look into getting this fixed. I know it’s a real problem.

Rob

---

<div class="post-metadata">

**Author:** ![vlads](https://forums.solar2d.com/user_avatar/forums.solar2d.com/vlads/32/29_2.png) [@vlads](https://forums.solar2d.com/u/vlads)\
**Post date:** [November 4, 2017, 3:34pm UTC](https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056/10 "2017-11-04T15:34:02Z")

</div>

Hello! I’m glad to tell this issue should be fixed in latest daily build ([2017.3169](https://developer.coronalabs.com/release/2017/3169/))

---

<div class="post-metadata">

**Author:** ![theromero](https://forums.solar2d.com/user_avatar/forums.solar2d.com/theromero/32/231_2.png) [@theromero](https://forums.solar2d.com/u/theromero)\
**Post date:** [November 4, 2017, 4:50pm UTC](https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056/11 "2017-11-04T16:50:06Z")

</div>

Great, thanks!

---

<div class="post-metadata">

**Author:** ![ojnab](https://forums.solar2d.com/user_avatar/forums.solar2d.com/ojnab/32/94_2.png) [@ojnab](https://forums.solar2d.com/u/ojnab)\
**Post date:** [August 15, 2017, 10:22am UTC](https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056/12 "2017-08-15T10:22:37Z")

</div>

> ---------- Launching: ~/Desktop/BusMasterOSX.app ----------
> 
> 2017-08-14 20:51:12.006 BusMasterOSX[11608:1802344] ERROR: Runtime error
> 
> ?:0: attempt to index global ‘display’ (a nil value)

Above could indicate that you are trying to access the display library in your config.lua ( eg. to calculate the aspect ratio )

This causes a crash on OSX but not on iOS.

---

<div class="post-metadata">

**Author:** ![sierramanagement](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/s/8e7dd6/32.png) [@sierramanagement](https://forums.solar2d.com/u/sierramanagement)\
**Post date:** [August 15, 2017, 1:54pm UTC](https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056/13 "2017-08-15T13:54:37Z")

</div>

Thanks, That was exactly right !

---

<div class="post-metadata">

**Author:** ![iandunbar](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/i/bcef8e/32.png) [@iandunbar](https://forums.solar2d.com/u/iandunbar)\
**Post date:** [September 15, 2017, 6:13pm UTC](https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056/14 "2017-09-15T18:13:18Z")

</div>

I am having this issue as well. This did not use to be the case with older versions of Corona. Is there a plan to fix this?

---

<div class="post-metadata">

**Author:** ![Bektur](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/b/8baadc/32.png) [@Bektur](https://forums.solar2d.com/u/Bektur)\
**Post date:** [September 15, 2017, 7:54pm UTC](https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056/15 "2017-09-15T19:54:20Z")

</div>

Hi, Ian.

Bug report was added to our internal tracker and will be resolved as soon as possible.

---

<div class="post-metadata">

**Author:** ![theromero](https://forums.solar2d.com/user_avatar/forums.solar2d.com/theromero/32/231_2.png) [@theromero](https://forums.solar2d.com/u/theromero)\
**Post date:** [November 1, 2017, 7:12pm UTC](https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056/16 "2017-11-01T19:12:22Z")

</div>

Is there a workaround for this or do I need to keep waiting for a fix? I cannot update my desktop versions until this is fixed or there’s a workaround.

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [November 2, 2017, 4:18pm UTC](https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056/17 "2017-11-02T16:18:43Z")

</div>

You will need to wait for a fix. Does your desktop version need to compute content areas? I know it would be a pain, but you could have two config.lua’s one for desktop builds that doesn’t call APIs and a mobile version that does.

I’ll ask our engineer’s about the status of this.

Rob

---

<div class="post-metadata">

**Author:** ![theromero](https://forums.solar2d.com/user_avatar/forums.solar2d.com/theromero/32/231_2.png) [@theromero](https://forums.solar2d.com/u/theromero)\
**Post date:** [November 3, 2017, 11:13am UTC](https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056/18 "2017-11-03T11:13:41Z")

</div>

Well, our desktop version uses all the same code as the other versions which is one of the reasons why we love Corona.

The config is the only place we calculate aspect ratio because we have to set the application.content values. If we didn’t have to do that in config this wouldn’t be an issue.

It’s messy to have to make another config and then have to rename them every time we make a new build.

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [November 3, 2017, 1:49pm UTC](https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056/19 "2017-11-03T13:49:38Z")

</div>

I asked engineering to look into getting this fixed. I know it’s a real problem.

Rob

---

<div class="post-metadata">

**Author:** ![vlads](https://forums.solar2d.com/user_avatar/forums.solar2d.com/vlads/32/29_2.png) [@vlads](https://forums.solar2d.com/u/vlads)\
**Post date:** [November 4, 2017, 3:34pm UTC](https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056/20 "2017-11-04T15:34:02Z")

</div>

Hello! I’m glad to tell this issue should be fixed in latest daily build ([2017.3169](https://developer.coronalabs.com/release/2017/3169/))

[Next page](https://forums.solar2d.com/t/can-not-build-for-os-x-any-longer-what-happened/345056.md?page=2)
