Reputation: 2486
I have an app for watchOS 3 that works perfectly fine and doesn't really do much. But when I try to launch and debug it on a real device the app crashes and the console logs this:
SandboxViolation: logd(46) deny(1) file-read-data /private/var/containers/Bundle/Application/*Identifier*/*appname*/Frameworks/libswiftos.dylib
I honestly have no clue what is going wrong. I remember it to work before but then on one point it stopped (can't remember changing anything relevant)
Upvotes: 2
Views: 873
Reputation: 2486
In my case the solution was that the Watch app took too long to launch. I deleted all upfront initialisation and found out that it was somehow too much (In fact I wasn't doing that much but initialising a picker with images from an extension which took too much time).
After optimising this it worked as expected!
Upvotes: 1
Reputation: 19800
Usually this is because you requested for something that requires permission (e.g. Location, Contacts, etc) and didn't provide a permission reason in the Info.plist
file.
Upvotes: 1