I am unable to install watch app from Xcode to Apple Watch.

I tested my app on a normal simulator and it worked fine. However, when I attempt to install the app on an actual text device, I receive an error message that says that I am unable to install the app on my watch.


The error log follows as such,



Details


Unable to install "(Name of app)"

Domain: com.apple.dtdevicekit

Code: -402620394

--

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).

User Info: {

DVTRadarComponentKey = 487927;

"com.apple.dtdevicekit.stacktrace" = (

0 DTDeviceKitBase 0x00000001268ae6e7 DTDKCreateNSError + 109

1 DTDeviceKitBase 0x00000001268aede9 DTDK_AMDErrorToNSError + 792

2 DTDeviceKitBase 0x00000001268ee56a __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 164

3 DVTFoundation 0x000000010e166c22 DVTInvokeWithStrongOwnership + 73

4 DTDeviceKitBase 0x00000001268ee301 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1589

5 IDEiOSSupportCore 0x0000000126776a25 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.352 + 4523

6 DVTFoundation 0x000000010e297e8a __DVT_CALLING_CLIENT_BLOCK__ + 7

7 DVTFoundation 0x000000010e299562 __DVTDispatchAsync_block_invoke + 809

8 libdispatch.dylib 0x00007fff6ecdb583 _dispatch_call_block_and_release + 12

9 libdispatch.dylib 0x00007fff6ecdc50e _dispatch_client_callout + 8

10 libdispatch.dylib 0x00007fff6ece1ace _dispatch_lane_serial_drain + 597

11 libdispatch.dylib 0x00007fff6ece2452 _dispatch_lane_invoke + 363

12 libdispatch.dylib 0x00007fff6eceba9e _dispatch_workloop_worker_thread + 598

13 libsystem_pthread.dylib 0x00007fff6ef366fc _pthread_wqthread + 290

14 libsystem_pthread.dylib 0x00007fff6ef35827 start_wqthread + 15

);

}

--