Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Reply to Xcode fails to start Loading a plug-in failed.
So after downloading and running the Xcode 12.2 beta from the developer.apple.com/download/universal. I'm still receiving the following error. So I will need some help: /Applications/Xcode-beta.app/Contents/MacOS/Xcode 2020-09-19 18:53:57.325 Xcode[4040:113313] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.IDE.IDEiOSSupportCore (/Applications/Xcode-beta.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin), error = Error Domain=NSCocoaErrorDomain Code=3587 dlopenpreflight(/Applications/Xcode-beta.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore): Library not loaded: /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice Referenced from: /Applications/Xcode-beta.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore Reason: no suitable image found. Did find: /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice: mach-o, but wrong architecture /Library/Apple/System/Library/
Sep ’20
Plug in not registered
have a VPN client with Packet Tunnel Provider for OS X (Mac OS). It's already at the app store.For most of the people, it's working great, but for some others, it's not working at all -They try to turn on the VPN without any success, and I can see at their logs the following errors:- unknown80e6501154c4 pkd[1346]: enabling pid=1688 for plug-in com.myComp.mac.myClient.myClientExtension(1.0.1) 22F61C31-095F-4BA3-A914-8F1ED65F6EEB /Applications/myClient.app/Contents/PlugIns/myClientExtension.appex - unknown80e6501154c4 myClientExtension[1689]: plug-in sdk com.apple.networkextension.packet-tunnel not registered - unknown80e6501154c4 com.apple.xpc.launchd[1] (com.myComp.mac.myClient.myClientExtension[1689]): Service exited due to signal: Illegal instruction: 4 - unknown80e6501154c4 neagent[1688]: plugin com.myComp.mac.myClient.myClientExtension interrupted - unknown80e6501154c4 neagent[1688]: Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.myComp.mac.myClient
0
0
474
Aug ’16
NSCloudKitMirroringExportRequest issues
I'm attempting to create a Swift/SwiftUI app that will run on iOS/iPadOS that uses CloudKit to syncronize data between devices. I have created the App in Xcode.In the Apps Signing & Capabilities tab, I have:- Ensured that the Bundle Identifier is valid- Added the iCloud capability - Created the Container and checked it - Validated that the Container was created in the CloudKit Dashbaord- Added the Backgrouind Modes capability - Checked the Remote notifications optionI have modified/validated AppDelegate.swift:- Validated that it is using NSPersistentCloudKitContainer- Added container.viewContext.automaticallyMergesChangesFromParent to true- Added container.viewContext.mergePolicy to NSMergeByPropertyObjectTrumpMergePolicyWhen I load the App, I get a series of errors reported related to CloudKit NSCloudKitMirroringExportRequest. These errors are shown below. I am able to create records, but can see they are only stored locally and do not get synced to the CloudKit Dashboard - interestingly enough, the sche
21
0
14k
Apr ’20
CoreData + CloudKit initial db seed
I'm having some trouble setting an initial sqlite seed for my project. I'm using the public database and I exported the initial .sqlite, .sqlite-shm, .sqlite-wal files in the project bundle. The files are consumed properly and the seed is reflected on my device, but when I test on a different device (signed in with another iCloud account), I get a reimport and the error: Failed to set up CloudKit integration for store: NSSQLCore: 0x13e9171d0 (URL: file:///var/mobile/Containers/...CloudPublic.sqlite) Error Domain=NSCocoaErrorDomain Code=134405 (null) UserInfo={PFCloudKitOldUserIdentityKey=_XXX, PFCloudKitNewUserIdentityKey=_YYY, NSCloudKitMirroringDelegateResetSyncReasonKey=3} Sending 'NSCloudKitMirroringDelegateWillResetSyncNotificationName' with reason: 'AccountChange' Is there any way around this for setting an initial sqlite seed?
0
0
946
Mar ’21
Localized String with Arguments for UserNotification Causing Service Error
When using NSString.localizedUserNotificationString(:_) with an argument, the system service responsible for user notifications fails.[Connections] [REDACTED_BUNDLE_ID] Adding notification request failed with error: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.usernotifications.usernotificationservice UserInfo={NSDebugDescription=connection to service namedIf the arguments argument is nil, this problem does not occur.Localizable.stringsnotification_one = Here's a number: %D; notification_two = Hello;Swiftlet notificationContentOne = UNMutableNotificationContent() notificationContentOne.body = NSString.localizedUserNotificationString(forKey: notification_one, arguments: [5]) UNUserNotificationCenter.current().add(notificationContentOne) // <-- Service error let notificationContentTwo = UNMutableNotificationContent() notificationContentTwo.body = NSString.localizedUserNotificationString(forKey: notification_two, arguments: nil) UNUserNotificationCenter.current().ad
1
0
2.2k
Aug ’18
run app in Xcode 12 simulator
when i run my app in Xcode 12 simulator it give this error The file “ERP” couldn’t be opened because you don’t have permission to view it. Domain: NSCocoaErrorDomain Code: 257 Failure Reason: You don’t have permission. Recovery Suggestion: To view or change permissions, select the item in the Finder and choose File > Get Info. User Info: { NSFilePath = /Users/Hani/Library/Developer/Xcode/DerivedData/ERP-famblluulftfkoeqfddavcaudaym/Build/Products/Debug-iphonesimulator/ERP.app; } - The operation couldn’t be completed. Permission denied Domain: NSPOSIXErrorDomain Code: 13 Failure Reason: Permission denied - System Information macOS Version 10.15.7 (Build 19H2) Xcode 12.0.1 (17220)
5
0
1.9k
Sep ’20
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
Sep ’24
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
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
"service named com.apple.iWorkFileFormat was invalidated"
Hi,I'm working with the drag-and-drop APIs, and it works fine for most cases, except when I try to drag old Pages documents ... it gives me this error:[claims] Upload preparation for claim E85405F1-75D1-4DA3-9E88-4DC25443D475 completed with error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.iWorkFileFormat was invalidated. UserInfo={NSDebugDescription=The connection to service named com.apple.iWorkFileFormat was invalidated.}I have already adde com.apple.iWorkFileFormat as a supported UTI, as well as all flavors of text and rich-text. It even works with MS Word files. Not sure why Pages doesn't work ... it might be an old Pages document, but it should still be supported. Am I missing a particular UTI?
0
0
390
Jun ’17
CoreTelephony SubscriberInfo returns nil values when called from Unwanted Communication Extension
Everywhere I can find the same solution to retrieve carrier information. So Im sure it works. but, For me its returning an error:Descriptors query returned error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated. UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}The code that generates this error is inside unwanted message communication extension like:let networkInfo = CTTelephonyNetworkInfo() let carrier = networkInfo.subscriberCellularProvider print(carrier);As it works in the parent app but not inside the target extension, Im sure that the Extension is not allowing me to do so. If thats the case then what are my other options? It would be a roadblock if I cannot send the Carrier Name of the user along with the userInfo.
3
0
9.0k
Aug ’18
Filemanager won't remove file
I'm trying to remove a file in the Documents directory, but it says that the file doesn't exist! Here's my coding:let zipFiles = documentSTRINGS.filter{$0.hasSuffix(zip)} .... .... do{ print (zipFiles) try FileManager.default.removeItem(atPath: zipFiles.first!) } catch{ print (error) }zipFiles prints [file:///private/var/mobile/Containers/Data/Application/XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX/Documents/Accoltus.zip]. So I know the file exists, but it's printing the following error:Error Domain=NSCocoaErrorDomain Code=4 “Accoltus.zip” couldn’t be removed. UserInfo={NSFilePath=file:/ Remove), NSUnderlyingError=0x1c445d730 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}}This isn't making any sense. Does anyone have any clue why this is happening?
4
0
7.8k
Jan ’18
How to load an audio file in the Playground?
I want to load a local file in the playground. Started by adding it to the resources directory of navigator.To make sure I get the correct full path, I did a drag and drop to the source-code and got the complete string path.This doesn't seem to be the correct way of doing it. The error I got is:Playground execution terminated: An error was thrown and was not caught:Error Domain=NSCocoaErrorDomain Code=264 The file “click.wav” couldn’t be opened because the text encoding of its contents can’t be determined. UserInfo={NSFilePath=/foobar/click.wav}Here's the source:let url = URL(fileURLWithPath: /foobar/click.wav)Have in mind that for brevity used `foobar` in the file path.The library I'd like to pass the variable expects a `URL`!
1
0
580
May ’20
closure #1 in closure #1 in CoreDataManager.persistentContainer.getter
Hello everyone, I am experiencing a very weird issue. There are two scenario, and the crash issue direct to persistentContainer.getter last. I know the error is occur in this line : CoreDataManager.persistentContainer.getter + 51 code block: fatalError(Unresolved error (error), (error.userInfo)) scenario1, Xcode crash report: scenario 2, firebase crashlystic: detail info: ProjectName/CoreDataManager.swift:51: Fatal error: Unresolved error Error Domain=NSCocoaErrorDomain Code=134110 An error occurred during persistent store migration. UserInfo={sourceURL=file:///private/var/mobile/Containers/Shared/AppGroup/8DA377D9-5CE2-47BB-A985-8A8B7CCD071C/FraudInfo.sqlite, reason=Cannot migrate store in-place: I/O error for database at /private/var/mobile/Containers/Shared/AppGroup/8DA377D9-5CE2-47BB-A985-8A8B7CCD071C/FrankInfo.sqlite. SQLite error code:1, 'duplicate column name: ZISSEARCH', destinationURL=file:///private/var/mobile/Containers/Shared/AppGroup/8DA377D9-5CE2-47BB-A985-8A8B7CCD071C/FrankInfo.sqlite,
0
0
1k
Nov ’23
connection to service created from an endpoint
The execution of the shortcut command is abnormal. An App Intents was created through xcode, a test example was written, and an exception was executed. error: couldn`t communicate with a helper application. log: Shortcut failed with error Error Domain=NSCocoaErrorDomain Code=4097 connection to service created from an endpoint UserInfo={NSDebugDescription=connection to service created from an endpoint, WFActionIndex=0}. -[WFBackgroundShortcutRunner callWorkflowRunningCompletionBlockWithResult:] Workflow Did Finish: Calling Completion Block -[WFBackgroundShortcutRunner listener:shouldAcceptNewConnection:]_block_invoke XPC connection invalidated -[WFBackgroundShortcutRunnerStateMachine invalidateWithReason:] connection invalidated/interrupted while finishing shortcut or exiting runner. Exiting should already be in process, not transitioning. -[WFBackgroundShortcutRunner unaliveProcess]_block_invoke_2 Exiting process
0
0
86
Aug ’25