# Can't install swiftui app to apple watch

**URL:** <https://forums.kodeco.com/t/cant-install-swiftui-app-to-apple-watch/93696>\
**Category:** watchOS\
**Created:** [January 6, 2020, 5:53pm UTC](https://forums.kodeco.com/t/cant-install-swiftui-app-to-apple-watch/93696 "2020-01-06T17:53:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![monica](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/monica/32/83328_2.png) [@monica](https://forums.kodeco.com/u/monica)\
**Post date:** [January 6, 2020, 5:53pm UTC](https://forums.kodeco.com/t/cant-install-swiftui-app-to-apple-watch/93696/1 "2020-01-06T17:53:54Z")

</div>

Hi,

I created a new standalone, SwiftUI watch app. I tried to run the “Hello World” sample code provided by the template on my watch. However, I get the following error:

> The executable was signed with invalid entitlements.  
> Domain: com.apple.dtdevicekit  
> Code: -402620394  
> Failure Reason: The entitlements specified in your application’s Code Signing Entitlements file are invalid, not permitted, or do not match those specified in your provisioning profile. (0xE8008016).

I haven’t changed any code or settings. I just created the project and tried to run it on my watch. I’m not sure where to start looking to fix this. Does anyone have any ideas?

Thank you,

Monica

---

<div class="post-metadata">

**Author:** ![gdelarosa](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/gdelarosa/32/109063_2.png) [@gdelarosa](https://forums.kodeco.com/u/gdelarosa)\
**Post date:** [January 8, 2020, 2:45am UTC](https://forums.kodeco.com/t/cant-install-swiftui-app-to-apple-watch/93696/2 "2020-01-08T02:45:52Z")

</div>

Hi @monica, something you can try is by going to File → Workspace Settings, and make sure your build system is set to Legacy Build System.

---

<div class="post-metadata">

**Author:** ![monica](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/monica/32/83328_2.png) [@monica](https://forums.kodeco.com/u/monica)\
**Post date:** [January 8, 2020, 5:49pm UTC](https://forums.kodeco.com/t/cant-install-swiftui-app-to-apple-watch/93696/3 "2020-01-08T17:49:22Z")

</div>

Thank you @gdelarosa . I tried, but unfortunately it gave the error:

> Building standalone watchOS apps is not supported by the legacy build system.

---

<div class="post-metadata">

**Author:** ![monica](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/monica/32/83328_2.png) [@monica](https://forums.kodeco.com/u/monica)\
**Post date:** [January 8, 2020, 5:53pm UTC](https://forums.kodeco.com/t/cant-install-swiftui-app-to-apple-watch/93696/4 "2020-01-08T17:53:38Z")

</div>

Ok, this was really weird. I switched it back to the new build system, and now it works. I didn’t change anything else. Very weird, but at least it works now. Thank you again @gdelarosa !

---

<div class="post-metadata">

**Author:** ![gdelarosa](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/gdelarosa/32/109063_2.png) [@gdelarosa](https://forums.kodeco.com/u/gdelarosa)\
**Post date:** [January 9, 2020, 5:09pm UTC](https://forums.kodeco.com/t/cant-install-swiftui-app-to-apple-watch/93696/5 "2020-01-09T17:09:41Z")

</div>

@monica, that is weird indeed but glad you can move forward!

Best,  
Gina

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [June 21, 2020, 9:53am UTC](https://forums.kodeco.com/t/cant-install-swiftui-app-to-apple-watch/93696/6 "2020-06-21T09:53:55Z")

</div>

This topic was automatically closed after 166 days. New replies are no longer allowed.
