Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Memory mapped file: "Cannot allocate memory"
Hello,I am having an hard time figuring out how memory mapped files works under iOS. Suppose that I want to read a big file, let's say 4GB. If I use memory mapped files in READ mode I should be able to get a valid pointer to a file and benefit from the page fault mechanism of virtual memory but apparently iOS can map only up to 2.5GB of data. I run the following test on an iPad Pro A1673 that has 2GB of ram and got as result:2018-04-06 17:20:12.660888+0200 TestMemory[414:316466] Data address: 0x1022240002018-04-06 17:20:12.662355+0200 TestMemory[414:316466] Data address: 0x1122240002018-04-06 17:20:12.663801+0200 TestMemory[414:316466] Data address: 0x12b9000002018-04-06 17:20:12.665235+0200 TestMemory[414:316466] Data address: 0x13b9000002018-04-06 17:20:12.666756+0200 TestMemory[414:316466] Data address: 0x14b9000002018-04-06 17:20:12.668202+0200 TestMemory[414:316466] Data address: 0x15b9000002018-04-06 17:20:12.669597+0200 TestMemory[414:316466] Data address: 0x16ff240002018-04-06 17:20:12.739549+0200 Tes
10
0
7.9k
Sep ’22
Reply to iOS 16Crashed: com.apple.privacyaccounting.PAAccessLogger
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:
Sep ’22
Sandbox restriction message caused by differing Application Identifier Prefix and Team Identifier in an extension?
I'm working on an out-sourced application for a company and when a version of it built using ids and provisioning profiles from my Apple account it runs without problems. However when it is built and run using the company's ids and provisioning profiles I am seeing an issue with it. What is happening is when a notification service extension uses a call extension then the OS logs: doQueryCallExtensionStatusWithDispatchGroup() COMPLETED WITH ERROR: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.CallKit.CallDirectory was invalidated: failed at lookup with error 159 - Sandbox restriction. UserInfo= NSDebugDescription=The connection to service named com.apple.CallKit.CallDirectory was invalidated: failed at lookup with error 159 - Sandbox restriction. I noticed that in the company's provising profile for the notification service extension the app identier prefix is different from the team identifer. In my own provisioning profile the app identifier prefix and team iden
2
0
8.0k
Sep ’22
Reply to Quicklook Thumbnailing not working in iOS 16 betas
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:
Sep ’22
HomeKit API Add Accessory Issue
Hi, Im having an issue adding an accessory into the HomeKit manager. Im having an issue with adding the accessory after discovering the device. Im using the HomeKit Accessory Simulator The error is: 2022-04-17 20:01:20.157053-0400 LightSwitch[98255:3066692] validateSessionInfo: bundleID is invalid. Please specify the bundleID for kRTCReportingSessionInfoClientBundleID 2022-04-17 20:01:20.210457-0400 LightSwitch[98255:3066692] sendMessageWithDictionary: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.rtcreportingd UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd} 2022-04-17 20:01:20.210791-0400 LightSwitch[98255:3066692] startConfigurationWithCompletionHandler: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.rtcreportingd UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd} Please see screenshot of th
1
0
1.1k
Apr ’22
Reply to XPC between Container App and System Extension
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:
Sep ’22
OSX NSFileManager Error 513
I am developing a new OS-X App. When I try to save a file using an internally-generated file name based on the most-recently read file, I get Error 513. Saving to a file whose name comes from NSSavePanel works fine. What privilege is the App missing? Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file “2022-09-03.xml” in the folder “2022”. UserInfo={NSFilePath=/Volumes/HDD2/Documents/OS-X Apps/Polls/2022/2022-09-03.xml, NSUnderlyingError=0x600002765740 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}}
2
0
2.2k
Sep ’22
Connection error sending Local UserNotification
I am getting this error when I actually try to send a local notification, even when the app has been given proper access: Error sending notification: Error Domain=NSCocoaErrorDomain Code=4097 connection to service with pid 586 named com.apple.usernotifications.usernotificationservice Here is the notification sending code, though it is pretty straight forward: UNMutableNotificationContent * userNote = [UNMutableNotificationContent new]; NSMutableArray * identifiers = [NSMutableArray new]; if (messages.count == 1) { userNote.title = messages[0].sender[0].displayName; userNote.subtitle = messages[0].subject; } else { NSString * mkApplicationName = NSBundle.mainBundle.infoDictionary[@CFBundleName]; userNote.title = MKStringWithLocalizedFormat(@@APP_RECEIVED_@NUM_MESSAGES, mkApplicationName, messages.count); } for (MKMessage* message in messages) { if (message.postmarkIdentifier) { [identifiers addObject:message.postmarkIdentifier]; } } userNote.body = self.notificationMessage; userNote.userInfo = @{@Mess
2
0
966
Aug ’22
Error when calling initializeCloudKitSchema
I am trying to setup my CloudKit schema from CoreData using the NSPersistentCloudKitContainer but getting an error when calling try container.initializeCloudKitSchema() The error: Error Domain=NSCocoaErrorDomain Code=134060 A Core Data error occurred. UserInfo={encounteredErrors=( Error Domain=NSCocoaErrorDomain Code=134406 Request '07443E71-32AC-4E63-A163-AAF940FE1AD6' was aborted because the mirroring delegate never successfully initialized due to error: UserInfo={NSLocalizedFailureReason=Request '07443E71-32AC-4E63-A163-AAF940FE1AD6' was aborted because the mirroring delegate never successfully initialized due to error: } )} My container is iCloud., and is reflected in the Entitlement file.
1
0
1.1k
Aug ’22
Reply to On-demand resources suddenly stopped working?
I have exactly the same issue. When calling beginAccessingResources I get an error: Error: Error Domain=NSCocoaErrorDomain Code=4099 Connection invalidated to streaming unzip service. I have checked if this is a issue with the PNG image (colour profile, compression etc.) but no mater what I did I still get the same error. Environment Xcode: 13.4.1, Device: iPhone 11 Max Pro, iOS: 15.6.1
Aug ’22
Could not merge changes: with oldVersion = 0 and newVersion = 4
We're seeing a rare issue in the field that I haven't been able to reproduce. The app primarily uses a main queue managed object context, with a couple of other private queue contexts for specialized cases. Those cases do not modify objects that are also modified in the main queue context, so we haven't done anything to specifically handle merge conflicts. We shouldn't have any during normal operation.In at least one case, a user transitions from background to foreground and back to background in a short period of time. One of the things we do when transitioning to inactive state is to save the main queue context. During this save, sometimes it appears that all of the objects loaded in the main queue context will become conflicted. When this happens, the conflicts are very odd:Failed to save: Error Domain=NSCocoaErrorDomain Code=133020 Could not merge changes. UserInfo={conflictList=( NSMergeConflict (0x11d8ec540) for NSManagedObject (0x11bf50990) with objectID '0xd00000000f340014 <x-coredata://36
5
0
6.1k
Aug ’22
UIDocumentBrowserController on iOS 16 Beta - Error in opening my app's files. Works fine in iOS 14/15
Hi, I have an app on App Store that works in iOS 14/15 and I just downloaded Xcode 16 beta to test compatibility with iOS 16 beta. My app allows selecting photos or documents and encrypt them. This work fine in iOS 16 beta. The encrypted files, I can open them and decrypt them ok in iOS 14/15. But in iOS 16 Beta, I get this error when opening the encrypted file. Any changes in iOS 16 that I should do? Thanks M 2022-08-08 15:36:02.070081+1000 HideApp[4842:1574433] [default] [ERROR] Could not resolve bookmark. Error: NSError: Cocoa 257 The file couldn’t be opened because you don’t have permission to view it. 2022-08-08 15:36:02.070216+1000 HideApp[4842:1574433] [DocumentManager] Failed to create a url from bookmarkableString (Error Domain=NSCocoaErrorDomain Code=257 The file couldn’t be opened because you don’t have permission to view it.) 2022-08-08 15:36:02.070343+1000 HideApp[4842:1468399] [DocumentManager] tried to call delegate -documentBrowser:didPickDocumentURLs: with an empty array of items. Th
2
0
1.4k
Aug ’22
Reply to Xcode 14 Beta 3 is constantly getting an error with WeatherKit
Same issue is still present in b5. No way to get a valid result. Everything is correctly configured and with b2 we was able to get results on sim, running Xcode14b2. Now we receive always the following 2022-08-10 23:25:32.849941+0200 Where To[42790:8192039] [WeatherService] Encountered an error when fetching weather data subset; location=<+41.91643209,+12.52443409> +/- 0.00m (speed -1.00 mps / course -1.00) @ 10/08/22, 23:25:29 Ora legale dell’Europa centrale, 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})
Topic: App & System Services SubTopic: General Tags:
Aug ’22
tccutil like command for resetting the User Notifications setting?
Hello, While testing my app I want to be able to retry the workflow of doing the first request for the User Notifications, but I cannot find a way to reset that information. tccutil All [bundle id] did not work for me, so I am assuming that there might be another way to do this, but I have not been able to find it. Since you are here looking, one of the other reasons I want to do this, is that I am getting this error when I actually try to send a local notification, even when the app has proper access given: Error sending notification: Error Domain=NSCocoaErrorDomain Code=4097 connection to service with pid 586 named com.apple.usernotifications.usernotificationservice Thanks for any help, Scott
1
0
1.3k
Aug ’22
PhotoLibrary won't load on simulator but does on my iPad
I'm creating a multiplatform app on the Beta Xcode and have just migrated code over to set an image from the photo library. When I run the app on my iPad (with beta OS) it works fine. When running the same code on the iOS simulator I end up with a blank view without any images. There are a lot of errors outputted to the console starting with: 2022-07-12 09:59:46.037994-0700 MyAppName[10647:2080202] [UIFocus] TtGC7SwiftUI14_UIHostingViewVS_7AnyView implements focusItemsInRect: - caching for linear focus movement is limited as long as this view is on screen. objc[10647]: Class _EXRunningExtension is implemented in both myPathway/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/ExtensionFoundation.framework/ExtensionFoundation (0x7ff864a43f90) and myPathway/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simrunti
2
0
1.7k
Aug ’22