WeatherKit can't be accessed - ios

Whenever I try accessing the WeatherKit, I always receive this message
2022-11-03 21:02:37.690374-0500 Weather[151:578] [AuthService] Failed to get remote object proxy for: com.apple.weatherkit.authservice with error: Error Domain=NSCocoaErrorDomain Code=407 "connection to service named com.apple.weatherkit.authservice" UserInfo={NSDebugDescription=connection to service named com.apple.weatherkit.authservice}
2022-11-03 21:02:37.6914-000 Weather[151:580] [WeatherService] Encountered an error when fetching weather data subset; location=<+37.785800,-122.441700> +/- 5.00m (speed -1.00 mps / course -1.00) # 11/3/22, 9:02:25 PM Central Daylight Time, error=xpcConnectionFailed(Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.weatherkit.authservice" UserInfo={NSDebugDescription=connection to service named com.apple.weatherkit.authservice})
erorr
2022-11-03 21:02:37.691307-0500 Weather[15211:580478] [WeatherService] Encountered an error when fetching weather data subset; location=<+37.7800,-122.401700> +/- 5.00m (speed -1.00 mps / course -1.00) # 11/3/22, 9:02:25 PM Central Daylight Time, error=xpcConnectionFailed(Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.weatherkit.authservice" UserInfo={NSDebugDescription=connection to service named com.apple.weatherkit.authservice})
erorr
2022-11-03 21:02:38.15636-0500 Weather[1511:5478] [AuthService] Failed to get remote object proxy for: com.apple.weatherkit.authservice with error: Error Domain=NSCocoaErrorDomain Code=409 "connection to service named com.apple.weatherkit.authservice" UserInfo={NSDebugDescription=connection to service named com.apple.weatherkit.authservice}
2022-11-03 21:02:38.1562-0500 Weather[15211:588] [WeatherService] Encountered an error when fetching weather data subset; location=<+37.783400,-122.4000> +/- 5.00m (speed -1.00 mps / course -1.00) # 11/3/22, 9:02:38 PM Central Daylight Time, error=xpcConnectionFailed(Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.weatherkit.authservice" UserInfo={NSDebugDescription=connection to service named com.apple.weatherkit.authservice})
Code:
Task {
do {
let result = try await service.weather(for: location)
print(result)
}
catch {
print("error")
}
}
Is this something relates to Auth? I have also enabled WeatherKit in my app bundle, but still receive this response.

Make sure to add WeatherKit as a capability in Signing & Capabilities for your target.

Related

Why is this game working on android but error at ios?

first of all english is not my main language so if i write something wrong im sorry ^^
Im developing a mobile game with Unity and project close to end its working correctly on android but when i get an ios build its give me an error. Xcode, build and install game in IOS simulator device but while game opening after "Made With Unity" application closed (If xcode not open application closing if xcode is open it stuck with a black screen and i get an error on xcode)
but i didnt get any ios build before so i dont understand about xcode much :) actually i didnt see the error correctly too :D can someone help me ??
2022-08-18 10:31:24.771220+0100 KelimeZinciri[1411:16015] UnityIAP UnityEarlyTransactionObserver: Created
2022-08-18 10:31:24.771747+0100 KelimeZinciri[1411:16015] UnityIAP UnityEarlyTransactionObserver: Registered for lifecycle events
2022-08-18 10:31:25.039298+0100 KelimeZinciri[1411:16015] Built from '2021.3/staging' branch, Version '2021.3.3f1 (af2e63e8f9bd)', Build type 'Development', Scripting Backend 'il2cpp'
2022-08-18 10:31:25.042179+0100 KelimeZinciri[1411:16015] MemoryManager: Using 'Dynamic Heap' Allocator.
[UnityMemory] Configuration Parameters - Can be set up in boot.config
"memorysetup-bucket-allocator-granularity=16"
"memorysetup-bucket-allocator-bucket-count=8"
"memorysetup-bucket-allocator-block-size=4194304"
"memorysetup-bucket-allocator-block-count=1"
"memorysetup-main-allocator-block-size=16777216"
"memorysetup-thread-allocator-block-size=16777216"
"memorysetup-gfx-main-allocator-block-size=16777216"
"memorysetup-gfx-thread-allocator-block-size=16777216"
"memorysetup-cache-allocator-block-size=4194304"
"memorysetup-typetree-allocator-block-size=2097152"
"memorysetup-profiler-bucket-allocator-granularity=16"
"memorysetup-profiler-bucket-allocator-bucket-count=8"
"memorysetup-profiler-bucket-allocator-block-size=4194304"
"memorysetup-profiler-bucket-allocator-block-count=1"
"memorysetup-profiler-allocator-block-size=16777216"
"memorysetup-profiler-editor-allocator-block-size=1048576"
"memorysetup-temp-allocator-size-main=4194304"
"memorysetup-job-temp-allocator-block-size=2097152"
"memorysetup-job-temp-allocator-block-size-background=1048576"
"memorysetup-job-temp-allocator-reduction-small-platforms=262144"
"memorysetup-temp-allocator-size-background-worker=32768"
"memorysetup-temp-allocator-size-job-worker=262144"
"memorysetup-temp-allocator-size-preload-manager=262144"
"memorysetup-temp-allocator-size-nav-mesh-worker=65536"
"memorysetup-temp-allocator-size-audio-worker=65536"
"memorysetup-temp-allocator-size-cloud-worker=32768"
"memorysetup-temp-allocator-size-gfx=262144"
2022-08-18 10:31:25.174941+0100 KelimeZinciri[1411:16015] EM: Registering UNUserNotificationCenter delegate
-> applicationDidFinishLaunching()
Found 1 interfaces on host : 0) 192.168.1.21
Multi-casting "[IP] 192.168.1.21 [Port] 55000 [Flags] 2 [Guid] 2983696399 [EditorId] 0 [Version] 1048832 [Id] iPhonePlayer(8,MacBook-Pro-de-mac.local):56000 [Debug] 0 [PackageName] iPhonePlayer [ProjectName] <no name>" to [225.0.0.222:54997]...
Setting UIViewControllerBasedStatusBarAppearance to NO is no longer supported.
Apple actively discourages that, and all application-wide methods of changing status bar appearance are deprecated
2022-08-18 10:31:25.836694+0100 KelimeZinciri[1411:16015] UnityIAP UnityEarlyTransactionObserver: Added to the payment queue
-> applicationDidBecomeActive()
[Subsystems] Discovering subsystems at path /Users/mac/Library/Developer/CoreSimulator/Devices/34F07628-035A-4FE8-B9DC-6B659AA6413E/data/Containers/Bundle/Application/84E531A6-4562-46D9-9423-12FFF809ADF3/KelimeZinciri.app/Data/UnitySubsystems
GfxDevice: creating device client; threaded=1; jobified=1
Initializing Metal device caps: Apple iOS simulator GPU
Initialize engine version: 2021.3.3f1 (af2e63e8f9bd)
2022-08-18 10:31:26.271813+0100 KelimeZinciri[1411:17097] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x600003af6fa0> F8BB1C28-BAE8-11D6-9C31-00039315CD46
2022-08-18 10:31:27.594222+0100 KelimeZinciri[1411:17148] fopen failed for data file: errno = 2 (No such file or directory)
2022-08-18 10:31:27.594497+0100 KelimeZinciri[1411:17148] Errors found! Invalidating cache...
2022-08-18 10:31:28.611438+0100 KelimeZinciri[1411:17148] fopen failed for data file: errno = 2 (No such file or directory)
2022-08-18 10:31:28.611685+0100 KelimeZinciri[1411:17148] Errors found! Invalidating cache...
2022-08-18 10:31:28.739043+0100 KelimeZinciri[1411:16015] [HardwareKeyboard] -[UIApplication getKeyboardDevicePropertiesForSenderID:shouldUpdate:usingSyntheticEvent:], failed to fetch device property for senderID (778835616971358211) use primary keyboard info instead.
2022-08-18 10:31:28.741189+0100 KelimeZinciri[1411:16015] [HardwareKeyboard] -[UIApplication getKeyboardDevicePropertiesForSenderID:shouldUpdate:usingSyntheticEvent:], failed to fetch device property for senderID (778835616971358211) use primary keyboard info instead.
2022-08-18 10:31:28.880929+0100 KelimeZinciri[1411:17097] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
2022-08-18 10:31:28.881202+0100 KelimeZinciri[1411:17093] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
2022-08-18 10:31:28.881934+0100 KelimeZinciri[1411:17093] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
2022-08-18 10:31:28.882011+0100 KelimeZinciri[1411:17097] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
2022-08-18 10:31:28.882982+0100 KelimeZinciri[1411:16015] Unbalanced calls to begin/end appearance transitions for <SplashScreenController: 0x7fcaee763420>.
2022-08-18 10:31:28.883316+0100 KelimeZinciri[1411:17093] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
2022-08-18 10:31:28.883850+0100 KelimeZinciri[1411:17092] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
2022-08-18 10:31:28.887659+0100 KelimeZinciri[1411:17097] - <AppMeasurement>[I-ACS025026] Deferring to Firebase for event data collection
2022-08-18 10:31:28.890816+0100 KelimeZinciri[1411:17092] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
2022-08-18 10:31:28.891273+0100 KelimeZinciri[1411:17092] [Client] Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.}
UnloadTime: 1.035966 ms
dyld[1411]: missing symbol called
CoreSimulator 802.6.1 - Device: iPhone 11 Pro (34F07628-035A-4FE8-B9DC-6B659AA6413E) - Runtime: iOS 15.5 (19F70) - DeviceType: iPhone 11 Pro
(lldb)
It shows me this lines

What is the error: NSDebugDescription=The connection to service with pid 68 named com.apple.pegasus was invalidated from this process

I was trying to Adopting Picture in Picture for video calls followed the link: https://developer.apple.com/documentation/avkit/adopting_picture_in_picture_for_video_calls
Now when i go to background i receive error on my console:
[Common] -[PGPictureInPictureProxy (0x14d526a60) _updateAutoPIPSettingsAndNotifyRemoteObjectWithReason:] - Acquiring remote object proxy for connection <NSXPCConnection: 0x283c68960> connection to service with pid 68 named com.apple.pegasus failed with error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service with pid 68 named com.apple.pegasus was invalidated from this process." UserInfo={NSDebugDescription=The connection to service with pid 68 named com.apple.pegasus was invalidated from this process.}
What is this error for?
It will be helpful if anyone can help on this.

Zendesk iOS SDKs [Error : "The connection to service on pid 87 named com.apple.commcenter.coretelephony.xpc was invalidated from this process."]

Tried to implement ZenDesk iOS SDK as per their documentation:
https://developer.zendesk.com/documentation/zendesk-web-widget-sdks/sdks/ios/getting_started/#show-the-conversation
the chat interface is not displaying as said in the documentation, instead we got an error
[Client] Updating selectors after delegate removal failed with: Error Domain=NSCocoaErrorDomain Code=4099 "
The connection to service on pid 87 named com.apple.commcenter.coretelephony.xpc was invalidated from this process."
UserInfo={NSDebugDescription=
The connection to service on pid 87 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}
We use:
Xcode version: 12.5.1
Swift version: 5.4.2
is there any solution for this error?

When I use xctest to test my download function , it occurs this error

An error occurred on the xpc connection:
Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.nsurlsessiond" UserInfo={NSDebugDescription=connection to service named com.apple.nsurlsessiond}
I don't known what it is "service named" com.apple.nsurlsessiond??

Xcode 8 SiriKit Extension - Could not attach to pid

Almost every time I try to run my SiriKit Extension, I get "Sorry, you'll need to continue in the app" along with "Could not attach to pid : '####'" on Xcode. I have Siri capability enabled. Weirdly, 1 out of 10 times when I clean and rebuild, the extension works. Does anyone know how to deal with this?
Edit:
In console.app I'm getting this:
Aug 15 11:43:43 iPhone assistantd(PlugInKit)[12442] <Info>: preparing plug-in <private>(<private>)
Aug 15 11:43:43 iPhone assistantd(PlugInKit)[12442] <Notice>: connection to plug-in <private>(0DDA43D4-A588-4478-8405-C219EAA7F591) lost
Aug 15 11:43:43 iPhone assistantd(PlugInKit)[12442] <Error>: Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.appID.SiriKitExtension" UserInfo={NSDebugDescription=connection to service named com.appID.SiriKitExtension}
Aug 15 11:43:43 iPhone assistantd(PlugInKit)[12442] <Info>: beginUsing of 0DDA43D4-A588-4478-8405-C219EAA7F591 concludes with error=Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.appID.SiriKitExtension" UserInfo={NSDebugDescription=connection to service named com.appID.SiriKitExtension}
Aug 15 11:43:43 iPhone assistantd(Foundation)[12442] <Notice>: PlugInKit error in beginUsing:
Aug 15 11:43:43 iPhone assistantd[12442] <Error>: __52-[ADExtensionService handleCommand:forDomain:reply:]_block_invoke_2.154 Error with extension request Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.appID.SiriKitExtension" UserInfo={NSDebugDescription=connection to service named com.appID.SiriKitExtension}
Aug 15 11:43:43 iPhone assistantd(Foundation)[12442] <Notice>: killing invalid plugIn
Aug 15 11:43:43 iPhone assistantd[12442] <Error>: -[ADCommandCenter _handleServiceReply:error:forCommand:] Handling service error Error Domain=kAFAssistantErrorDomain Code=1301 "(null)" UserInfo={NSUnderlyingError=0x1005d1eb0 {Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.appID.SiriKitExtension" UserInfo={NSDebugDescription=connection to service named com.appID.SiriKitExtension}}} for command <private>
Fixed the problem after weeks of debugging.
My problem was that SiriKit was running on armv7 architecture. Changing it to arm64 or the default setting of armv7 + arm64 will fix this problem.
I hope this helps someone!

Resources