Lately i've been getting a strange error that is attached to the currentIem property of my AVPlayer object.When changing from one playerItem to the next i load up the AVURLAsset asynchronously and setup the playerItem once it has loaded the asset. The AVPlayer's currentItem is replaced with the new one and occassionally I will get a AVPlayerStatusFailed on the playerItem. The Error has a domain of NSCocoaErrorDomain and a code 257 stating The file couldn't be opened because you don't have permission to view it.. I can then try the process again for the same file and it will work. Anyone else get that kind of error on the AVPlayerItem? Seems bizarre considering it works if you try it again. Files are stored in the app. The app shouldn't have a problem accessing files. Any tips welcome, thanks.
Search results for
NSCocoaErrorDomain
1,063 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I support a pair of iOS apps that use a file provider extension. One app exposes a file provider extension, including a file provider extension service and the other app interacts with the file provider extension and uses the service. On iOS 18.3 and before, this all works fine. On iOS 18.4, getFileProviderServicesForItem fails when called from the consuming app with: Error Domain=NSCocoaErrorDomain Code=513 The file couldn’t be saved because you don’t have permission. The supportedServiceSources method in the service hosted by the provider app is never invoked when this occurs. Is there some change to the mechanism for iOS 18.4 that I've not found yet?
I encounter a connection error with Apple Configurator v2.18 when, after making changes in macOS Sequel 15.6.1, I want to apply and transfer the changes to the iPhone icon layout in iOS 26: Apple Configurator v2.18 crashes and returns an error message: ‘Try the operation again. If it fails, quit the application, launch it again, and try again. [NSCocoaErrorDomain – 0x1001 (4097)]’ I have done some research, and it seems that this bug has been identified and fixed in Apple Configurator 2 v2.19 (Build 10434). Have you encountered this problem? Do you know where to find version v2.19? This fixed version does not appear to have been released yet, and Apple support has been unable to help me. Thank you all for your help.
Topic:
Business & Education
SubTopic:
Device Management
anyone getting the following error with CloudKit+CoreData on iOS16 RC? delete/resintall app, delete user CloudKit data and reset of environment don't fix. [error] error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _requestAbortedNotInitialized:](2044): - Never successfully initialized and cannot execute request ' 41E6B8D6-08C7-4C73-A718-71291DFA67E4' due to error: Error Domain=NSCocoaErrorDomain Code=4864 *** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: incomprehensible archive (0x53, 0x6f, 0x6d, 0x65, 0x20, 0x65, 0x78, 0x61) UserInfo={NSDebugDescription=*** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: incomprehensible archive (0x53, 0x6f, 0x6d, 0x65, 0x20, 0x65, 0x78, 0x61)}
Hello! I am trying to remove a photo from my Photos Library using PhotosUI. I run into this error when I attempt to delete it: Error returned from daemon: Error Domain=com.apple.accounts Code=7 (null) No photos access scope requirements declared for changes Failed to log access with error: access= accessor:<> identifier:82068C12-FD10-4DE2-9867-B4406FBFB706 kind:intervalEvent timestampAdjustment:0 visibilityState:0 assetIdentifierCount:0 accessCount:0 tccService:kTCCServicePhotos, error=Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.privacyaccountingd UserInfo={NSDebugDescription=connection to service named com.apple.privacyaccountingd}
I'm having problems with the [gameName].entitlements for push notifications on iOS 10In iOS 10 you have to press a 'fix me' button in the Push Notifications area under Capabilities. This creates a [gameName].entitlements file which contains the line:aps-environment = development.This file is in my .ipa bundle and should fix a problem with registering for push notifications in iOS10.However, when my app runs I still get this error:fail to register with error Error Domain=NSCocoaErrorDomain Code=3000 no valid 'aps-environment' entitlement string found for application UserInfo={NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}Any ideas?Cheers,Steve
*can we notarize the .dylib file ? xcrun stapler staple -v libabc.dylib _when I stapling the ticket, I am getting following error _ Downloaded ticket has been stored at file:///var/folders/fl/b7prmh551y33l4wlsvt6fdtdtdcyv2/T/29514381-948a-4aef-af40-7e96663007d2.ticket. Could not remove existing ticket from libabc.dylib/Contents/CodeResources -- file://user/hbhartiabc/ because an error occurred. Error Domain=NSCocoaErrorDomain Code=512 “CodeResources” couldn’t be removed. UserInfo={NSUserStringVariant=( Remove ), NSFilePath=/Users/hbharti/workspace/dlpsdk/libabc.dylib/Contents/CodeResources, NSUnderlyingError=0x7f89ccc182f0 {Error Domain=NSPOSIXErrorDomain Code=20 Not a directory}}
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.
Hello, I would like to ask if I can use ThreadNetwork.framework. My project has been configured with com.apple.developer. networking. manage thread network credentials according to the documentation, but the relevant API still cannot be used. Currently, there is an error message: Client: - [THClient getConnectionEntitlementValidity] block invoice - Error: (null) Client: [THClient retrieveAllCredits:] _block_invoke - Error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service with pid 555 named com. apple. ThreadNetwork. xpc was validated from this process. UserInfo={NSDebugDescription=The connection to service with pid 555 named com. apple. ThreadNetwork. xpc was validated from this process.} May I ask if I can use the relevant API
Hello. See the code below. struct ContentView: View { var body: some View { TabView { VehicleTab() .tabItem({ Label(Vehicles, systemImage: car.fill)}) .modelContainer(for: Vehicle.self) TransactionsTab() .tabItem { Label(Transactions, systemImage: dollarsign) } .modelContainer(for: Transaction.self) } } } Using the .modelContainer() in this way seems to be causing some issue. I was under the assumption that this would just create a container for each view. I get the error below in this configuration. If I comment out either one of the .modelContainer() modifiers, it works fine. Query encountered an error: Error Domain=NSCocoaErrorDomain Code=256 The file “default.store” couldn’t be opened. Are you not able to do what I'm doing? Is there a way to have two separate containers?
I'm getting 2 errors when I try add cloudkit.. The first because a direct relationship does not exist and the second is a container issue ... error: Store failed to load. (type: SQLite, url: file:///var/mobile/Containers/Data/Application/D931D996-869F-4CED-842E-D1373B0DE090/Library/Application%20Support/default.store) with error = Error Domain=NSCocoaErrorDomain Code=134060 A Core Data error occurred. UserInfo={NSLocalizedFailureReason=CloudKit integration requires that all relationships have an inverse, the following do not: GroupData: task GroupSortOrder: group TaskData: groupSortOrders} with userInfo { NSLocalizedFailureReason = CloudKit integration requires that all relationships have an inverse, the following do not:nGroupData: tasknGroupSortOrder: groupnTaskData: groupSortOrders; } SwiftData/PersistentModel.swift:327: Fatal error: Unable to find a container with entity GroupSortOrder My classes are as follows: import SwiftData @Model class TaskData: Identifiable, Equatable { var id = UUID() va
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags:
I have since tried to instantiate and decode my data manually with various permutations of NSKeyedUnarchiver methods, but I keep running into issues. Here's one of the ways I rewrote the call to +[NSKeyedUnarchiver unarchiveObjectWithData:]:NSKeyedUnarchiver *unarchiver = [[NSKeyedUnarchiver alloc] initForReadingWithData:data]; [unarchiver setRequiresSecureCoding:NO]; cookies = [[Cookies alloc] initWithCoder:unarchiver];Here's the initWithCoder: method from my Cookies class:- (id)initWithCoder:(NSCoder *)coder { if (self = [super init]) { _version = [coder decodeObjectForKey:keychainVersion]; _cAccount = [coder decodeObjectForKey:currentAccount]; _pAccount = [coder decodeObjectForKey:primaryAccount]; _dict = [coder decodeObjectForKey:dictionary]; _shouldHaveFirstRunToken = [coder decodeBoolForKey:shouldHaveFirstRunToken]; } return self; }I traced this method call with my debugger, and I found that my call to initWithCoder returns an empty Cookies object. That is, all the calls to -[NSKeyedUnarchiver decodeObj
Topic:
Programming Languages
SubTopic:
General
Tags:
We have an Enterprise App that has been running fine in iOS 9 and I have been testing in iOS 10 beta 3 and have no updated to beta 4. However we have an issue in that when we call save context after creating a new object it crashes and I can't seem to work out why.The error message is as follows:Unresolved error Error Domain=NSCocoaErrorDomain Code=132001 (null) UserInfo={message=attempt to recursively call -save: on the context aborted,Somehting has obviously changed and the way that we are dealing with an accessing the NSManagedObjectContext, has anyone else experienced this when upgrading from iOS 9 to iOS 10? The applicaiton is still build with objective c as we haven't had the resources to make the jump to swift.
I'm using a voip push.My app has some code to read the Plist during the action when it receives a voip push.There was no problem in iOS11 and below, but iOS12 does not load the file due to the following error.Error Domain=NSCocoaErrorDomain Code=257 The file “myPlist.plist” couldn’t be opened because you don’t have permission to view it. UserInfo={NSFilePath=/.../Library/myPlist.plist, NSUnderlyingError=0x2824c5e90 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}}How do I resolve this?In addition, when I received a push on iOS12, App life cycle seems to have changed.[AppDelegate applicationWillEnterForeground:] function is executed and then the push function is executed.It was a behavior that did not exist in iOS11.Is this the intended behavior on iOS12?
I tried to archive a NSDictionary with a NSColor : data = [NSKeyedArchiver archivedDataWithRootObject: <vrRoot> requiringSecureCoding:YES error:&error]; and I get this error : Printing description of error: Error Domain=NSCocoaErrorDomain Code=4864 value for key 'NS.objects' was of unexpected class 'NSColor' (0x7ff8465d0d88) [/System/Library/Frameworks/AppKit.framework]. Allowed classes are: {( 'NSMutableDictionary' (0x7ff8465f9b48) [/System/Library/Frameworks/CoreFoundation.framework] )} UserInfo={NSDebugDescription=value for key 'NS.objects' was of unexpected class 'NSColor' (0x7ff8465d0d88) [/System/Library/Frameworks/AppKit.framework]. Allowed classes are: {( 'NSMutableDictionary' (0x7ff8465f9b48) [/System/Library/Frameworks/CoreFoundation.framework] )}} Then I transferred NSColor to NSArray - but the error was the same. I want data save in Core Data, please help me ♡.