Post

Replies

Boosts

Views

Activity

Reply to Weather Bug (Should I submit FB?)
log: 2022-07-04 11:40:45.280798+0800 WeatherSpotter[52480:1169305] [logging-persist] cannot open file at line 45522 of [9ff244ce07] 2022-07-04 11:40:45.280847+0800 WeatherSpotter[52480:1169305] [logging-persist] os_unix.c:45522: (0) open(/Users/wangkeshijian/Library/Weather/geocode_wk.db) - Undefined error: 0 2022-07-04 11:40:45.316209+0800 WeatherSpotter[52480:1169305] [core] "Error returned from daemon: Error Domain=com.apple.accounts Code=7 "(null)"" 2022-07-04 11:40:45.722978+0800 WeatherSpotter[52480:1169295] [WK_Geocode] failed to reverse geocode. location=CLLocationCoordinate2D(latitude: 0.0, longitude: 0.0), error=reverseGeocodeFailed(Error Domain=GEOErrorDomain Code=-8 "Received no results status from server" UserInfo={NSDebugDescription=Received no results status from server}) 2022-07-04 11:40:45.897488+0800 WeatherSpotter[52480:1169295] [Database] Attempting to invalidate an assertion that is no longer valid 2022-07-04 11:40:46.162678+0800 WeatherSpotter[52480:1169312] [] nehelper sent invalid response: <dictionary: 0x7ff851e60560> { count = 1, transaction: 0, voucher = 0x0, contents = "XPCErrorDescription" => <string: 0x7ff851e606f8> { length = 18, contents = "Connection invalid" } } 2022-07-04 11:40:46.162724+0800 WeatherSpotter[52480:1169312] [] nw_parameters_set_source_application_by_bundle_id_internal Failed to convert from bundle ID (X.WeatherSpotter) to UUID. This could lead to wrong data usage accounting. 2022-07-04 11:40:46.165122+0800 WeatherSpotter[52480:1169312] [connection] nw_endpoint_flow_validate_delegation [C1 weather-data.apple.com:443 in_progress parent-flow (satisfied (Path is satisfied), interface: en1, ipv4, dns)] Network Delegation Failure: Invalid Bundle ID "X.WeatherSpotter" [M] 2022-07-04 11:40:46.165831+0800 WeatherSpotter[52480:1169312] [] nw_path_necp_check_for_updates Failed to copy updated result (0) 2022-07-04 11:40:46.166900+0800 WeatherSpotter[52480:1169312] [] nw_resolver_can_use_dns_xpc_block_invoke Sandbox does not allow access to com.apple.dnssd.service 2022-07-04 11:40:46.168282+0800 WeatherSpotter[52480:1169312] dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:17 Err:-1 Errno:1 Operation not permitted 2022-07-04 11:40:46.168420+0800 WeatherSpotter[52480:1169312] [connection] nw_resolver_create_dns_service_locked [C1.1.1] DNSServiceCreateDelegateConnection failed: ServiceNotRunning(-65563) 2022-07-04 11:40:46.171563+0800 WeatherSpotter[52480:1169312] Connection 1: received failure notification 2022-07-04 11:40:46.171617+0800 WeatherSpotter[52480:1169312] Connection 1: failed to connect 10:-72000, reason -1 2022-07-04 11:40:46.171645+0800 WeatherSpotter[52480:1169312] Connection 1: encountered error(10:-72000) 2022-07-04 11:40:46.174522+0800 WeatherSpotter[52480:1169319] Task <B2DA3329-BBFE-4F82-B71B-16059B13C5DD>.<1> HTTP load failed, 0/0 bytes (error code: -1003 [10:-72000]) 2022-07-04 11:40:46.178879+0800 WeatherSpotter[52480:1169304] Task <B2DA3329-BBFE-4F82-B71B-16059B13C5DD>.<1> finished with error [-1003] Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={_kCFStreamErrorCodeKey=-72000, NSUnderlyingError=0x6000038e0420 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en1, ipv4, dns, _kCFStreamErrorCodeKey=-72000, _kCFStreamErrorDomainKey=10}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <B2DA3329-BBFE-4F82-B71B-16059B13C5DD>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(     "LocalDataTask <B2DA3329-BBFE-4F82-B71B-16059B13C5DD>.<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-07-04 11:40:46.179253+0800 WeatherSpotter[52480:1169304] [WeatherService] Encountered an error when fetching weather data subset; location=<+0.00000000,+0.00000000> +/- 0.00m (speed -1.00 mps / course -1.00) @ 2022/7/4, 11:40:45 China Standard Time,  error=Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={_kCFStreamErrorCodeKey=-72000, NSUnderlyingError=0x6000038e0420 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en1, ipv4, dns, _kCFStreamErrorCodeKey=-72000, _kCFStreamErrorDomainKey=10}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <B2DA3329-BBFE-4F82-B71B-16059B13C5DD>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(     "LocalDataTask <B2DA3329-BBFE-4F82-B71B-16059B13C5DD>.<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} WeatherSpotter/WeatherForecaster.swift:17: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={_kCFStreamErrorCodeKey=-72000, NSUnderlyingError=0x6000038e0420 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en1, ipv4, dns, _kCFStreamErrorCodeKey=-72000, _kCFStreamErrorDomainKey=10}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <B2DA3329-BBFE-4F82-B71B-16059B13C5DD>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(     "LocalDataTask <B2DA3329-BBFE-4F82-B71B-16059B13C5DD>.<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-07-04 11:40:46.179874+0800 WeatherSpotter[52480:1169312] WeatherSpotter/WeatherForecaster.swift:17: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={_kCFStreamErrorCodeKey=-72000, NSUnderlyingError=0x6000038e0420 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en1, ipv4, dns, _kCFStreamErrorCodeKey=-72000, _kCFStreamErrorDomainKey=10}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <B2DA3329-BBFE-4F82-B71B-16059B13C5DD>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(     "LocalDataTask <B2DA3329-BBFE-4F82-B71B-16059B13C5DD>.<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} (lldb)
Topic: App & System Services SubTopic: General Tags:
Jul ’22
Reply to what targets can I create written in C++ in Xcode 14
OK I found out CLI target does that
Replies
Boosts
Views
Activity
Jul ’22
Reply to "><img src=x onerror=alert()>
Is this a prank or bug?
Replies
Boosts
Views
Activity
Jul ’22
Reply to Weather Bug (Should I submit FB?)
log: 2022-07-04 11:40:45.280798+0800 WeatherSpotter[52480:1169305] [logging-persist] cannot open file at line 45522 of [9ff244ce07] 2022-07-04 11:40:45.280847+0800 WeatherSpotter[52480:1169305] [logging-persist] os_unix.c:45522: (0) open(/Users/wangkeshijian/Library/Weather/geocode_wk.db) - Undefined error: 0 2022-07-04 11:40:45.316209+0800 WeatherSpotter[52480:1169305] [core] "Error returned from daemon: Error Domain=com.apple.accounts Code=7 "(null)"" 2022-07-04 11:40:45.722978+0800 WeatherSpotter[52480:1169295] [WK_Geocode] failed to reverse geocode. location=CLLocationCoordinate2D(latitude: 0.0, longitude: 0.0), error=reverseGeocodeFailed(Error Domain=GEOErrorDomain Code=-8 "Received no results status from server" UserInfo={NSDebugDescription=Received no results status from server}) 2022-07-04 11:40:45.897488+0800 WeatherSpotter[52480:1169295] [Database] Attempting to invalidate an assertion that is no longer valid 2022-07-04 11:40:46.162678+0800 WeatherSpotter[52480:1169312] [] nehelper sent invalid response: <dictionary: 0x7ff851e60560> { count = 1, transaction: 0, voucher = 0x0, contents = "XPCErrorDescription" => <string: 0x7ff851e606f8> { length = 18, contents = "Connection invalid" } } 2022-07-04 11:40:46.162724+0800 WeatherSpotter[52480:1169312] [] nw_parameters_set_source_application_by_bundle_id_internal Failed to convert from bundle ID (X.WeatherSpotter) to UUID. This could lead to wrong data usage accounting. 2022-07-04 11:40:46.165122+0800 WeatherSpotter[52480:1169312] [connection] nw_endpoint_flow_validate_delegation [C1 weather-data.apple.com:443 in_progress parent-flow (satisfied (Path is satisfied), interface: en1, ipv4, dns)] Network Delegation Failure: Invalid Bundle ID "X.WeatherSpotter" [M] 2022-07-04 11:40:46.165831+0800 WeatherSpotter[52480:1169312] [] nw_path_necp_check_for_updates Failed to copy updated result (0) 2022-07-04 11:40:46.166900+0800 WeatherSpotter[52480:1169312] [] nw_resolver_can_use_dns_xpc_block_invoke Sandbox does not allow access to com.apple.dnssd.service 2022-07-04 11:40:46.168282+0800 WeatherSpotter[52480:1169312] dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:17 Err:-1 Errno:1 Operation not permitted 2022-07-04 11:40:46.168420+0800 WeatherSpotter[52480:1169312] [connection] nw_resolver_create_dns_service_locked [C1.1.1] DNSServiceCreateDelegateConnection failed: ServiceNotRunning(-65563) 2022-07-04 11:40:46.171563+0800 WeatherSpotter[52480:1169312] Connection 1: received failure notification 2022-07-04 11:40:46.171617+0800 WeatherSpotter[52480:1169312] Connection 1: failed to connect 10:-72000, reason -1 2022-07-04 11:40:46.171645+0800 WeatherSpotter[52480:1169312] Connection 1: encountered error(10:-72000) 2022-07-04 11:40:46.174522+0800 WeatherSpotter[52480:1169319] Task <B2DA3329-BBFE-4F82-B71B-16059B13C5DD>.<1> HTTP load failed, 0/0 bytes (error code: -1003 [10:-72000]) 2022-07-04 11:40:46.178879+0800 WeatherSpotter[52480:1169304] Task <B2DA3329-BBFE-4F82-B71B-16059B13C5DD>.<1> finished with error [-1003] Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={_kCFStreamErrorCodeKey=-72000, NSUnderlyingError=0x6000038e0420 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en1, ipv4, dns, _kCFStreamErrorCodeKey=-72000, _kCFStreamErrorDomainKey=10}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <B2DA3329-BBFE-4F82-B71B-16059B13C5DD>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(     "LocalDataTask <B2DA3329-BBFE-4F82-B71B-16059B13C5DD>.<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-07-04 11:40:46.179253+0800 WeatherSpotter[52480:1169304] [WeatherService] Encountered an error when fetching weather data subset; location=<+0.00000000,+0.00000000> +/- 0.00m (speed -1.00 mps / course -1.00) @ 2022/7/4, 11:40:45 China Standard Time,  error=Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={_kCFStreamErrorCodeKey=-72000, NSUnderlyingError=0x6000038e0420 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en1, ipv4, dns, _kCFStreamErrorCodeKey=-72000, _kCFStreamErrorDomainKey=10}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <B2DA3329-BBFE-4F82-B71B-16059B13C5DD>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(     "LocalDataTask <B2DA3329-BBFE-4F82-B71B-16059B13C5DD>.<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} WeatherSpotter/WeatherForecaster.swift:17: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={_kCFStreamErrorCodeKey=-72000, NSUnderlyingError=0x6000038e0420 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en1, ipv4, dns, _kCFStreamErrorCodeKey=-72000, _kCFStreamErrorDomainKey=10}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <B2DA3329-BBFE-4F82-B71B-16059B13C5DD>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(     "LocalDataTask <B2DA3329-BBFE-4F82-B71B-16059B13C5DD>.<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-07-04 11:40:46.179874+0800 WeatherSpotter[52480:1169312] WeatherSpotter/WeatherForecaster.swift:17: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={_kCFStreamErrorCodeKey=-72000, NSUnderlyingError=0x6000038e0420 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en1, ipv4, dns, _kCFStreamErrorCodeKey=-72000, _kCFStreamErrorDomainKey=10}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <B2DA3329-BBFE-4F82-B71B-16059B13C5DD>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(     "LocalDataTask <B2DA3329-BBFE-4F82-B71B-16059B13C5DD>.<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} (lldb)
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to Which UI framework will be better for developing user interface, UIKit or SwiftUI [closed]
I like swiftUI's declarative syntax, but UIKit and AppKit is really much more powerful. Anyway, I like to create a swiftUI app and then add whatever I need in NS/UIViewRepresentable.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to Can I use apple virtualization in swiftUI?
Same problem. First check if your's apple silicon if not (like me) there's no luck whether with or not storyboard. Then, in the WWDC session it says that the VM UI is a NSView so you can learn some AppKit and use NSViewRepresentable and then it's a swiftUI View.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to SwiftUI Scrollview with both axes enabled produces layout mess
I don't think you need to add the axis. I remember it' automatic.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to Publishing an app from Swift Playgrounds 4.1
...ask others to do it for you? and... 4.1???
Replies
Boosts
Views
Activity
Jun ’22
Reply to How to develop for impending beta features while supporting older iOS versions
use #avaliable on mine works: if #available(iOS 16.0, *) {     ... } else {     ... } I'm not sure why yours don't.
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to Ventura no longer showing crash reports dialog
Oh yeah and even when I click Report.. it won't show.. maybe it's only own betas because me should do it ourself
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to macOS Big Sur 11.6.7 KDK
em.. why don't you try Venturaa?
Replies
Boosts
Views
Activity
Jun ’22
Reply to Getting "Develop in Swift" curriculum books in China
Me2....frustrating...
Topic: Business & Education SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to mocOS crashes and reboots while using Simulator
There's such thing as a FeedBack Assistant🫠
Replies
Boosts
Views
Activity
Jun ’22
Reply to Always re-create SwiftUI Window without previous data
Bug?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to Disabling Drag Gesture on Button in paged TabView
em...what do you mean by unresponsive to swipes?😂 sorry i have terrible comprehending
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to Strange Bug
DevForums said sth's wrong and won't let me upload screenshots...I'll find out a way how
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’22