Closed MasterJ93 closed 1 month ago
I got this and it was caused by not having enabled outgoing connections in the sandbox environment. This can be fixed by, after step 2 of your Reproduction Steps, doing the following:
Build and run you project and the problem should be gone.
I got this and it was caused by not having enabled outgoing connections in the sandbox environment. This can be fixed by, after step 2 of your Reproduction Steps, doing the following:
- In XCode, click on your project in the project navigator
- Select your target
- Navigate to the 'Signing & Capabilities' tab
- Navigate to the 'App Sandbox' section
- Check the box 'Outgoing Connections (Client)'
Build and run you project and the problem should be gone.
Had I seen this comment earlier, I would have closed the issue hours ago. I was able to reach the same conclusion myself. That was a huge blunder on my part, but thank you for that.
In a future update, I'll be sure to have this mentioned somewhere in the documentation in a future update.
Summary
When trying to authenticate into Bluesky, an error message appears that states the hostname couldn't be found.
Reproduction Steps
struct ModalView: View { @State private var text: String = "" @State private var progress: Double = 0.0 @State private var session: UserSession? @State private var errorMessage: String?
}
Preview {
}
Error: Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={_kCFStreamErrorCodeKey=-72000, NSUnderlyingError=0x600003c3b030 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_kCFStreamErrorDomainKey=10, _kCFStreamErrorCodeKey=-72000, _NSURLErrorNWResolutionReportKey=Resolved 0 endpoints in 1ms using unknown from query, _NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en1[802.11], ipv4, dns, uses wifi}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <59E0A79C-4E40-4B19-A8CF-1989FEB83D16>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <59E0A79C-4E40-4B19-A8CF-1989FEB83D16>.<1>" ), NSLocalizedDescription=A server with the specified hostname could not be found., NSErrorFailingURLStringKey=https://bsky.social/xrpc/com.atproto.server.createSession, NSErrorFailingURLKey=https://bsky.social/xrpc/com.atproto.server.createSession, _kCFStreamErrorDomainKey=10}