# app reject: Your application accesses the following location(s)

**URL:** <https://forums.solar2d.com/t/app-reject-your-application-accesses-the-following-location-s/343108>\
**Category:** macOS Desktop\
**Created:** [February 10, 2017, 3:44am UTC](https://forums.solar2d.com/t/app-reject-your-application-accesses-the-following-location-s/343108 "2017-02-10T03:44:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pickerel](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/p/df705f/32.png) [@pickerel](https://forums.solar2d.com/u/pickerel)\
**Post date:** [February 10, 2017, 3:44am UTC](https://forums.solar2d.com/t/app-reject-your-application-accesses-the-following-location-s/343108/1 "2017-02-10T03:44:02Z")

</div>

reason:

Performance - 2.4.5

Your application accesses the following location(s): ‘~/Pictures/Picture 1.jpg.sb-fa8cc759-aUZXWp’

Anyone know what’s this mean?

---

<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:** [February 10, 2017, 8:58am UTC](https://forums.solar2d.com/t/app-reject-your-application-accesses-the-following-location-s/343108/2 "2017-02-10T08:58:20Z")

</div>

I guess it is because you need to add some entitlements to your application.

When building a MacOS app for distribution it gets sandboxed, which means that the application are only allowed to acces files in the application sandbox. If you need to access the ~/Pictures folder you need to add an entitlement in your apps build.settings.

[https://developer.apple.com/library/content/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/AboutEntitlements.html](https://developer.apple.com/library/content/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/AboutEntitlements.html)

I guess you would need to add one of these:

```
settings = { &nbsp;&nbsp;&nbsp;&nbsp;osx = { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;entitlements = { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;["com.apple.security.assets.pictures.read-only"] = true, ["com.apple.security.assets.pictures.read-write"] = true, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, &nbsp;&nbsp;&nbsp;&nbsp;}, }

```

Apple will evaluate how you use the permission and may reject the app if it is not according to their guidelines.

To test if the entitlements are set up correctly you can build the application for app store distribution and test that build on your computer.

---

<div class="post-metadata">

**Author:** ![pickerel](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/p/df705f/32.png) [@pickerel](https://forums.solar2d.com/u/pickerel)\
**Post date:** [February 11, 2017, 1:43am UTC](https://forums.solar2d.com/t/app-reject-your-application-accesses-the-following-location-s/343108/3 "2017-02-11T01:43:32Z")

</div>

thanks,&nbsp;ojnab.

---

<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:** [February 10, 2017, 8:58am UTC](https://forums.solar2d.com/t/app-reject-your-application-accesses-the-following-location-s/343108/4 "2017-02-10T08:58:20Z")

</div>

I guess it is because you need to add some entitlements to your application.

When building a MacOS app for distribution it gets sandboxed, which means that the application are only allowed to acces files in the application sandbox. If you need to access the ~/Pictures folder you need to add an entitlement in your apps build.settings.

[https://developer.apple.com/library/content/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/AboutEntitlements.html](https://developer.apple.com/library/content/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/AboutEntitlements.html)

I guess you would need to add one of these:

```
settings = { &nbsp;&nbsp;&nbsp;&nbsp;osx = { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;entitlements = { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;["com.apple.security.assets.pictures.read-only"] = true, ["com.apple.security.assets.pictures.read-write"] = true, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, &nbsp;&nbsp;&nbsp;&nbsp;}, }

```

Apple will evaluate how you use the permission and may reject the app if it is not according to their guidelines.

To test if the entitlements are set up correctly you can build the application for app store distribution and test that build on your computer.

---

<div class="post-metadata">

**Author:** ![pickerel](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/p/df705f/32.png) [@pickerel](https://forums.solar2d.com/u/pickerel)\
**Post date:** [February 11, 2017, 1:43am UTC](https://forums.solar2d.com/t/app-reject-your-application-accesses-the-following-location-s/343108/5 "2017-02-11T01:43:32Z")

</div>

thanks,&nbsp;ojnab.
