I should add, I have a working App for iOS/iPadOS with both a Messages Extension, and a Sticker extension. I'd like to at least make the Sticker extension available to macOS
Post
Replies
Boosts
Views
Activity
Just found this issue because I was trying out macOS 14 in a VM, and noted that I couldn't log into either my account or my tester account. Fingers cross this is something sorted before the end of the macOS 14 beta cycle.
I wouldn't overly mind if it's only restricted to the Sandbox Testers accounts.
Adding an iPad target, and running the code is an iPad simulator worked perfectly.
PlayWithWeatherKit/ContentView.swift:28: Fatal error: Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={_kCFStreamErrorCodeKey=-72000, NSUnderlyingError=0x6000013b0060 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns, _kCFStreamErrorCodeKey=-72000, _kCFStreamErrorDomainKey=10}},,
Interesting. I get a bunch of errors none of them are a 401 error
2022-06-11 22:24:35.338896+0100 PlayWithWeatherKit[15269:254812] [WeatherService] Couldn't get access to the /Library/Weather directory for the geocode Store. error=Error Domain=NSCocoaErrorDomain Code=257 "The file “Weather” couldn’t be opened because you don’t have permission to view it." UserInfo={NSUserStringVariant=(Folder
), NSURL=file:///Users/tarasis/Library/Weather, NSFilePath=/Users/tarasis/Library/Weather, NSUnderlyingError=0x600000bcf9f0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
and
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.
and
[WeatherDataService] Failed to create the weather data store, error=cantOpen(message: "authorization denied", location: TeaDB.Database.Location.path("/Users/tarasis/Library/Weather/weather-data.db"))
and
[] nehelper sent invalid response: <dictionary: 0x1ffa87480> { count = 1, transaction: 0, voucher = 0x0, contents =
"XPCErrorDescription" => <string: 0x1ffa87618> { length = 18, contents = "Connection invalid" }
}
and well here are the rest of the errors
2022-06-11 22:24:35.411005+0100 PlayWithWeatherKit[15269:254811] [] nw_parameters_set_source_application_by_bundle_id_internal Failed to convert from bundle ID (net.tarasis.test.wwdc) to UUID. This could lead to wrong data usage accounting.
2022-06-11 22:24:35.411569+0100 PlayWithWeatherKit[15269:254811] [connection] nw_endpoint_flow_validate_delegation [C1 weather-data.apple.com:443 in_progress parent-flow (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] Network Delegation Failure: Invalid Bundle ID "net.tarasis.test.wwdc" [M]
2022-06-11 22:24:35.411786+0100 PlayWithWeatherKit[15269:254811] [] nw_resolver_can_use_dns_xpc_block_invoke Sandbox does not allow access to com.apple.dnssd.service
2022-06-11 22:24:35.412005+0100 PlayWithWeatherKit[15269:254811] dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:14 Err:-1 Errno:1 Operation not permitted
2022-06-11 22:24:35.412030+0100 PlayWithWeatherKit[15269:254811] [connection] nw_resolver_create_dns_service_locked [C1.1] DNSServiceCreateDelegateConnection failed: ServiceNotRunning(-65563)
2022-06-11 22:24:35.412278+0100 PlayWithWeatherKit[15269:254811] Connection 1: received failure notification
2022-06-11 22:24:35.413027+0100 PlayWithWeatherKit[15269:254811] Connection 1: failed to connect 10:-72000, reason -1
2022-06-11 22:24:35.413043+0100 PlayWithWeatherKit[15269:254811] Connection 1: encountered error(10:-72000)
2022-06-11 22:24:35.427967+0100 PlayWithWeatherKit[15269:254819] Task <97DDE838-005D-4CE0-BD5A-59DB58969B42>.<1> HTTP load failed, 0/0 bytes (error code: -1003 [10:-72000])
2022-06-11 22:24:35.429292+0100 PlayWithWeatherKit[15269:254819] Task <97DDE838-005D-4CE0-BD5A-59DB58969B42>.<1> finished with error [-1003] Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={_kCFStreamErrorCodeKey=-72000, NSUnderlyingError=0x600000bf4bd0 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns, _kCFStreamErrorCodeKey=-72000, _kCFStreamErrorDomainKey=10}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <97DDE838-005D-4CE0-BD5A-59DB58969B42>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <97DDE838-005D-4CE0-BD5A-59DB58969B42>.<1>"
), NSLocalizedDescription=A server with the specified hostname could not be found., NSErrorFailingURLStringKey=https://weather-data.apple.com/v2/token, NSErrorFailingURLKey=https://weather-data.apple.com/v2/token, _kCFStreamErrorDomainKey=10}
2022-06-11 22:24:35.429749+0100 PlayWithWeatherKit[15269:254819] [WeatherService] Encountered an error when fetching weather data subset; location=<+37.32299800,-122.03218100> +/- 0.00m (speed -1.00 mps / course -1.00) @ 2022/06/11, 22:24:35 British Summer Time, error=Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={_kCFStreamErrorCodeKey=-72000, NSUnderlyingError=0x600000bf4bd0 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns, _kCFStreamErrorCodeKey=-72000, _kCFStreamErrorDomainKey=10}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <97DDE838-005D-4CE0-BD5A-59DB58969B42>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <97DDE838-005D-4CE0-BD5A-59DB58969B42>.<1>"
), NSLocalizedDescription=A server with the specified hostname could not be found., NSErrorFailingURLStringKey=https://weather-data.apple.com/v2/token, NSErrorFailingURLKey=https://weather-data.apple.com/v2/token, _kCFStreamErrorDomainKey=10}
PlayWithWeatherKit/ContentView.swift:28: Fatal error: Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={_kCFStreamErrorCodeKey=-72000, NSUnderlyingError=0x600000bf4bd0 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns, _kCFStreamErrorCodeKey=-72000, _kCFStreamErrorDomainKey=10}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <97DDE838-005D-4CE0-BD5A-59DB58969B42>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <97DDE838-005D-4CE0-BD5A-59DB58969B42>.<1>"
), NSLocalizedDescription=A server with the specified hostname could not be found., NSErrorFailingURLStringKey=https://weather-data.apple.com/v2/token, NSErrorFailingURLKey=https://weather-data.apple.com/v2/token, _kCFStreamErrorDomainKey=10}
2022-06-11 22:24:35.429869+0100 PlayWithWeatherKit[15269:254810] PlayWithWeatherKit/ContentView.swift:28: Fatal error: Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={_kCFStreamErrorCodeKey=-72000, NSUnderlyingError=0x600000bf4bd0 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns, _kCFStreamErrorCodeKey=-72000, _kCFStreamErrorDomainKey=10}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <97DDE838-005D-4CE0-BD5A-59DB58969B42>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <97DDE838-005D-4CE0-BD5A-59DB58969B42>.<1>"
), NSLocalizedDescription=A server with the specified hostname could not be found., NSErrorFailingURLStringKey=https://weather-data.apple.com/v2/token, NSErrorFailingURLKey=https://weather-data.apple.com/v2/token, _kCFStreamErrorDomainKey=10}
Baffled why this is happening. Esp as I can go to the url in safari.
The directory is
drwxr-xr-x tarasis staff 544 B Mon Jun 6 23:10:55 2022 Weather
Crazy, but this still seems to be an issue. Even on Xcode 13.3.1. My simulator is running with 90-100% even though its doing NOTHING.
Navigation bars aren’t working for me at all in 14.5 beta 1 device or simulator.
On iPad they only work once. On phone there is no navigation bar regardless of hidden or not.
This has been driving me a little insane. Soon as my app starts it dies with this error. Hadn't managed to figure out the cause of it, so thank you.
I'm getting the error on 14.0GM, and 14.2b1, with the App built with either Xcode 12b6 or Xcode 12.2b1 (on a DTK). Had thought it was DTK related, so this is kinda good news.
I was using a couple of multicolour SF symbol's, "text.badge.plus" and another I can't recall.
Edit:
So it is just the call to
.renderingMode(.original)
that is causing the crash. Commenting those out the app works fine.
I am having the same issue, onChange is not capturing the previous value.
Note, I am able to attach .onChange to the body view and have it compile.
Can confirm that it works perfectly.
Any view inside the WindowGroup works, I preferred it a bit deeper in my hierarchy attached to the button the triggers the webview for login, so that I'm not importing the library I'm using into the App file.
Yes, that definitely works as a workaround.Thank you. Going to mark it as a 'correct' answer
Changing the List to a ScrollView & ForEach does work.
Claude31 the compiler in Swift 5.2 is reacting to the code base differently that it did in 5.1I could post code snippets that show that the binding is being initialised and where its declared but it isn't going to allow you to help. This appears to be a compiler bug, and as other replies to this thread show, I am not the only one affected. I copied some of the exact code out into a seperate project and it compiled fine (a SwiftUI view, with the Binding, and where the @State is set). It is something that is coming up as a cummulation of the compile process.However Vlas above has managed to create a very specific set of code that does demonstrate the issue.
Certainly sounds similar. Thank you for posting that bug report and making a small testcase. Have you also filed it as a bug against Xcode using Feedback Assistant? If not probably worth doing.I'd have gone for higher than medium priority, just because I can't do anything with that code while getting that error 🙂
Where you able to create a test project that showed it, or did you submit a bug report with whatever project your working on?