Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Use CSSearchQuery in QLPreviewingController?
When implementing a QLPreviewingController on iOS, we only get the Spotlight uniqueIdentifier but not the actual CSSearchableItem.I thought I could use CSSearchQuery with a query like thisuniqueIdentifier == (identifier)to fetch the CSSearchableItem of the selected item from Spotlight. However, I always receive an error:<CSSearchQuery:0x2826e51e0 qid=1 flag=0x0000>error:Error Domain=NSCocoaErrorDomain Code=4099 Couldn’t communicate with a helper application.>Is it not possible to call Spotlight from a QuickLook Preview extension? Is there another way to retrieve the CSSearchableItem for the item to be previewed?
0
0
1.6k
Nov ’18
OSX Subscriptions not working in Sandbox
I am working on the integration of subscriptions in my OSX application. The subscription flow works perfectly but after the purchase it is not creating _MASReceipt folder in Contents folder of application so I cannot send the receipt to apple to verify this purchase. when I checked the logs it showing below error. Anyone who is familiar to this issue please help. Error writing receipt (13401 bytes) using privileged service to /private/var/folders/xw/yd038cts3b94qmtvlxzb1sy80000gp/T/AppTranslocation/9B8BB321-1C16-4F41-93EA-E27675791E79/d/test.app Error Domain=NSCocoaErrorDomain Code=642 You can’t save the file “_MASReceipt” because the volume “9B8BB321-1C16-4F41-93EA-E27675791E79” is read only. UserInfo={NSFileOriginalItemLocationKey=file:///private/var/folders/xw/yd038cts3b94qmtvlxzb1sy80000gp/T/AppTranslocation/9B8BB321-1C16-4F41-93EA-E27675791E79/d/Advanced%20Uninstall%20Manager.app/Contents/_MASReceipt, NSURL=file:///private/var/folders/xw/yd038cts3b94qmtvlxzb1sy80000gp/T/AppTranslocation/9B8BB321
0
0
392
Oct ’24
Can Safari app extension communicate with XPC service
Is it possible to open a communication channel from Safari app extension to XPC service on MAC?I created Xcode project with Safari app extension and XPC service targetsI am setting up a connection to the XPC service from extension's message handler messageReceivedWithName using NSXPCConnection and got the below error.Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named mySafariAppExtn1.XPCService was invalidated.In the extension entitlements, added below keyscom.apple.security.network.clientcom.apple.security.network.servercom.apple.security.temporary-exception.mach-lookup.global-nameIs there any other IPC mechanism by which I can do the sameThanks
3
0
2.8k
Nov ’18
Can't share Video to Facebook
I have the Facebook SDK version 17.0.2 and xcode 15. Sharing photos and links work fine but when I try sharing videos, I get the following error: Failed to log access with error: access= accessor:<> identifier:A9159DCD-76B1-4C77-A01E-DA611929B50B kind:intervalEvent timestampAdjustment:0 visibilityState:0 assetIdentifierCount:0 accessCount:0 tccService:kTCCServicePhotos, error=Error Domain=NSCocoaErrorDomain Code=4097 connection to service with pid 15679 named com.apple.privacyaccountingd UserInfo={NSDebugDescription=connection to service with pid 15679 named com.apple.privacyaccountingd}
1
0
532
Aug ’24
Unable to find problem. Error Domain=com.apple.accounts Code=7 "(null)"
Even with sample code from Apple, the same warning forever. Error returned from daemon: Error Domain=com.apple.accounts Code=7 (null) Failed to log access with error: access= accessor:<> identifier:2EE1A54C-344A-40AB-9328-3F8E8B5E8A85 kind:intervalEvent timestampAdjustment:0 visibilityState:0 assetIdentifierCount:0 tccService:kTCCServicePhotos, error=Error Domain=NSCocoaErrorDomain Code=4097 connection to service with pid 235 named com.apple.privacyaccountingd UserInfo={NSDebugDescription=connection to service with pid 235 named com.apple.privacyaccountingd} Entitlements are reviewed.
2
0
1.1k
Dec ’23
Error creating FileProvider domain on external drive
Hi, I am trying to use the new FileProvider feature available on macOS 15 to create a FileProvder domain on an external drive. I am creating the domain with the initializer init(displayName:, userInfo:, volumeURL:) But when I try to add the domain with NSFileProviderManager.add() I get error NSCocoaErrorDomain, code 3328 - feature not supported. My external drive is APFS formatted and encrypted. I am checking its eligibility with NSFileProviderManager.checkDomainsCanBeStoredOnVolume(at:) and the result is eligible. What should be done to solve this problem - is there a specific entitlement I have to add? I checked the possible entitlements and I don't see anything pointing in this direction. I will be very grateful for any help!
0
0
341
Jan ’25
SwiftData fails to migrate on new model property
Greetings my fellow engineers, I use SwiftData in my iOS app. The schema is unversioned and consists of a single model. I've been modifying the model for almost two years now and relying on automatic database migrations. I had no problems for all that time, but now trying to add a property to the model or even remove a property from the model results in an error which seems like SwiftData is no longer capable of performing an automatic migration. The log console has things like the following: CoreData: error: NSUnderlyingError : Error Domain=NSCocoaErrorDomain Code=134190 (null) UserInfo={reason=Each property must have a unique renaming identifier} CoreData: error: reason : Can't find or automatically infer mapping model for migration CoreData: error: storeType: SQLite CoreData: error: configuration: default CoreData: annotation: options: CoreData: annotation: NSMigratePersistentStoresAutomaticallyOption : 1 CoreData: annotation: NSInferMappingModelAutomaticallyOption : 1 CoreData: annotation: NSPers
0
0
96
Dec ’25
NSFileManager contentsOfDirectoryAtPath:error: returns NSFileReadUnknownError with underlying POSIX EINTR
Our backup app (Arq) is encountering random errors for some users on macOS Sequoia. The method [NSFileManager contentsOfDirectoryAtPath:error:] returns nil with an NSError domain NSCocoaErrorDomain, code 256 (NSFileReadUnknownError). The NSError's NSUnderlyingError key is an NSError with domain NSPOSIXErrorDomain and code 4 (EINTR). Sometimes waiting and retrying works fine; sometimes 5 retries still fail. For some users it happens on different directories each time they try to back up. What is causing this? Are we supposed to use a different API to get directory contents these days?
1
0
553
Oct ’24
Reply to UIFontPickerViewController screen font is broken or black screen issue
When this error message appears, the app also dies. 3 = Error acquiring assertion: (501) personaAttributesForPersonaType for type:0 failed with error Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.mobile.usermanagerd.xpc was invalidated: failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDescription=The connection to service named com.apple.mobile.usermanagerd.xpc was invalidated: failed at lookup with error 159 - Sandbox restriction.} Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 Client not entitled UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, RBSPermanent=false} elapsedCPUTimeForFrontBoard couldn't generate a task port Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 Client not entitled UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedF
Topic: UI Frameworks SubTopic: UIKit Tags:
Mar ’24
Reply to I want to access twitter filter search v2 endpoint in ios app
Ok, I tried this: static func callFilterSearch() { let Url = String(format: https://api.twitter.com/2/tweets/search/stream?place.fields=contained_within&user.fields=location&tweet.fields=geo) guard let serviceUrl = URL(string: Url) else { return } let parameterDictionary = [:] var request = URLRequest(url: serviceUrl) request.httpMethod = POST request.setValue(Bearer token, forHTTPHeaderField: Authorization) request.setValue(Application/json, forHTTPHeaderField: Content-Type) guard let httpBody = try? JSONSerialization.data(withJSONObject: parameterDictionary, options: []) else { return } request.httpBody = httpBody let session = URLSession.shared session.dataTask(with: request) { (data, response, error) in if let response = response { print(response) } if let data = data { do { let json = try JSONSerialization.jsonObject(with: data, options: []) print(json) } catch { print(error) } } }.resume() } But got this error: Error Domain=NSCocoaErrorDomain Code=3840 JSON text did not start with ar
Topic: App & System Services SubTopic: General Tags:
Sep ’21
Localizable.xcstrings FAILS on iOS 17 beta 7
I’ve been working with Localizable, and I’m loving it. Unfortunately, upon upgrading to beta 7 this morning, it no longer works on my dev iPhone: Unable to load .strings file: CFBundle 0x281350380 (executable, loaded) / Localizable: 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. UserInfo={NSDebugDescription=Conversion of string failed.}} I’ve investigated this ‘unexpected character b’ - and cannot figure out what this message is talking about. What I see on the screen is the key, instead of the localized string. Using Xcode 15.0 beta 7 (15A5229h) and iOS 17.0 beta 7 (21A5319a) What makes this completely befuddling is that the Localizable DOES still work on my M1 iPad (also running today’s iPadOS 17 beta 7 - as well as on my older 2015 iPad running iOS 16 - and even on my iPhone 7 running iOS 15.
1
0
1.6k
Aug ’23
HKWorkoutRouteBuilder does not work
HiI get an error when doing insertRouteData of HKWorkoutRouteBuilder 😢.Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.healthd.server UserInfo={NSDebugDescription=connection to service named com.apple.healthd.server}I would have allowed write permission of Workout Route.And I tried with the following code.let builder = HKWorkoutRouteBuilder(healthStore:healthStore, device: nil) let routeData:[CLLocation] = ... builder.insertRouteData(routeData) { (success, error) in if let e = error { print(e) } }iOS: iOS 11 beta 3WatchOS: watchOS 4 beta 3What should I do to solve this error?Thank you.
5
0
1.6k
Jul ’17
Reply to iPadOS 18 Beta and SwiftData issues
I have the exact same issue and just filed a report FB15146262. iOS 18 doesn't set the one-to-many relationship from the 'one' side, i.e. setting student.school = school will actually keep the relationship at nil and can't be saved into context. This is visible in the debugger error message: SwiftData.DefaultStore save failed with error: Error Domain=NSCocoaErrorDomain Code=1570 %{PROPERTY}@ is a required value. UserInfo={NSValidationErrorObject= (entity: Student; id: 0x600000223380 x-coredata://3B392729-2729-4812-B567-647032714A50/Student/t6F58A598-9DC2-4927-A418-8D37D760FC072; data: { name = jack; school = nil; }), NSLocalizedDescription=%{PROPERTY}@ is a required value., NSValidationErrorKey=school, NSValidationErrorValue=null} The workaround by @Rainbowql with additionally calling append fixes this issue on iOS 18 but causes the app to crash on iOS 17, because the relationship is already set normally before calling append. On iOS 17, you will get: SwiftData/PersistentModel.swift:540: Fatal error:
Sep ’24
Derivation attribute with filter/predicate/subquery?
Is it possible to create a derived attribute with a subquery?Given two entities Feed and Item, where a Feed has many items, and an Item has an isRead attribute. I'd like to be able to specify a Derivation attribute on Feed with the following expression:SUBQUERY(items, $item, $item.isRead != 1).@counti.e. the number of unread items.When I use this expression and run this I get an error:Unable to generate optimized model (sql model generation failed Error Domain=NSCocoaErrorDomain Code=134097 (null) UserInfo={NSUnderlyingException=Invalid keypaths found in derived attribute (unsupported function)})
0
0
546
Jun ’19
Mergeable Library in XCTest with iOS on Mac Target: 3588 Error
I have an XCTest unit test that's running in an iOS host but with the My Mac (Designed For iPad) Target. Enabling mergeable libraries causes two errors: Symbol not found: _$s10Foundation3URLV9RVAPIPackE8isGCSURLSbvg And loading failed because of an error Error Domain=NSCocoaErrorDomain Code=3588 for the Test bundle because one of the frameworks that's supposed to be merged couldn't be loaded. Disabling mergeable libraries fixes it. It also works with mergeable libraries enabled but with a regular simulator target. So not sure if I'm missing something or if I need to disable mergeable libraries now:/
2
0
363
Dec ’24