I take advantage of a framework that generates a debug log as a zipper file within the paperwork listing. I’m making an attempt to share that zip through the ShareSheet
. To simplify issues I attempted writing pattern knowledge to a zipper file. I’m nonetheless getting the identical errors.
personal func generateTemporaryZipFile() -> URL? {
let fileManager = FileManager.default
let tempDirectory = fileManager.temporaryDirectory
let zipFileName = "my_data_backup.zip"
let zipFileUrl = tempDirectory.appendingPathComponent(zipFileName)
do {
let dummyContent = "That is some content material for the ZIP file."
strive dummyContent.write(to: zipFileUrl, atomically: true, encoding: .utf8)
return zipFileUrl
} catch {
print("Error creating dummy ZIP file")
return nil
}
}
After which in SwiftUI the ShareLink
if let url = generateTemporaryZipFile() {
ShareLink(merchandise: url, preview: SharePreview("My ZIP File", picture: Picture(systemName: "doc.zipper"))) {
Label("Share ZIP", systemImage: "sq..and.arrow.up")
}
}
That is what prints out to the console
Acquired port for identifier response: <(null)> with error:Error Area=RBSServiceErrorDomain Code=1 "Shopper not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Shopper not entitled, RBSPermanent=false}
elapsedCPUTimeForFrontBoard could not generate a activity port
Solely assist loading choices for CKShare and SWY sorts.
error fetching merchandise for URL:file:///personal/var/cellular/Containers/Information/Utility/E35A66B7-C065-492B-B402-AB66EB3D8FE2/tmp/my_data_backup.zip : (null)
error fetching file supplier area for URL:file:///personal/var/cellular/Containers/Information/Utility/E35A66B7-C065-492B-B402-AB66EB3D8FE2/tmp/my_data_backup.zip : (null)
error fetching merchandise for URL:file:///personal/var/cellular/Containers/Information/Utility/E35A66B7-C065-492B-B402-AB66EB3D8FE2/tmp/my_data_backup.zip : (null)
Acquired port for identifier response: <(null)> with error:Error Area=RBSServiceErrorDomain Code=1 "Shopper not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Shopper not entitled, RBSPermanent=false}
elapsedCPUTimeForFrontBoard could not generate a activity port
The identical method with the precise zip does the next
Acquired port for identifier response: <(null)> with error:Error Area=RBSServiceErrorDomain Code=1 "Shopper not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Shopper not entitled, RBSPermanent=false}
elapsedCPUTimeForFrontBoard could not generate a activity port
Acquired port for identifier response: <(null)> with error:Error Area=RBSServiceErrorDomain Code=1 "Shopper not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Shopper not entitled, RBSPermanent=false}
elapsedCPUTimeForFrontBoard could not generate a activity port
I can not precisely inform what entitlement points I’m having. It sounds doable I would like so as to add an entitlement however sharing a zipper does not actually appear to suit properly into Doc Sorts
nor Exported Kind Identifiers
. That is only a zip file. Is that this even doable? What am I lacking?