Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Reply to Local Storekit testing error
Error handling payment sheet request: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service created from an endpoint was invalidated from this process. UserInfo={NSDebugDescription=The connection to service created from an endpoint was invalidated from this process.} Purchase did not return a transaction: Error Domain=ASDErrorDomain Code=5115 Received failure in response from Xcode UserInfo={NSDebugDescription=Received failure in response from Xcode, NSUnderlyingError=0x60000024d470 {Error Domain=NSCocoaErrorDomain Code=4099 The connection to service created from an endpoint was invalidated from this process. UserInfo={AMSDescription=An unknown error occurred. Please try again., AMSURL=http://localhost:50117/WebObjects/MZBuy.woa/wa/inAppBuy, NSDebugDescription=The connection to service created from an endpoint was invalidated from this process., AMSStatusCode=200, AMSServerPayload={ app-list = ( ); dialog = { cancelButtonString = Cancel; defaultButton = Buy; explanation = Do yo
Mar ’25
Reply to Error thrown when querying for Subscription Products
Hi there, I have been working on StoreKit 2 for my app. I'm still facing the issue with simulators even after updating to the released version of Xcode 13 and its simulators. It's been working correctly on a device. Below is the query code: let productIdentifiers: Set = [monthly_subscription, yearly_subscription, family_monthly_subscription, family_yearly_subscription] Task(priority: nil){ do { let _subscribableProducts = try await Product.products(for: productIdentifiers) /**/ self.subscribableProducts = _subscribableProducts /**/ for subscriptionProduct in self.subscribableProducts { let model_Subscribe = Model_SubscribeType(subscribeType: subscriptionProduct.id, subscribeKey: subscriptionProduct.id, subscribeDuration: , subscribe_CostCurrency: String(subscriptionProduct.displayPrice.prefix(1)), subscribe_Cost: (subscriptionProduct.price), subscribe_DisplayPrice: subscriptionProduct.displayPrice, subscribe_isSubscribed: false, subscribe_FamilySharing: subscriptionProduct.isFamilyShareable, subscribe_SKProdu
Topic: App & System Services SubTopic: StoreKit Tags:
Sep ’21
Reply to fileManager.copyItem with overwrite?
The error I am getting is: Large file found, copy failed - Error Domain=NSCocoaErrorDomain Code=516 “.DS_Store” couldn’t be copied to “Audio” because an item with the same name already exists. UserInfo={NSSourceFilePathErrorKey=/Volumes/RMP_Nearline/To_Archive/TAA/2019/190002_TA_Carnegie_Storytelling/Audio/.DS_Store, NSUserStringVariant=( Copy ), NSDestinationFilePath=/Volumes/RMP_Nearline/To_Archive/TAA/2019/To_Box/190002_TA_Carnegie_Storytelling/Audio/.DS_Store, NSFilePath=/Volumes/RMP_Nearline/To_Archive/TAA/2019/190002_TA_Carnegie_Storytelling/Audio/.DS_Store, NSUnderlyingError=0x60000195ce10 {Error Domain=NSPOSIXErrorDomain Code=17 File exists}} But the output location is empty when I start the copy. The paths are very similar, but notice the To_Box in the destination path. I should also note these are large video project directories. This one is 5.3TB. I don't see the problem on small test directories. I made a small project https://github.com/ehemmete/CopyFolder that shows the same problem on
Topic: App & System Services SubTopic: General Tags:
Oct ’23
Reply to Notification triggered from iPhone to Watch
Yeah I do exactly that, but I see this happening in my iOS Device backlog when the watch tries to send a message to the iOS device to schedule that notification. The problem doesn't appear to be the fact that notifications don't appear, but more that my watch can't seem to connect to the iOS device without getting rejected:Aug 21 11:25:16 glendcs-iPhone apsd[100] <Notice>: (Note ) WatchKit: SPDeviceConnection, createXPCConnection, invalidationHandler Aug 21 11:25:16 glendcs-iPhone apsd[100] <Notice>: (Error) WatchKit: -[SPDeviceConnection activeComplicationsWithCompletion:] - error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.companionappd was invalidated from this process. UserInfo={NSDebugDescription=The connection to service named com.apple.companionappd was invalidated from this process.} Aug 21 11:25:16 glendcs-iPhone companionappd[113] <Notice>: (Error) WatchKit: <SPCompanionAppServer.m -[SPCompanionAppServer listener:shouldAcceptNewC
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’15
Reply to El capitan won't boot
Hello,I have a similar problem. After installing El Capitan, I can't reboot my iMac.In Safe modus, I've choosen for reinstalling the OS.Then it automatically starts up, but after a reboot, I have the same problem.I've been looking on this forum and saw a lot of similar problems.I did:cd /Volumes/Macintosh HD ; ls -1 Library/Extensions/ ; ls -1 Library/Application Support/VirtualBox/ ; find System/Library/Extensions -ctime +2w -depth 2 ; tail -70 var/log/system.log ; find Library/Logs/DiagnosticReports -name *.panic -ctime -1wThe result:ACS6x.kextATTOCelerityFC8.kextATTOExpressSASHBA2.kextATTOExpressSASRAID2.kextAVFrameBuffer.kextAVVideoCard.kextArcMSR.kextCalDigitHDProDrv.kextHighPointIOP.kextHighPointRR.kextPromiseSTEX.kextSoftRAID.kextUnsupportedls: Library/Application Support/VirtualBox/: No such file or directorySystem/Library/Extensions/BJUSBLoad.kext/ContentsSystem/Library/Extensions/EltimaAsync.kext/ContentsSystem/Library/Extensions/EPSONUSBPrintClass.kext/ContentsSystem/Library/Extensions/hp_designjet
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’15
Reply to File icon does not show for sandboxed app
Thanks,So I used : write(to:options:) instead let fileName = docURL!.lastPathComponent // data.write does not work with extension do { try data.write(to: fileUrl, options: [.atomic]) } catch { Swift.print(error) }I get the following error thrown : You are not authorized to save file Theleme22.xxx in Desktop directoryError Domain=NSCocoaErrorDomain Code=513 Vous n’êtes pas autorisé à enregistrer le fichier « Theleme22.xxxx » dans le dossier « Desktop ». UserInfo={NSFilePath=/Users/me/Library/Containers/com.company.AppName/Data/Desktop/Theleme22.xxxx, NSUnderlyingError=0x600000056920No error if I replace line 01 with let fileName = docURL!.deletingPathExtension().lastPathComponent // data.write works if extension deletedNote: surprisingly, auto completion indicates that write(to:options:) is deprecated, but it is not. If I option click on the func name, it calls the func information with the following Availability information :iOS (2.0 and later), macOS (10.4 and later), tvOS (9.0 and later), watchOS (
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’17
Reply to Read the files in that folder
I tried this code in my func restorebookmark, but still see nothing.print(Restoring (bookmark.key)) restoredUrl = try URL.init(resolvingBookmarkData: bookmark.value, options: NSURL.BookmarkResolutionOptions.withSecurityScope, relativeTo: nil, bookmarkDataIsStale: &isStale) do { let resourceKeys : [URLResourceKey] = [.creationDateKey, .isDirectoryKey] let enumerator = FileManager.default.enumerator(at: restoredUrl!, includingPropertiesForKeys: resourceKeys, options: [.skipsHiddenFiles], errorHandler: { (url, error) -> Bool in print(Print: directoryEnumerator error at (url): , error) return true })! for case let fileURL as URL in enumerator { let resourceValues = try fileURL.resourceValues(forKeys: Set(resourceKeys)) print(fileURL.path, resourceValues.creationDate!, resourceValues.isDirectory!) } } catch { print(error) }In the debug log I get this message:Restoring file:///Users/stefan/Documents/Print: directoryEnumerator error at file:///Users/stefan/Documents: Error Domain=NSCocoaErrorDomain C
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’17
Reply to Swift 4 Rest API oauth v1.0 and base signature
Thank you for your reply! My apologies on the formatting. I will correct that moving forward.import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() / let url = URL(string: https:/ let task = URLSession.shared.dataTask(with: url) { (data, response, error) in if let error = error { print(error) return } guard let urlContent = data else { print(`data` is nil) return } do { let jsonResult = try JSONSerialization.jsonObject(with: urlContent) print(jsonResult) } catch { print(error) } } task.resume() } }I ran this code and it produce the following message in the console:Error Domain=NSCocoaErrorDomain Code=3840 JSON text did not start with array or object and option to allow fragments not set. UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}Yesterday, I spent about 9 hours (saddens me to even call it out in a number), trying to run different syntax to connect to the server. The closest I got wa
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’17
Reply to Xcode 15's "Replace Container" feature replaces the container with incorrect permissions?
I'm also having problem with Replace Container on real device. Even when I tried to create new iOS application to test it, when I replace the container, the application crashes. Easy way to replicate problem: Step 1: In Xcode, using project template, create new iOS application with CoreData support. Step 2: Build application and run it on real device with iOS 17. Step 3: Download Container for this application using Xcode. {menu - Window - Devices and Simulator). Step 4: Replace Container (the same container previously downloaded) using Xcode {menu - Window - Devices and Simulator). Step 5: Run application again on real device = crash/error. Errors: error: Failed to create directory: NSCocoaErrorDomain (513) CoreData: Unhandled exception finding default Directory URL '+[NSPersistentContainer defaultDirectoryURL] Could not conjure up a useful location for writing persistent stores.' My system configuration for development: Xcode 15.0.1 (also tested with Xcode 15.1 beta 3 with same error) iOS 17.1.2, i
Dec ’23
Reply to tccd process stuck with file system filter
Hello,While checking kernel details , I have seen following logs of sandbox and tccd daemons, please check below:Vnode action for /Library/Application Support/com.apple.TCC/AdhocSignatureCache/F86FE4D8-7544-446E-B7B6-8C2440A00598 in kauth TCCD:Error reading signature from URL: url=/Library/Application Support/com.apple.TCC/AdhocSignatureCache/F86FE4D8-7544-446E-B7B6-8C2440A00598 error=Error Domain=NSCocoaErrorDomain Code=257 The file “F86FE4D8-7544-446E-B7B6-8C2440A00598” couldn’t be opened because you don’t have permission to view it. UserInfo={NSFilePath=/Library/Application Support/com.apple.TCC/AdhocSignatureCache/F86FE4D8-7544-446E-B7B6-8C2440A00598, NSUnderlyingError=0x7fb8b0f22dd0 {Error Domain=NSPOSIXErrorDomain Code=13 Permission denied}}Sandbox: <Our user daemon> (230) System Policy: deny(1) file-read-data /Library/Application Support/com.apple.TCC/AdhocSignatureCache/F86FE4D8-7544-446E-B7B6-8C2440A00598Why sandbox denying to read tccd files ? and open call gets blocked in user mode?T
Topic: App & System Services SubTopic: Core OS Tags:
Jan ’20
Reply to PaperKit: Adding Images is not functional
Should be noted that this doesnt work for both Adding images from Assets or from the PhotoPicker, here are my logs when i try to add from the photopicker: Error acquiring assertion: 59638328 Plugin query method called (501) Invalidation handler invoked, clearing connection (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 from this process. UserInfo={NSDebugDescription=The connection to service named com.apple.mobile.usermanagerd.xpc was invalidated from this process.} LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 process may not map database UserInfo={_LSLine=72, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler, _LSFile=LSDReadService.mm, NSDebugDescription=process may not map database} Attempt to map database failed: permission was denied. This attempt will not be retried. Failed to initi
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’25
Reply to Fragment large size data sent and received using NSKeyedArchiver.archivedData in GameCenter
[quote='796608022, DTS Engineer, /thread/759890?answerId=796608022#796608022'] Finally, how is MCPeerID coming into this? I thought you were using GameKit? [/quote] Actually, I am using both GameKit and MCSession. Trying to play with fragmenting the data, as you prompted. Although it is more or less clear how to send data: func sendData(dictionaryWithData dictionary: Dictionary, toPeer targetPeers: [MCPeerID]) { do { let dataToSend = try NSKeyedArchiver.archivedData(withRootObject: dictionary, requiringSecureCoding: true) let fragments = fragmentsForMessage(dataToSend, messageID: 0xa1a2a3a4, maxMessageBytesInFragment: 50000) for fragment in fragments { try session.send(fragment, toPeers: targetPeers, with: MCSessionSendDataMode.reliable) } } catch { } } ... I am frankly a bit stuck as to how to handle it in func session(_ session: MCSession,didReceive data: Data,fromPeer peerID: MCPeerID) { DispatchQueue.main.async { do { .... Append data to a property and then at some point implement NSDictionary.unsecureUna
Jul ’24
Reply to Facing issue with fairplay Streaming server SDK 26.0.0
Thanks for the sugegstions I ran the curl with -v option [azuki@AlmaDevVM Key_Server_Module]$ curl -v -d @Test_Inputs/iOS/spc_v3_ios_uhd_no_lease_2048.json localhost:8080/fps * Trying ::1:8080... * Connected to localhost (::1) port 8080 (#0) > POST /fps HTTP/1.1 > Host: localhost:8080 > User-Agent: curl/7.76.1 > Accept: */* > Content-Length: 5947 > Content-Type: application/x-www-form-urlencoded > * Empty reply from server * Closing connection 0 curl: (52) Empty reply from server [azuki@AlmaDevVM Key_Server_Module]$ Also when I checked httpd logs I do see a couple of errors. [DEBUG] ❌ Assertion failure: paramErr (-42585) [src/parse_certificates.swift:36] src/parse_certificates.swift:13: Fatal error: 'try!' expression unexpectedly raised an error: src.FPSStatus.paramErr [Thu Jan 22 04:17:30.168292 2026] [core:notice] [pid 1004898:tid 1004898] AH00051: child pid 1009053 exit signal Illegal instruction (4), possible coredump in /etc/httpd timestamp=2026-01-22 04:18:01,830,FP_TOOLN=fpssdk,FP_
Topic: Media Technologies SubTopic: Streaming Tags:
3w
Reply to NSCloudKitMirroringExportRequest issues
Hi I am newbie to the CloudKit and have tried to convert CoreDataCloudKitDemo to work with public database after watching the wwdc20-10650. I have the following error outputs. It doesn't help much, any suggestions? Thank you. CDFAKEImageDataC8B4705B-EB7D-4F8B-A21D-A9EDB303A74E:(defaultZone:defaultOwner) = CDFAKEPost620D3755-64F5-49A6-8793-16D8AB5F8154:(defaultZone:defaultOwner) = ... 2 Batch Request Failed CKError's omited ... CoreDataCloudKitDemo[5308:617130] [error] error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate recoverFromPartialError:forStore:inMonitor:]blockinvoke(1943): : Found unknown error as part of a partial failure: will not be saved because of previous error in atomic zone> Unable to initialize CloudKit schema: A Core Data error occurred. CoreData: debug: CoreData+CloudKit: -[NSCloudKitMirroringDelegate remoteStoreDidChange:]block_invoke(2150): - Ignoring remote change notification because it didn't change any entities tracked by persistent history: Error Domain=NSCocoaErrorDomain
Sep ’20
Reply to What is required to register for CoreWLAN events?
Isn't working for me.Line that fails:scan = try (interface.scanForNetworks(withName: ssidName, includeHidden:true))Error:An error has occured while scanning networks: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 named com.apple.airportd was invalidated from this process. UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.airportd was invalidated from this process.}codesign -d --entitlements - DerivedData/airport-bssid/Build/Products/Debug/airport-bssidExecutable=/Users/maxcoplan/Documents/workspace/airport-bssid-swift/DerivedData/airport-bssid/Build/Products/Debug/airport-bssid com.apple.security.network.client com.apple.security.network.server For some reason Apple's code formatter isn't working. Here's the raw output:Executable=/Users/maxcoplan/Documents/workspace/airport-bssid-swift/DerivedData/airport-bssid/Build/Products/Debug/airport-bssid��qq3<?xml version=1.0 encoding=UTF-8?><!DOCTYPE plist PUBLIC -//Apple//DTD PLIST 1.0//E
Dec ’19