Search results for

NSCocoaErrorDomain Error Code 4

170,006 results found

Post

Replies

Boosts

Views

Activity

Today Extension with NSCocoaErrorDomain Code=4097
It may be a vague question, but I'm puzzled with this symtpom.I have an app with a Today extension.The Today extension in the released version installed from App Store somehow does not start up.(It fails to start up with console message: Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 connection to service named xxx UserInfo={NSDebugDescription=connection to service named xxx})However, when connected with Instruments (which means, when launched from Instruments), it starts up successfully.The exact same built, that startsup when connected with Instruments, fails to start up without Instruments.Could anyone explain what causes this diffrence?(The extension starts up immediately when run directly from Xcode as a debug built (no 'ate bad food' issue). It uses about 9MB memory. Built with Swift 3.)
2
0
3.8k
Sep ’16
bookmarkDataWithOptions yields: NSCocoaErrorDomain Code=256
When calling:NSURL* aURL = [NSURL URLByResolvingBookmarkData:secBookmark options:options relativeToURL:nil bookmarkDataIsStale:&isStale error:&err];isStale is YES.When attempting to get a fresh bookmark, calling:NSData* secureBookmark = [aURL bookmarkDataWithOptions:options includingResourceValuesForKeys:nil relativeToURL:nil error:&err];produces:2019-03-11 15:53:51.603133-0700 XXX[534:8439] Error: Error Domain=NSCocoaErrorDomain Code=256 Could not open() the item UserInfo={NSURL=file:///Users/oldmancoyote1/Desktop/E%20Projects%20folder/Drawing/Drawing%201%20.pdf, NSDebugDescription=Could not open() the item}If I ignore isStale, there appears to be no problem. Can I safely ignore isStale?
Topic: UI Frameworks SubTopic: AppKit Tags:
2
0
1.8k
Mar ’19
Failed to load test bundle from file, Error Domain=NSCocoaErrorDomain Code=3588
I have developed an app and its working fine, I decide to add Unit-Testing to the project while running the test on the device, Xcode throws me an error -> Failed to load test bundle from file:///private/var/containers/Bundle/Application/07F796E0-3BCE-4DF9-91E9-4D69E9B94F43/aspas%20dev.app/PlugIns/aspasDevTests.xctest/: Error Domain=NSCocoaErrorDomain Code=3588 dlopen(/var/containers/Bundle/Application/07F796E0-3BCE-4DF9-91E9-4D69E9B94F43/aspas dev.app/PlugIns/aspasDevTests.xctest/aspasDevTests, 0x0109): -> The bundle “aspasDevTests” couldn’t be loaded. Try reinstalling the bundle. I tried many things but nothing is working, needed help in the issue, Thanks in advance
2
0
3k
Mar ’23
PackageKit: Install Failed: Error Domain=NSCocoaErrorDomain Code=513
Hello everyone, I published my game Boulder Dash 40 which was created in Unity, exported as an Xcode project, and uploaded using Xcode’s Archive and Distribute functionality. The game successfully passed Apple’s review process and is available on the App Store. However, two users have reported that they are unable to install the game on their Macs. After downloading, the installation fails with an error message. The game installs and runs correctly for other users, including myself. Both affected users installed the game using redeem codes and had no prior installation of the game on their devices. The installation failure also occurs when attempting to install the app via TestFlight. I have made several changes to settings in both Unity and Xcode, but the issue persists. Could anyone provide insights or suggestions on what might be causing this installation failure? Thank you in advance for your help! Best regards, Jan Part of installation log with error attached install.log
1
0
77
Sep ’25
Could not get services from gamed - ERROR Error Domain=NSCocoaErrorDomain Code=4097
Hello,I've just implemented game centre in a small apple TV app.The first time it ran giving me a game center signin page.It then fails with this message2015-11-23 20:42:28.157 Star Fighter Mayhem[21388:5535458] Could not get services from gamed. Please file a radar including GameKit logs, and any gamed crash logs. ERROR Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.gamed UserInfo={NSDebugDescription=connection to service named com.apple.gamed}Just wondering if anyone else has seen this, before I post a radar.This is my complete log - with other weird error messages as well.2015-11-23 20:42:27.921 Star Fighter Mayhem[21388:5535229] Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found. Did find: /System/Library/Extensions/IOH
3
0
2.1k
Nov ’15
CoreData Migration Failure - NSCocoaErrorDomain Code=512
Hey Team,We are seeing some random crashes for CoreData only on iOS 9 devices. We are primarily seeing two errors when Core Data performs lightweight migration when setting up the Stack -We have no clue about what this error could beError Domain=NSCocoaErrorDomain Code=512 The file couldnU2019t be saved.2. The error code translates to SQLite Error code 14. [Error code is Domain=NSCocoaErrorDomain Code=134110, NSSQLiteErrorDomain Code=14 https://developer.apple.com/library/mac/documentation/Cocoa/Reference/CoreDataFramework/Miscellaneous/CoreData_Constants/#//apple_ref/doc/constant_group/Migration_Error_Codes , https://www.sqlite.org/rescode.html#cantopen ]Error Domain=NSCocoaErrorDomain Code=134110 An error occurred during persistent store migration. UserInfo= { sourceURL=file:///var/mobile/Containers/Data/Application/BFD91E93-5977-4135-A454-5EBDF8EE53E4/Libr
1
0
4.8k
Feb ’16
File rename failing NSCocoaErrorDomain Code=513
I'm trying to rename a file (a FileWrapper containing a UIDocument subclass) as follows:coordinationQueue.async { var error: NSError? = nil let fileCoordinator = NSFileCoordinator(filePresenter: self) fileCoordinator.coordinate(readingItemAt: url, options: .withoutChanges, writingItemAt: targetURL, options: .forMoving, error: &error) { fromURL, toURL in do { fileCoordinator.item(at: fromURL, willMoveTo: toURL) try FileManager().moveItem(at: fromURL, to: toURL) fileCoordinator.item(at: fromURL, didMoveTo: toURL) // Success! } catch { // Handle error } } if let error = error { // Handle error } }… but it's failing on the moveItem, with the following error:Error Domain=NSCocoaErrorDomain Code=513 “from_file” couldn’t be moved because you don’t have permission to access “My_folder”. UserInfo={NSSourceFilePathErrorKey=/private/var/mobile/Library/Mobile Documents/com~apple~CloudDocs/My_folder/from_file, NSUserStringVariant=( Move),
0
0
5.4k
Sep ’17
'You don’t have permission. - The AVPlayerItem instance has failed with the error code 257 and domain "NSCocoaErrorDomain".'
[[PHImageManager defaultManager] requestAVAssetForVideo:asset options:videoOptions resultHandler:^(AVAsset *_Nullable avAsset, AVAudioMix *_Nullable audioMix, NSDictionary *_Nullable info) { if ([avAsset isKindOfClass:[AVURLAsset class]]) { AVURLAsset *urlAsset = (AVURLAsset *)avAsset; NSURL *videoURL = urlAsset.URL; mediaInfo[@path] = videoURL.absoluteString; } else { // Failed to get video asset completion(nil); } }];``` Before iOS 18, i could able access AVAsset video using the method mentioned above with the url, but starting from the iOS 18 version, the following error appears 'You don’t have permission. - The AVPlayerItem instance has failed with the error code 257 and domain NSCocoaErrorDomain.'
2
0
745
Oct ’24
Error OSSystemExtensionErrorDomain Code=4 "(null)"
When my macOS app try to deactivate CameraExtension, my app's didFailWithError is called with this error. Error Domain=OSSystemExtensionErrorDomain Code=4 (null) I cannot search for error code=4 with that domain. MyApp calls OSSystemExtensionManager.shared.submitRequest with OSSystemExtensionRequest.deactivationRequest I did implement these tasks. BundleID, MyApp: com.myapp, BundleID, CameraExtension: com.myapp.camera Added entitlement and App Groups for app and extension MyApp has SystemExtension capability on Xcode and provision MyApp is installed on /Applications/MyAppGroup/MyApp.app MyApp is executed by Finder macOS is Sonoma 14.2.1 (23C71) on M1 MacBook
4
0
1.7k
Jan ’24
NSCocoaErrorDomain code = 134093 , only in iOS16
i have received a lot of crash log only in iOS16 the crash occured when i called : [[PHImageManager defaultManager] requestImageDataForAsset:asset options:options resultHandler:resultHandler] here is the crash log Exception Type: NSInternalInconsistencyException ExtraInfo: Code Type: arm64 OS Version: iPhone OS 16.0 (20A5328h) Hardware Model: iPhone14,3 Launch Time: 2022-07-30 18:43:25 Date/Time: 2022-07-30 18:49:17 *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason:Unhandled error (NSCocoaErrorDomain, 134093) occurred during faulting and was thrown: Error Domain=NSCocoaErrorDomain Code=134093 (null) Last Exception Backtrace: 0 CoreFoundation 0x00000001cf985dc4 0x1cf97c000 + 40388 1 libobjc.A.dylib 0x00000001c8ddfa68 0x1c8dc8000 + 96872 2 CoreData 0x00000001d56d2358 0x1d56cc000 + 25432 3 CoreData 0x00000001d56fa19c 0x1d56cc000 + 188828 4 CoreData 0x00000001d5755be4 0x1d56cc000 + 564196 5 CoreData 0x00000001d57
7
0
3.9k
Aug ’22
SwiftUI Preview fail with Core Data: "Error Domain=NSCocoaErrorDomain Code=516"
Hello, Since I added Core Data to my SwiftUI project, preview canva is no more working, showing an error explaining that the update took more than 5 seconds (the app is working correctly in simulator). I opened the preview diagnostic report folder, and found a file named SerializationErrors.txt, with the following message: Error Domain=NSCocoaErrorDomain Code=516 “SizeModel+CoreDataClass.swift” couldn’t be linked to “Intermediates” because an item with the same name already exists. I feel like there is a problem of refreshing the class generated for my Core data model. I tried to follow some recommendations found on this website, deleting the Library/Developer/Xcode/UserData/Previews/Simulator Devices/, or also Library/Developer/Xcode/DerivedData, and cleaning/closing Xcode, but none of them had any effect on the problem. Doing so, I noticed that in the Previews folder, two Simulator Devices were generated (one empty Simulator Devices, and one filled Simulator%20Devices), a
4
0
4.5k
Feb ’21
Error in remote proxy while processing transaction: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.storekitd"
I am working on a billing implementation in UnityIAP. Recently, when I press the billing button on iOS, I get an Unknown error the first time, I checked the logs and found the following error. : Error in remote proxy while processing transaction: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.storekitd UserInfo={NSDebugDescription=connection to service named com.apple.storekitd} Special conditions, When this is occurring, addTransactionObserver is being called after the purchase order. If addTransactionObserver is called for a paymentQueue during the purchase process, would this error be called? Or if there is any problem on the AppleStore side, I would appreciate it if you could let me know. Thank you in advance.
3
0
2.8k
Apr ’23
Crash core data - NSCocoaErrorDomain Code=256
Crash occurs frequently in testflight builds, below log is reported in crashlytics for the crashFatal error: Unresolved error Error Domain=NSCocoaErrorDomain Code=256 The file ####.sqlite” couldn’t be opened. UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/D73975F3-ED76-4C7B-A30A-0C751C8471AA/Library/Application Support/####.sqlite, NSSQLiteErrorDomain=23}, [NSFilePath: /var/mobile/Containers/Data/Application/D73975F3-ED76-4C7B-A30A-0C751C8471AA/Library/Application Support/####.sqlite, NSSQLiteErrorDomain: 23]: file /Users/elanarulaj/Desktop/voxer_client/packages/sdk.swift/VoxerKit/VoxerKit/Classes/####SDK.swift, line 86I do not find any working solution in StackOverFlow
2
0
2k
Feb ’19