We are sending accelerometer sensor data (x,y,z) from watch to iPhone. To achieve it we are using timer, which is sending data to iphone after every 0.2 seconds.
Sometimes it stops working and giving us following error ,
[WC] -[WCFileStorage loadAppContextDataFromInbox] error loading in application context from inbox NSFileReadNoPermissionError -> EACCES
We tried same code using WCSession.default.sendMessage(......) method and everything is working fine. We are facing this issue only when we use WCSession.default.updateApplicationContext(.....) .
If you want i can share my testproject.
This is happening on ios 13, all the previous versions it is working fine.
I had the same problem on code that was running fine. Suddenly, I was getting this error. I tried rebooting the phone, watch and xcode. Nothing worked. The solution for me was to delete the app from the iPhone you are developing on and reinstall it new. Hope this helps.