Search results for

NSCocoaErrorDomain Error Code 4

170,032 results found

Post

Replies

Boosts

Views

Activity

Reply to SharePlay Developer Profile not working?
I'm trying with iOS beta 7 and the updated SharePlay Developer Profile and I'm getting the following error: Error preparing group activity: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.group-activities.conversationmanagerhost was invalidated: failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDescription=The connection to service named com.apple.group-activities.conversationmanagerhost was invalidated: failed at lookup with error 159 - Sandbox restriction.} The call to prepareForActivation() is returning .cancelled without any prompt on the device.
Topic: App & System Services SubTopic: General Tags:
Aug ’21
safari-web-extension-converter Error Code=642 & Code=30
Error instantiating template in Xcode: Error Domain=NSCocoaErrorDomain Code=642 You can’t save the file “macOS (Extension)” because the volume is read only. UserInfo={NSFilePath=/YOU CAN READ IT Dyslexia won't stop you!/macOS (Extension), NSUnderlyingError=0x6000009a4270 {Error Domain=NSPOSIXErrorDomain Code=30 Read-only file system}}. Could not create project.
0
0
568
May ’22
Reply to iOS 18.4 and getFileProviderServicesForItem
Tested on iOS 18.5, Beta 1 (22EF5042g), same issue is still present. 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.
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’25
Error in my code
Hi everyone! I was working on a playground in Swift Playground and I got an error. I can't understand what this error means, can anyone help me? This is my code: struct Preview: View { @State var isPlaying = true @State var num1 = 60 @State var num2 = 150 var body: some View { if isPlaying == true { // ERROR: Only concrete types such as structs, enums and classes can conform to protocols // Required by static method 'buildBlock' where 'C0' = () num1 += 1 print((num1)) } } } Thanks.
1
0
675
Apr ’22
What is kCFStreamErrorCodeKey=-4 (kCFStreamErrorDomainKey=4)
Hi, Got the following error when connecting to a server (which I'm not in control of): Error Domain=NSURLErrorDomain Code=-1005 The network connection was lost. UserInfo={_kCFStreamErrorCodeKey=-4, NSUnderlyingError=0x6000034bd530 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 (null) UserInfo={NSErrorPeerAddressKey=<CFData 0x6000018f02d0 [0x7fff8a349bf0]>{length = 16, capacity = 16, bytes = 0x100201bb8b7011830000000000000000}, _kCFStreamErrorCodeKey=-4, _kCFStreamErrorDomainKey=4} Looks like NSURLErrorDomain Code=-1005 is: https://developer.apple.com/documentation/cfnetwork/cfnetworkerrors/cfurlerrornetworkconnectionlost But couldn't find what kCFStreamErrorCodeKey=-4 means. Is this error code defined anywhere (for example in a header file)? Or is it only an internal error code? Br, Johan
1
0
4.6k
Oct ’21
Reply to iOS folder bookmarks
[quote='856443022, DTS Engineer, /thread/797469?answerId=856443022#856443022'] You're testing on iOS, not macOS [/quote] In fact, that was on macOS... Your app never created a security-scoped bookmark Well, the bench UI is flexible, it's a matter of selecting that checkbox in the bench UI.. However, now that I tried it (on Mac) - the create bookmark fails with error.. NSCocoaErrorDomain Code=256 Could not open() the item, specifically this very first step (after the picker): Create with NSURL.BookmarkCreationOptions.withSecurityScope. However, security scoped creation fails at #3. Yep, for me it's failing on 4. tap Create bookmark - if I select withSecurityScope (Mac only) in the UI.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’25
Reply to Selecting which data models sync with iCloud SwiftData
CoreData: error: addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (134100) CoreData: error: userInfo: CoreData: error: metadata : { NSPersistenceFrameworkVersion = 1337; NSStoreModelVersionChecksumKey = /mv+MJ232k6TtgLWF/6u6Xvt1IOs/ezBTew3e5ULc+E=; NSStoreModelVersionHashes = { CloudSyncModelA = {length = 32, bytes = 0x3987992e 6ee680c6 e8bb9511 266ac8b2 ... 97ac3feb daf3a616 }; CloudSyncModelB = {length = 32, bytes = 0xd2664c00 d176a085 d0cb6b7f 7fdd3661 ... 60f1b0b2 a9d0444e }; CloudSyncModelC = {length = 32, bytes = 0xca91943c 6571aedb 07473eaa 154207d1 ... 66bb77c1 6283438e }; }; NSStoreModelVersionHashesDigest = DJ2WYYwgxZ0ODDxWSCU/qENUGNTyxR4QfG8zLErpzQrvMoo9u19pSVjC7jzbUm0QLzGhFtKR3E0LRQvO9u6WXQ==; NSStoreModelVersionHashesVersion = 3; NSStoreModelVersionIdentifiers = ( 1.0.0 ); NSStoreType = SQLite; NSStoreUUID = FC5CF467-5684-4C95-8C0E-49698D0A8648; _NSAutoVacuumLevel = 2; } CoreData: error: reason : Th
Nov ’23
Reply to What is required to register for CoreWLAN events?
Error Domain=NSCocoaErrorDomain Code=4099Hmmm, that looks exactly like the error that I was under the impression we’d fixed in 10.13.4 (r. 36702504). At this point I’m going to have to revisit this issue in depth and that’s not something I can do in the context of DevForums.Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Apr ’18
Error code -16042
We have a video playback application and are logging errors as follows: func errorMessage(_ error: NSError) -> String { ttvar code = (error.code) ttif let underlyingError = error.userInfo[NSUnderlyingErrorKey] as? NSError { tt code += :(underlyingError.code) tt} ttreturn (code) - (error.localizedDescription) } The error is reported when the NotificationCenter reports .AVPlayerItemFailedToPlayToEndTime for the AVPlayerItem being used. We have come across the following errors being reported: 11800:-16042 - The operation could not be completed Unfortunately, I cannot find any information on what error code -16042 means; furthermore, it is generally difficult to find any information on AVFoundation error codes. Would anyone have advice on how best to find information on these (as well as help on understanding -16042)?
0
0
785
Sep ’20
Reply to What is required to register for CoreWLAN events?
Sorry I was printing the localizedDescription of the error which isn't helpful at all. 😟So, this is what I Catch:(lldb) po errorError Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.airportd was invalidated. UserInfo={NSDebugDescription=The connection to service named com.apple.airportd was invalidated.}(lldb) po error.localizedDescriptionCouldn’t communicate with a helper application.
Apr ’18