# ignoring unsafe symlink

**URL:** <https://forums.solar2d.com/t/ignoring-unsafe-symlink/340987>\
**Category:** macOS Desktop\
**Created:** [September 5, 2016, 1:36pm UTC](https://forums.solar2d.com/t/ignoring-unsafe-symlink/340987 "2016-09-05T13:36:04Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![tap32](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/t/90ced4/32.png) [@tap32](https://forums.solar2d.com/u/tap32)\
**Post date:** [September 5, 2016, 1:36pm UTC](https://forums.solar2d.com/t/ignoring-unsafe-symlink/340987/1 "2016-09-05T13:36:04Z")

</div>

When I compile my app I see a warning message in the output which states:

```
ignoring unsafe symlink "[...]/MultipadServer.app/Contents/Resources/Corona/palstyleshapes" -\> "../palstyleshapes"

```

The symlink that Corona is referring to is a shared library between the mobile and desktop parts of the project. It’s very important to me that both use the same code and that I avoid duplicating it. This folder contains images and it seems to be the images which get culled. Is there any way to get around this error?&nbsp;

---

<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:** [September 5, 2016, 3:22pm UTC](https://forums.solar2d.com/t/ignoring-unsafe-symlink/340987/2 "2016-09-05T15:22:45Z")

</div>

You might want to put an entry in your build.settings to ignore the symlink. We basically copy all files in the project folder to the bundle. Most people using symlinks are linking to things outside the folder, not within.

Rob

---

<div class="post-metadata">

**Author:** ![tap32](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/t/90ced4/32.png) [@tap32](https://forums.solar2d.com/u/tap32)\
**Post date:** [September 5, 2016, 4:41pm UTC](https://forums.solar2d.com/t/ignoring-unsafe-symlink/340987/3 "2016-09-05T16:41:14Z")

</div>

Thanks, but I want Corona to copy the images in the folder pointed at into the project.&nbsp;

So my structure looks like this:

```
project/ ├── shared code/ │ └── images ├── mobile project/ │ └── symlink to shared code └── desktop project/ └── symlink to shared code

```

I want the symlink to shared code to be wholly replaced with the shared code folder when I build.

It’s worth saying that the desktop and mobile projects are very different programs. The mobile application is a training task where the user learns how to do a task, while the desktop task is a suite of tests which evaluate the effectiveness of the training, so the codebases only have a small amount of shared code in common, but are part of the same project.

---

<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:** [September 6, 2016, 11:04pm UTC](https://forums.solar2d.com/t/ignoring-unsafe-symlink/340987/4 "2016-09-06T23:04:35Z")

</div>

Well that should work actually. Let me ask the engineers about it.

---

<div class="post-metadata">

**Author:** ![Perry\_Clarke](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@Perry\_Clarke](https://forums.solar2d.com/u/Perry_Clarke)\
**Post date:** [October 22, 2016, 12:16am UTC](https://forums.solar2d.com/t/ignoring-unsafe-symlink/340987/5 "2016-10-22T00:16:29Z")

</div>

This will be fixed in [Daily Builds](http://developer.coronalabs.com/downloads/daily-builds) 2016.2977 and higher.

---

<div class="post-metadata">

**Author:** ![tap32](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/t/90ced4/32.png) [@tap32](https://forums.solar2d.com/u/tap32)\
**Post date:** [October 24, 2016, 11:07am UTC](https://forums.solar2d.com/t/ignoring-unsafe-symlink/340987/6 "2016-10-24T11:07:59Z")

</div>

Thanks, much appreciated!

---

<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:** [September 5, 2016, 3:22pm UTC](https://forums.solar2d.com/t/ignoring-unsafe-symlink/340987/7 "2016-09-05T15:22:45Z")

</div>

You might want to put an entry in your build.settings to ignore the symlink. We basically copy all files in the project folder to the bundle. Most people using symlinks are linking to things outside the folder, not within.

Rob

---

<div class="post-metadata">

**Author:** ![tap32](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/t/90ced4/32.png) [@tap32](https://forums.solar2d.com/u/tap32)\
**Post date:** [September 5, 2016, 4:41pm UTC](https://forums.solar2d.com/t/ignoring-unsafe-symlink/340987/8 "2016-09-05T16:41:14Z")

</div>

Thanks, but I want Corona to copy the images in the folder pointed at into the project.&nbsp;

So my structure looks like this:

```
project/ ├── shared code/ │ └── images ├── mobile project/ │ └── symlink to shared code └── desktop project/ └── symlink to shared code

```

I want the symlink to shared code to be wholly replaced with the shared code folder when I build.

It’s worth saying that the desktop and mobile projects are very different programs. The mobile application is a training task where the user learns how to do a task, while the desktop task is a suite of tests which evaluate the effectiveness of the training, so the codebases only have a small amount of shared code in common, but are part of the same project.

---

<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:** [September 6, 2016, 11:04pm UTC](https://forums.solar2d.com/t/ignoring-unsafe-symlink/340987/9 "2016-09-06T23:04:35Z")

</div>

Well that should work actually. Let me ask the engineers about it.

---

<div class="post-metadata">

**Author:** ![Perry\_Clarke](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/p/bc79bd/32.png) [@Perry\_Clarke](https://forums.solar2d.com/u/Perry_Clarke)\
**Post date:** [October 22, 2016, 12:16am UTC](https://forums.solar2d.com/t/ignoring-unsafe-symlink/340987/10 "2016-10-22T00:16:29Z")

</div>

This will be fixed in [Daily Builds](http://developer.coronalabs.com/downloads/daily-builds) 2016.2977 and higher.

---

<div class="post-metadata">

**Author:** ![tap32](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/t/90ced4/32.png) [@tap32](https://forums.solar2d.com/u/tap32)\
**Post date:** [October 24, 2016, 11:07am UTC](https://forums.solar2d.com/t/ignoring-unsafe-symlink/340987/11 "2016-10-24T11:07:59Z")

</div>

Thanks, much appreciated!
