Same problem for me.
StoreKit testing with Xcode is fine in the iOS simulator, but in Mac Catalyst I get this error and StoreKit does not work.
If I restart the Mac, it works at least once, but soon this error occurs. StoreKit2 will not work in Mac Catalyst until I restart the OS again.
Is there any solution?
Error enumerating all current transactions: Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={AMSStatusCode=0, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <DBD4B067-89AC-4809-917E-81B13424EF0A>.<1>, NSErrorFailingURLKey=http://localhost:49193/inApps/history?guid=5CE91EC388E2&reason=timer, _kCFStreamErrorDomainKey=10, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <DBD4B067-89AC-4809-917E-81B13424EF0A>.<1>"
), NSLocalizedDescription=A server with the specified hostname could not be found., NSErrorFailingURLStringKey=http://localhost:49193/inApps/history?guid=5CE91EC388E2&reason=timer, NSUnderlyingError=0x600000d44db0 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_kCFStreamErrorDomainKey=10, _kCFStreamErrorCodeKey=-72000, _NSURLErrorNWPathKey_desc=satisfied (Path is satisfied), interface: lo0, _NSURLErrorNWResolutionReportKey_desc=Resolved 0 endpoints in 0ms using unknown from query}}, _kCFStreamErrorCodeKey=-72000}
macOS Sonoma 14.1.2
Xcode Version 15.0.1