Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Core Data Light Migration Crash When Widget is Installed (Error 134100)
I'm experiencing a crash during a lightweight Core Data migration when a widget that accesses the same database is installed. The migration fails with the following error: CoreData: error: addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (134100) error: userInfo: CoreData: error: userInfo: error: metadata : { NSPersistenceFrameworkVersion = 1414; NSStoreModelVersionChecksumKey = dY78fBnnOm7gYtb+QT14GVGuEmVlvFSYrb9lWAOMCTs=; NSStoreModelVersionHashes = { Entity1 = { ... }; Entity2 = { ... }; Entity3 = { ... }; Entity4 = { ... }; Entity5 = { ... }; }; NSStoreModelVersionHashesDigest = aOalpc6zSzr/VpduXuWLT8MLQFxSY4kHlBo/nuX0TVQ/EZ+MJ8ye76KYeSfmZStM38VkyeyiIPf4XHQTMZiH5g==; NSStoreModelVersionHashesVersion = 3; NSStoreModelVersionIdentifiers = ( ); NSStoreType = SQLite; NSStoreUUID = 9AAA7AB7-18D4-4DE4-9B54-893D08FA7FC4; _NSAutoVacuumLevel = 2; } The issue occurs only when the widget is installed. If I remove the widget’s access to the Core Data store, the m
3
0
749
Feb ’25
WorldTrackingProvider stops working on device
After re-launching the immersive space in my app 5-10 times, the WorldTrackingProvider stops working. Only restarting the app will allow it to start working again. Only on device, not the simulator. I get these errors when it happens: The device_anchor can only be queried when the world tracking provider is running. ARPredictorRemoteService <0x107cbb5e0>: Service configured with error: Error Domain=com.apple.arkit.error Code=501 (null) Remote Service was invalidated: , will stop all data_providers. ARRemoteService: remote object proxy failed with error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service with pid 81 named com.apple.arkit.service.session was invalidated from this process. UserInfo={NSDebugDescription=The connection to service with pid 81 named com.apple.arkit.service.session was invalidated from this process.} ARRemoteService: weak self released before invalidation @Observable class VisionPro { let session = ARKitSession() let worldTracking = WorldTrackingProvide
3
0
449
Feb ’25
Reply to Issue with .itemProvider on macOS 15.1
Was there a fix for this problem what was not mentioned in the macOS release notes? After ignoring this problem for some time I recently found out, that it works again! But strangely I had to switch back to use .itemProvider, as the above shown solution with FileRepresentation doesn't work when drag and drop to Apple Mail. This will lead to the error: Writing data to /Users/joachim/Library/Containers/com.apple.mail/Data/tmp/WebKitDropDestination-QxhKmpOG/test.txt failed. Error: Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file “test.txt” in the folder “WebKitDropDestination-QxhKmpOG”. UserInfo={NSUserStringVariant=( Folder ), NSFilePath=/Users/joachim/Library/Containers/com.apple.mail/Data/tmp/WebKitDropDestination-QxhKmpOG/test.txt, NSURL=file:///Users/joachim/Library/Containers/com.apple.mail/Data/tmp/WebKitDropDestination-QxhKmpOG/test.txt, NSUnderlyingError=0x600003a964c0 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}} Any ideas?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’25
Safari Content Blocker fails to reload with large amount of rules (but under limit)
Hello, I am developing Safari Content Blocker extension and discovered that it frequently fails to load with large amount of rules. Currently I have over 45k and most of the time when I reload the extension on iOS 18 (iPhone 12) it ends with error: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.SafariServices.ContentBlockerLoader UserInfo={NSDebugDescription=connection to service named com.apple.SafariServices.ContentBlockerLoader} #0 And the simpler message is just: Couldn’t communicate with a helper application. From what I managed to find (for example here - https://developer.apple.com/forums/thread/756931) the limit for blocking rules should be 150k items. It was previously 50k but got increased years ago. Is there anything special I need to do to get the extension to work reliably with say 100k items? I am usng the JSON format from the docs: { trigger: { ... }, action: { ... } }, { trigger: { ... }, action: { ... } } ] My trigger is url-filter and the action is t
2
0
650
Feb ’25
Creating file bookmarks doesn't work anymore on macOS 15 Sequoia
Before updating to macOS 15 Sequoia, I used to be able to create file bookmarks with this code: let openPanel = NSOpenPanel() openPanel.runModal() let url = openPanel.urls[0] do { let _ = try url.bookmarkData(options: [.withSecurityScope]) } catch { print(error) } Now I get an error Error Domain=NSCocoaErrorDomain Code=256 Failed to retrieve app-scope key These are the entitlements: com.apple.security.app-sandbox com.apple.security.files.user-selected.read-write com.apple.security.files.bookmarks.app-scope Strangely, my own apps continued working, after updating to macOS 15 some days ago, until a few moments ago. Then it seems that all of a sudden my existing bookmarks couldn't be resolved anymore, and no new bookmarks could be created. What could be the problem?
28
0
3.6k
Feb ’25
CHHapticAdvancedPatternPlayer not working with GCController
Hello everyone, I want send haptics to ps4 controller. CHHapticPatternPlayer and CHHapticAdvancedPatternPlayer good work with iPhone. On PS4 controller If I use CHHapticPatternPlayer all work good, but if I use CHHapticAdvancedPatternPlayer I get error. I want use CHHapticAdvancedPatternPlayer to use additional settings. I don't found any information how to fix it - CHHapticEngine.mm:624 -[CHHapticEngine finishInit:]_block_invoke: ERROR: Server connection broke with error 'Не удалось завершить операцию. (com.apple.CoreHaptics, ошибка -4811)' The engine stopped because a system error occurred. AVHapticClient.mm:1228 -[AVHapticClient getSyncDelegateForMethod:errorHandler:]_block_invoke: ERROR: Sync XPC call for 'loadAndPrepareHapticSequenceFromEvents:reply:' (client ID 0x21) failed: Не удалось установить связь с приложением-помощником. Не удалось создать или воспроизвести паттерн: Error Domain=NSCocoaErrorDomain Code=4097 connection to service with pid 5087 named com.apple.GameController.gamecontroller
1
0
451
Feb ’25
Authorizing Apple Pay via non-Safari browser fails to decode merchant session.
When attempting to authorize an Apple Payment on an iOS 18 device using the scannable code in a non-Safari browser (i.e. Chrome), the payment sheet displays briefly, then dismisses. This same exact implementation of Apple Pay on the Web works flawlessly in Safari, so this feels like a bug given that the merchant session works fine in Safari. The following errors were found in my iOS device logs: (PassbookUIService) Codable: Failed to decode Merchant Session Created: Error Domain=NSCocoaErrorDomain Code=4864 UserInfo={NSDebugDescription=, NSCodingPath=} (PassbookUIService) Session 29592: Fatal Error: Failed to decode merchant session created`
4
0
722
Jan ’25
Can an Action Extension use SwiftUI for its UI?
I'm trying to update an app of mine to have a more modern look, and the last part of it is the Action Extension in Safari. My info.plist file has the correct NSExtension details to use a storyboard, but storyboards look so old and I'd like to use a nicer SwiftUI-based look. Is this even possible? This is the relevant bit from the Info.plist: NSExtensionAttributes NSExtensionActivationRule NSExtensionActivationSupportsWebPageWithMaxCount 1 NSExtensionJavaScriptPreprocessingFile GetURL NSExtensionPointIdentifier com.apple.ui-services NSExtensionActionWantsFullScreenPresentation NSExtensionMainStoryboard MainInterface I see I can use NSExtensionPrincipalClass instead of NSExtensionMainStoryboard but then I get stuck. If I remove this: NSExtensionMainStoryboard MainInterface and replace it with this: NSExtensionPrincipalClass $(PRODUCT_MODULE_NAME).ActionViewController I get this error when I run the extension: Rejecting view controller creation request due to invalid extension storyboard or principal clas
1
0
577
Feb ’25
Issue Observed while Creating Car Key Session
I am Trying to Create Carkey Remote Control session Using Apple's Carkey Library, I have the required entitlements from MIFI program that apple requires, Still whenever I try to Create A Remote Control Session I am Getting Sandbox Restriction Error, Please Help the Exact Error is [default] Failed to get proxy Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.seserviced.session was invalidated: failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDescription=The connection to service named com.apple.seserviced.session was invalidated: failed at lookup with error 159 - Sandbox restriction.} [default] Session ended before it started can anyone please help me understand what this error means.
2
0
832
Nov ’22
AppClip URLSession network request problem
Hi, I have pretty trivial problem. So, I am trying to use URLSession network request but I am getting errors. This code is in the shared file that works when I run it as app, but when I run it as AppClip it is not working. Running on the simulator is working even as AppClip. Here is the code (pretty trivial): let session = URLSession.shared let url = URL(string: https://learnappmaking.com/ex/users.json)! let task = session.dataTask(with: url, completionHandler: { _, response, error in print(error) print(response) }) task.resume() I am getting this error: 2020-11-20 19:35:05.189273+0100 ExampleAppClip[14703:4633304] [Client] Updating selectors after delegate removal failed with: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 92 named com.apple.commcenter.coretelephony.xpc was invalidated from this process. UserInfo={NSDebugDescription=The connection to service on pid 92 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.} 2020-11-20 19:35:05.3637
6
0
2.3k
Jan ’25
Reply to Unable to upload to store using altool after account transfer
This is the altool command -> FAILURE xcrun altool --verbose --list-providers -u USERNAME --password APPLICATION_PASS 2025-01-28 11:54:56.589 Verbose logging enabled. 2025-01-28 11:54:56.591 Will look for transporter at executable bundle relative path: /Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/itms/bin/iTMSTransporter 2025-01-28 11:54:56.591 Looking for Transporter at path: /Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/itms/bin/iTMSTransporter 2025-01-28 11:54:56.591 Looking for Transporter at path: /Applications/Xcode.app/Contents/Developer/usr/bin/../SharedFrameworks/ContentDeliveryServices.framework/itms/bin/iTMSTransporter 2025-01-28 11:54:56.591 Looking for Transporter at path: /Applications/Xcode.app/Contents/Developer/usr/bin/../itms/bin/iTMSTransporter 2025-01-28 11:54:56.591 Looking for Transporter at path: /Applications/Transporter.app/Contents/itms/bin/iTMSTransporter 2025-01-28 11:54:56.591 Looking for Transporter a
Jan ’25
AppIntents Parameter requestValue not working in iOS 18 when parameter is not in parameterSummary
In iOS 18, the requestValue method no longer works when the parameter it is called on is not included in the parameterSummary of an AppIntent. This issue causes the app to fail to present a prompt for the user to select a value, resulting in an error with the message: Domain=NSCocoaErrorDomain Code=4099 The connection from pid 40685 on anonymousListener or serviceListener was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid. Steps to Reproduce: Create a simple AppIntent with the following code: import AppIntents struct Intent: AppIntent { static let title: LocalizedStringResource = Intent static var parameterSummary: some ParameterSummary { Summary(Test (.$category)) {} } @Parameter(title: Category) private var category: CategoryEntity? @Parameter(title: Hidden Category) private var hidden: CategoryEntity? @MainActor func perform() async throws -> some ReturnsValue { var result: CategoryEntity? do { result = try await $hidden.requestValue(S
5
0
1.1k
Jan ’25
Not able to save with SwiftData. "The file “default.store” couldn’t be opened."
I get this message when trying to save my Models. CoreData: error: SQLCore dispatchRequest: exception handling request: , I/O error for database at /var/mobile/Containers/Data/Application/726ECA8C-6C67-4BFE-89E7-AFD8A83CAA5D/Library/Application Support/default.store. SQLite error code:1, 'no such table: ZCALENDARMODEL' with userInfo of { NSFilePath = /var/mobile/Containers/Data/Application/726ECA8C-6C67-4BFE-89E7-AFD8A83CAA5D/Library/Application Support/default.store; NSSQLiteErrorDomain = 1; } SwiftData.DefaultStore save failed with error: Error Domain=NSCocoaErrorDomain Code=256 The file “default.store” couldn’t be opened. UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/726ECA8C-6C67-4BFE-89E7-AFD8A83CAA5D/Library/Application Support/default.store, NSSQLiteErrorDomain=1} The App has Recipes and Calendars and the user can select a Recipe for each Calendar day. The recipe should not be referenced, it should be saved by SwiftData along with the Calendar. import SwiftUI import SwiftData e
1
0
950
Jan ’25
Reply to Authorizing Apple Pay via non-Safari browser fails to decode merchant session.
I'm experiencing the same problem in Firefox 134.0 (aarch64) on macOS 14.6.1 (Apple M1). Console 1.1, shows these messages when connected to my iPhone 14 running iOS 18.1.1: error 14:43:31.069080+0000 PassbookUIService Codable: Failed to decode Merchant Session Created: Error Domain=NSCocoaErrorDomain Code=4864 UserInfo={NSCodingPath=, NSDebugDescription=} error 14:43:31.069103+0000 PassbookUIService Session 12311: Fatal Error: Failed to decode merchant session created
Topic: Safari & Web SubTopic: General Tags:
Jan ’25
Configuring vmnet_read_max_packets_key and vmnet_write_max_packets_key
Hi, I have couple of inquiries regarding the vmnet framework: Incorporating Global Variables: How should we integrate the new global variables in macOS 15.0+ vmnet_read_max_packets_key and vmnet_write_max_packets_key into our configuration to optimize packet transmission? Are those values populated dynamically or manually if so any recommended value ranges ? Buffer Allocation Issue: What strategies can we employ to mitigate this buffer allocation error and ensure more reliable packet transmission? We occasionally encounter the following error during packet writes: Error Domain=NSCocoaErrorDomain Code=512 The file couldn’t be saved. Error Domain=NSPOSIXErrorDomain Code=55 No buffer space available Your insights on these matters would be greatly appreciated.
2
0
464
Jan ’25