Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

'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
755
Oct ’24
Core Data Error - "NSCocoaErrorDomain" - code: 134060
Hi, I am implementing the synchronisation of SwiftData with CloudKit as described in the Apple Documentation titled - Syncing model data across a person’s devices. My app runs fine on iPhone without activating CloudKit under Signing and Capabilities option. But when activated, I get a CoreData error with a code: 134060. My app is in development stage. The following is the code snippet for your reference taken from the main structure adopting the App protocol. init() { do { #if DEBUG let schema = Schema([ Debit.self, Credit.self, ]) let modelConfiguration = ModelConfiguration(schema: schema, isStoredInMemoryOnly: false) // Use an autorelease pool to make sure Swift deallocates the persistent // container before setting up the SwiftData stack. try autoreleasepool { let desc = NSPersistentStoreDescription(url: modelConfiguration.url) let opts = NSPersistentCloudKitContainerOptions(containerIdentifier: iCloud.com.sureshco.MyFirstApp) desc.cloudKitContainerOptions = opts // Load the store synchronously so it compl
0
0
550
Nov ’24
NSCocoaErrorDomain Code=134092 When Updating ContactsError, and Error "Attempt to read notes by an unentitled app" while I am not request for notes
Hi, I'm writing a command line program with Swift Package Manager that uses Contacts API to automatically add phonetic names for the contacts. However, I found I was unable to do so for contacts that has notes. First, when I was trying to enumerate the contacts, there is a strange error output: 2023-01-22 18:58:36.085525+0800 PhoneticNames[18591:98356] [core] Attempted to register account monitor for types client is not authorized to access: {( com.apple.account.CardDAV, com.apple.account.Exchange, com.apple.account.LDAP )} 2023-01-22 18:58:36.085580+0800 PhoneticNames[18591:98356] [accounts] CNAccountCollectionUpdateWatcher 0x6000003ccc40: Store registration failed: Error Domain=com.apple.accounts Code=7 (null) 2023-01-22 18:58:36.085606+0800 PhoneticNames[18591:98356] [accounts] CNAccountCollectionUpdateWatcher 0x6000003ccc40: Update event received, but store registration failed. This event will be handled, but the behavior is undefined. 2023-01-22 18:58:36.136236+0800 PhoneticNames[18591:98344] [api] Attem
2
0
2.1k
Jan ’23
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), and regenerated even if I cl
4
0
4.6k
Feb ’21
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
85
Sep ’25
Changing my entities in CoreData gave me a NSCocoaErrorDomain Code=134140 and I can't go back
Updated info below, in bold. I went and changed one of the entities in the CoreData of my app. For all my entities I have them selected as Manual for Codegen So I deleted all four files (for two entities), cleaned the build folder, regenerated the CoreData files with Editor -> Create NSManagedObject Subclass. Now every time I run the app I get a fatalError in the following code in the AppDelegate: lazy var persistentContainer: NSPersistentContainer = { let container = NSPersistentContainer(name: “Invoice_Gen) container.loadPersistentStores(completionHandler: { (storeDescription, error) in if let error = error as NSError? { fatalError(Unresolved error (error), (error.userInfo)) } }) return container }() The error code being [error] error: addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (134140) Even if I remove the files for the CoreData entities, and comment out anything related to them code wise, I will still get this crash. If someone has any idea of
1
0
1.6k
Jun ’22
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/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugi
3
0
2.1k
Nov ’15
Share Extension not respondent when sharing a file from Camera Roll due to an error NSCocoaErrorDomain Code=4099
Hey,One of our customers have encountered the following problem while attempting to a share a file from the camera roll using our app Share Extension. The outcome behavior of the following log is that the extension is not respondent for only that file that have failed previously to upload to our app due to a time out. It still works fine for other files.In the following log, I can see the out of range exception followed by the NSCocoaErrorDomain Code=4099.Apr 13 15:11:07 audi pkd[153] <Warning>: assigning plug-in <bundle-identifier>(2.1.2) to plugin sandboxApr 13 15:11:07 audi kernel[0] <Notice>: xpcproxy[451] Container: /private/var/mobile/Containers/Data/PluginKitPlugin/669C0F52-1C21-441D-9906-E2EFBD8A7D00 (sandbox)Apr 13 15:11:08 audi kernel[0] <Notice>: LwVM::_generateMappedExtentsList - failed to map unmap range to partitionApr 13 15:11:08 audi backboardd[60] <Warning>: Unable to bootstrap_look_up port with name <bundle-identifier>.gsEvents: unknown error code
Topic: UI Frameworks SubTopic: AppKit Tags:
0
0
1k
Apr ’16
Reply to Vision Framework - Barcode Descriptor
I am getting these errors:1. Cannot connect to remote service: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.BarcodeSupport.BarcodeNotificationService2. libMobileGestalt MobileGestalt.c:555: no access to InverseDeviceID (see problem/11744455>)3. connection to service named com.apple.BarcodeSupport.BarcodeNotificationService Error Domain=NSCocoaErrorDomain Code=4097
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’17
Reply to Crash on libc++abi.dylib
Log: Unhandled error (NSCocoaErrorDomain, 256) occurred during faulting and was thrown: Error Domain=NSCocoaErrorDomain Code=256 無法打開檔案「Objects.sqlite」。 UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/xxxxxxxxxxxx/Library/Caches/com.xxx.xxxxxx.GMSCacheStorage/GMSCacheStorage-Objects/Objects.sqlite, NSSQLiteErrorDomain=14} me too,look like Google Map SDK or Firebase SDK .
Topic: App & System Services SubTopic: Core OS Tags:
Jan ’23
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
Reply to How to read property list (binary format) if the iOS fails to load it via NSPropertyListSerialization
I tested in playground (Xcode 12.4). Works with 128. Fails with 129, with a different error message: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=3840 Unexpected character b at line 1 UserInfo={NSDebugDescription=Unexpected character b at line 1, kCFPropertyListOldStyleParsingError=Error Domain=NSCocoaErrorDomain Code=3840 Conversion of string failed.
Topic: App & System Services SubTopic: General Tags:
Mar ’21
Error Domain=NSCocoaErrorDomain Code=257 "The file couldn’t be opened because you don’t have permission to view it"
Hi! I am facing this strange error in my computer. I first happen to see this on some CXTest while running some snapshot tests and all files that where not created by me couldn't be opened. I tested it on a playground and keeps failing to get de contents of the file using the Data method. I did it just to check if the problem was on the project configurations but the problem remains. My playground is just: import Foundation let fileUrl = URL(fileURLWithPath: MYPATH, isDirectory: false) let data = try Data(contentsOf: fileUrl) The path is correct, the file exists and thorws: Playground execution terminated: An error was thrown and was not caught: Error Domain=NSCocoaErrorDomain Code=257 The file “file.png” couldn’t be opened because you don’t have permission to view it. UserInfo={NSFilePath=MYPATH.png, NSUnderlyingError=0x600000536700 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}}``` I run ls -la over the files that are being opened and those that aren't, but the permissions over al
2
0
2.5k
Jan ’23