I’m new to github actions. I’m trying to set it up to run the unit tests for my iOS-only Swift package. All of my tests involving writing txt files to the simulators documents directory are failing inside github actions, but working fine locally and working fine in a local test iOS project.
The error getting printed to the console is: “The file xxxxx doesn’t exist”. The file wouldn’t exist because the code is trying to create it. Does github actions have any kind of restrictions in accessing folders on simulators for writing data?
The file URL I was trying to write to with
data.write(to: <url>) was:
Also is there anyway to access log files generated by xcode? When a test fails i’d love to just download the .xcresult file and open in locally. But I can’t see a way to do that. Is there anyway to access them, or actions to save them somewhere else?
Path would be something like: