Is it possible to use network from within iOS Thumbnail Extension? I tried - it works fine under simulator, but I'm getting this error when running on real device:
networkd_settings_read_from_file Sandbox is preventing this process from reading networkd settings file at "/Library/Preferences/com.apple.networkd.plist", please add an exception.
Adding "App Transport Security Settings / Allow Arbitrary Loads" plist entry didn't help. As the error seems to be specific access to a particular file I tried adding "com.apple.security.temporary-exception.files.absolute-path.read-only" but it didn't help and looks like it couldn't help on iOS: "Note: This chapter describes property list keys specific to the macOS implementation of App Sandbox. They are not available in iOS."
It sounds like Quick Look is running your extension in a custom sandbox that doesn’t support networking. iOS has no mechanism to customise your sandbox [1], which means you’re pretty much out of options here. Well, I guess you could file a bug requesting that this restriction be lifted but I’m not sure that’ll go anywhere. While I wasn’t involved in this specific decision, my general experience with these sorts of extensions is that they are deliberately put in a tight sandbox.
If you do file a bug, please post your bug number, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
[1] As you correctly determined, the temporary exception entitlements only apply to the App Sandbox on macOS.