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?
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 !