iosswiftsandboxjailbreaktheos

iOS - Accessing filesystem outside sandbox on a jailbroken device


I'm developing an app using theos [application_swift] and would like to gain access to the filesystem, outside the sandbox.

To my understanding, using the [application_swift] with theos should enable me to access files outside the sandbox, but I've tried using FileManager.default.fileExists(atPath:) to access the file I like and the result was that the file was not found.

Worth mentioning I'm obviously running on a jailbroken device running 11.2.

Am I missing something?


Solution

  • I've been able to solve this issue by adding com.apple.private.security.no-container to my entitlements file and adding them using codesign.

    codesign --entitlements app.entitlements -f -s "iPhone Developer: xxxxxxxxxxxxxxxxx" MyApp.app