I'm Facing a similar issue:
ShareLink(item: viewModel.file.localURL!) {
Image(systemName: "square.and.arrow.up")
.environment(\.symbolVariants, .none)
}
and I'm getting:
Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "(originator doesn't have entitlement com.apple.runningboard.primitiveattribute AND originator doesn't have entitlement com.apple.runningboard.assertions.frontboard AND target is not running or doesn't have entitlement com.apple.runningboard.trustedtarget AND Target not hosted by originator)" UserInfo={NSLocalizedFailureReason=(originator doesn't have entitlement com.apple.runningboard.primitiveattribute AND originator doesn't have entitlement com.apple.runningboard.assertions.frontboard AND target is not running or doesn't have entitlement com.apple.runningboard.trustedtarget AND Target not hosted by originator)}>
(501) personaAttributesForPersonaType for type:0 failed with error Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.mobile.usermanagerd.xpc was invalidated: failed at lookup with error 159 - Sandbox restriction." UserInfo={NSDebugDescription=The connection to service named com.apple.mobile.usermanagerd.xpc was invalidated: failed at lookup with error 159 - Sandbox restriction.}
Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 "Client not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, RBSPermanent=false}
elapsedCPUTimeForFrontBoard couldn't generate a task port
Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 "Client not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, RBSPermanent=false}
elapsedCPUTimeForFrontBoard couldn't generate a task port
Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 "Client not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, RBSPermanent=false}
elapsedCPUTimeForFrontBoard couldn't generate a task port
On iOS 17.4 even though I get these errors the file contained in the URL is actually shared with the application. On ios 16.4 the receiver app raises: The file "" couldn't be opened because you don't have permission to view it.
Post
Replies
Boosts
Views
Activity
I'm facing the same issue even on Xcode 15 beta. It is not yet solved.
Same for me. iOS 14.0.1
Error Domain=SKErrorDomain Code=2 "(null)" UserInfo={
	 NSUnderlyingError=0x28287d0b0 {
			Error Domain=ASDErrorDomain Code=907 "Unhandled exception" UserInfo={
				 NSUnderlyingError=0x28287c240 {
						Error Domain=AMSErrorDomain Code=6 "Payment Sheet Failed" UserInfo={
							 NSLocalizedDescription=Payment Sheet Failed,
							 NSLocalizedFailureReason=Payment sheet cancelled
						}
				 },
				 NSLocalizedFailureReason=An unknown error occurred,
				 NSLocalizedDescription=Unhandled exception
			}
	 }
}