Hi ! I'm using WeatherKit and Core Location for give to my users the weather from their long and lat. I done this on snippet code, it works on littlest project but when I implement it on my main project I get errors I got the developer program and activated it on Apple Developer. 2022-10-15 15:15:52.451584+0200 Sporolotor[9275:1486477] [AuthService] Failed to get remote object proxy for: com.apple.weatherkit.authservice with error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.weatherkit.authservice was invalidated: failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDescription=The connection to service named com.apple.weatherkit.authservice was invalidated: failed at lookup with error 159 - Sandbox restriction.} 2022-10-15 15:15:52.452560+0200 Sporolotor[9275:1486477] [WeatherService] Encountered an error when fetching weather data subset; location=<+48.77307076,+2.34674782> +/- 0.00m (speed -1.00 mps / course -1.00) @ 15/10/2022 15:15
Search results for
NSCocoaErrorDomain
1,063 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I have a swift application and there is a requirement to download mp4 files from AWS bucket. I'm able to download file with smaller sizes but can't download files above particular sizes say 2GB and its depend on device too. While trying to download such kind of files, getting the below error `Failed with error: Error Domain=NSCocoaErrorDomain Code=256 The file couldn’t be opened. Also noticed that when trying to download 140 files with size of 100 MB each only able to download a maximum of approximately 100 files, after that I got the same error. Is there any such limit on iOS for downloading files.
I'm building a macOS + iOS SwiftUI app using Xcode 14.1b3 on a Mac running macOS 13.b11. The app uses Core Data + CloudKit. With development builds, CloudKit integration works on the Mac app and the iOS app. Existing records are fetched from iCloud, and new records are uploaded to iCloud. Everybody's happy. With TestFlight builds, the iOS app has no problems. But CloudKit integration isn't working in the Mac app at all. No existing records are fetched, no new records are uploaded. In the Console, I see this message: error: CoreData+CloudKit: Failed to set up CloudKit integration for store: (URL: ) Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.cloudd was invalidated: failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDescription=The connection to service named com.apple.cloudd was invalidated: failed at lookup with error 159 - Sandbox restriction.} I thought it might be that I was missing the com.apple.security.network.client entitlement, but
Hi, I am trying to create a hard link on MacOS(Mac Catalyst App) between files using [self linkItemAtURL:fromURL toURL:toURL error:&error]; Source Path for MacOS - /var/folders/lf/dt_4nxd945jdry2241phx0_40000gn/T/net.appname.AppName/documents/... Destination Path for MacOS - /Users/username/Library/Group Containers/group.net.appname.AppName.shared/Message/Media/... Although the same code works fine on iOS, but getting following error on MacOS Error Domain=NSCocoaErrorDomain Code=513 couldn’t be linked because you don’t have permission to access, Operation not permitted Source Path for iOS - /Users/user/Library/Developer/CoreSimulator/Devices/B4054540-345F-4D90-A3C5-DA6E6469A3FC/data/Containers/Data/Application/B4AB7D70-491C-49E5-9A3F-27E66EC3423D/tmp/documents/... Destination Path for iOS - /Users/user/Library/Developer/CoreSimulator/Devices/B4054540-345F-4D90-A3C5-DA6E6469A3FC/data/Containers/Shared/AppGroup/842B248E-CCA6-4B5C-82BD-2858EADD3A90/Message/Media/... However, interestingly if I try t
Hi team, I am working with CommandPlugin and with the help of command plugin I can able to create files inside my Package directory but I want to create a file in my project directory but whenever I try to create new file outside Package directory it is saying like there is no permission to create a file in this folder. Is this possible to create new file inside project directory using CommandPlugin ? Can you please help me for this ? I am struggling on this more than a week. Eagerly waiting for you kind support. Thank you so much. Scenario, 1.Able to Crete new file inside Package directory, 2.Facing permission issues - while creating new files inside project directory with the help of CommandPlugin Issue: Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file file.txt in the folder ProjectFolder
Topic:
Programming Languages
SubTopic:
Swift
Tags:
Swift
Swift Packages
wwdc2022-110359
wwdc2022-110401
Hi there, Introduction I have been working on a Finder Sync extension and I would now like to use it to access a file the user has selected. This has been causing me significant issues (and I believe that a lot of other developers have also experienced similar issues with the extension). Because I plan to release my app on the App Store, I need both the main app and the finder sync app to be sandboxed Some example code describing the issue When the user executes the custom finder action in the context menu, I use the following code to extract and access the selected files: guard let target = FIFinderSyncController.default().selectedItemURLs() else { NSLog(Failed to obtain targeted URLs: %@) return } do { //Read content of the first selected file (example) let text = try String(contentsOf: target[0], encoding: .utf8) }catch { print(Some error occurred: (error)) } The problem Though these files should have a sandbox exception (because they are selected by the user), they do not and I get the following error bec
After took 48MP ProRaw photo, captureOutput:(AVCapturePhotoOutput *)output didFinishProcessingPhoto write to photo library use [PHPhotoLibrary sharedPhotoLibrary] performChangesAndWait: or [PHPhotoLibrary sharedPhotoLibrary] performChanges There is a high probability of failure No matter use fileURL or [photo fileDataRepresentation] failure info below 2022-09-28 10:43:57.353815+0800 LUTCamera[2031:218103] [GatekeeperXPC] Error received from proxy factory in sendChangesRequest:usingProxyFactory:error:: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.photos.service was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid. UserInfo={NSDebugDescription=The connection to service named com.apple.photos.service was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid.} 2022-09-28 10:43:57.354114+0800 LUTCamera[2031:218103] [PhotoKit] PhotoKit XPC proxy is invalid.
I also encountered a similar problem with the error message as follows: Is there any way to fix it iOS16 xcode 14 [PAAccessLogger] Failed to log access with error: access= accessor:<> identifier:ED0F70CE-BEB5-4F47-8213-9A7E52AEFB80 kind:intervalEvent timestampAdjustment:0 visibilityState:0 assetIdentifierCount:0 tccService:kTCCServicePhotos, error=Error Domain=NSCocoaErrorDomain Code=4097 connection to service with pid 2824 named com.apple.privacyaccountingd UserInfo={NSDebugDescription=connection to service with pid 2824 named com.apple.privacyaccountingd}
Topic:
App & System Services
SubTopic:
Core OS
Tags:
There appears to be an interoperability issue between Xcode 14 and iOS 11 devices. Specifically with libswiftCoreGraphics.dylib. I build a Swift based framework that has a deployment target of iOS 11. When I build the SDK with Xcode 13.4.1 and run the unit tests on iOS 11, everything works as expected. When I switched to Xcode 14, it continually fails when attempting to run the unit tests on an iOS 11 device. I began digging into this and was trying to determine if it was an issue with some dependency or something in my project. I created a test project with Xcode 13.4.1, Xcode14-iOS11_Bug, which consists of a simple Swift application and one unit test file. When I run the unit from Xcode 13.4.1 targeting an iPhone 7 running iOS 11.4.1, it runs as expected. I then opened the same project with Xcode 14 and attempted to run the unit test I am greeted with the same error about libswiftCoreGraphics.dylib not being loaded. 2022-09-14 15:19:00.871686-0400 Xcode14-iOS11_Bug[616:100103] Failed to load test bundle fro
And I should note that when using iCloud (ubiquitous container), we get a different thumbnail error when we initially create the document: Error Domain=NSCocoaErrorDomain Code=4101 Provider returned unsupported error UserInfo={NSDebugDescription=Provider returned unsupported error, NSUnderlyingError=0x2811fd920 {Error Domain=CKErrorDomain Code=11 UserInfo={ContainerID=com.apple.clouddocs, NSDebugDescription=, OperationID=B21EB1404E50EF3F, RequestUUID=46519FDB-FB10-48FF-B736-93650812BA45, errorKey=ckvneous, ServerErrorDescription=Record not found, CKErrorDescription=Error fetching record from server: Record not found, NSLocalizedDescription=Error fetching record from server: Record not found, NSUnderlyingError=0x2811ff360 {Error Domain=CKInternalErrorDomain Code=2003 UserInfo={ContainerID=com.apple.clouddocs, OperationID=B21EB1404E50EF3F, NSDebugDescription=, RequestUUID=46519FDB-FB10-48FF-B736-93650812BA45, errorKey=ckvneous, ServerErrorDescription=Record not found, CKErrorDescription=Error fetch
Topic:
App & System Services
SubTopic:
Core OS
Tags:
Hello, I have sporadically in the field the following issue as a response of the method: CXCallDirectoryManager.sharedInstance.getEnabledStatusForExtension(withIdentifier: ------) Sporadic error: The connection to service named com.apple.CallKit.CallDirectory was invalidated from this process. nserror-code 4099 nserror-domain NSCocoaErrorDomain Has anyone more info about this call kit error? RGDS & Thanks a lot.
anyone getting the following error with CloudKit+CoreData on iOS16 RC? delete/resintall app, delete user CloudKit data and reset of environment don't fix. [error] error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _requestAbortedNotInitialized:](2044): - Never successfully initialized and cannot execute request ' 41E6B8D6-08C7-4C73-A718-71291DFA67E4' due to error: Error Domain=NSCocoaErrorDomain Code=4864 *** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: incomprehensible archive (0x53, 0x6f, 0x6d, 0x65, 0x20, 0x65, 0x78, 0x61) UserInfo={NSDebugDescription=*** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: incomprehensible archive (0x53, 0x6f, 0x6d, 0x65, 0x20, 0x65, 0x78, 0x61)}
I've tried what you suggested. That seems to have changed behaviour but I still get an error when connecting from the client. Specifically, when I called remoteObjectProxyWithErrorHandler previously I got this error: Error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.example.endpoint-test.Service was invalidated: failed at lookup with error 3 - No such process. UserInfo={NSDebugDescription=The connection to service named com.example.endpoint-test.Service was invalidated: failed at lookup with error 3 - No such process.} Now, after adding the NSEndpointSecurityMachServiceName property, I get the following vague error: Error: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.example.endpoint-test.Service UserInfo={NSDebugDescription=connection to service named com.example.endpoint-test.Service} N.B. that in order to even get this far I had to add com.apple.security.temporary-exception.mach-lookup.global-name to my container app entitlem
Topic:
App & System Services
SubTopic:
Core OS
Tags:
We're trying to use simctl clone on CI machines for our testing needs. The current flow is: invoke simctl create and then simctl boot to boot the simulator to prepare its state then invoke simctl shutdown to make it finally clonable After this, we try to use simctl clone to create simulators on demand and then boot them after that in order to achieve better perf. However, on some machines clone invocation fails. CoreSimulator.log contains the following log statements: Sep 6 14:24:18 build-machine01 CoreSimulatorService[25622] : Failed to clone the device data path from /Users/_emcee/Library/Developer/CoreSimulator/Devices/4DFD3185-EAE5-4FB0-8C7D-648B7350B1A1/data to /Users/_emcee/Library/Developer/CoreSimulator/Devices/CEB8D8B8-5FE4-43B2-90C2-22769AFAB387/data, error = Error Domain=NSCocoaErrorDomain Code=260 The file “data” couldn’t be opened because there is no such file. UserInfo={NSFilePath=/Users/_emcee/Library/Developer/CoreSimulator/Devices/4DFD3185-EAE5-4FB0-8C7D-648B7350B1A1/data, NSUnderlyi
I'm using UIDocumentPickerViewController to open a url. Works fine in debug mode but version on the App Store is failing. Code to create the document picker is like: NSArray *theTypes = [UTType typesWithTag:@docxtensionhere tagClass:UTTagClassFilenameExtension conformingToType:nil]; UIDocumentPickerViewController *documentPicker = [[UIDocumentPickerViewController alloc]initForOpeningContentTypes:theTypes]; documentPicker.delegate = self; [self presentViewController:documentPicker animated:YES completion:nil]; So in debug mode this is all gravy. -documentPicker:didPickDocumentsAtURLs: passes back a URL and I can read the file. In release mode I get a URL but my app is denied access to read the file. After inspecting some logging it appears the sandbox is not granting my app permission. error Domain=NSCocoaErrorDomain Code=257 The file “Filename.fileextensionhere” couldn’t be opened because you don’t have permission to view it. UserInfo={NSFilePath=/private/var/mobile/Library/Mobile Documents/comappleC