Not sure if my question is weird or not, but I didnt find any documentation about an sdks access to an apps documents directory.
Im assuming that because sdk is part of the sandbox that it can access and read from the documents directory? i.e. if i used
NSFileManager.defaultManager.URLForDirectory(
directory = NSCachesDirectory,
inDomain = NSUserDomainMask,
appropriateForURL = null,
create = false,
error = null,
)
to write a file called "file.txt", then any sdk my app used has the ability to access the contents of said directory?
If yes, why isnt this considered something more worth mentioning? usually in filemanager tutorials they never warn about this.
FYI: Im asking more for iOS and iPadOs then MacOs.
Like Etresoft, I’m not sure I fully understand your point here. However, I want to be very clear about one thing: If you integrate third-party code within your app — for example, a third-party SDK that you statically or dynamically link to — then:
-
That code runs with all the privileges of your app. It can access files in your app’s container, utilises privileges granted to your app by the user in Settings > Privacy & Security, and so on.
-
From an App Review perspective, you are responsible for the behaviour of that code.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"