Fix crash on tvOS caused by access to filesystem #621
Labels
priority:high
To fix as soon as possible.
type:defect
Bugs or weaknesses. The issue has to contain steps to reproduce.
Milestone
Describe the bug
The app will crash when it tries to write the event to disk.
To Reproduce
Setup a tracker and start tracking events on tvOS using tracker 2.1.1. Setting up the session file url fails and the tracker then crashes when writing data to disk.
SPSession.m line 133.
Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “snowplow” in the folder “Application Support”." UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/1107C145-BB29-40BA-AA29-DD2960253083/Library/Application Support/snowplow, NSUnderlyingError=0x281850150 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
SPSession.m line 227 then crashes because of the failure above.
Expected behavior
Creating this directory should not fail and writing to disk should work.
Device information (please complete the following information):
The text was updated successfully, but these errors were encountered: