1

I am trying to run my Apple Watch app on my Apple Watch and it is stuck at the loading spinner forever (the new one where the indicator turns around the app icon). I went to Xcode/Devices to inspect the logs on my watch, and the moment I tap my app icon it says:

Nov 29 22:34:40 Cans-AppleWatch kernel(Sandbox)[0] <Notice>: SandboxViolation: MyWatchApp(183) deny(1) file-read-times /var

It just waits forever. I've tried deleting/reinstalling app the restarted all devices (Mac, iPhone, Apple Watch) but the problem persists.

Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389

1 Answers1

1

After investigating, I've realized that the parent app and the WatchKit extension can't share data, as WatchKit app + Watch app physically live on the Apple Watch (and the files are physically on the watch), whereas the parent app lives on iPhone.

App groups (apparently) can only share data on the same device. Watch app can share with WatchKit app on the same device and iPhone app can share data with other apps or extensions on the same device (yeah, iPhone).

I've ended up writing files locally, and using the watch session to send files between devices on demand.

Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
  • Did you solve this issue? Can you point to a specific change that fixed it? I'd like to run a small test to see if this would fix my issue, before overhauling data-sharing functionality. – Sheamus Mar 10 '17 at 22:41
  • @Sheamus I haven't "solved" the issue but I've realized that my app not launching wasn't related to that. I've been able to launch my app successfully while still getting this error. – Can Poyrazoğlu Mar 10 '17 at 23:56
  • Thank you for your response! – Sheamus Mar 15 '17 at 02:58