Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Reply to Support semantic search with Core Spotlight
Tried to implement sample code from session 10131. Running on simulator gives me model loading errors: [Model loading] model loading failed with err -1000 for model path /Users/deszip/Library/Developer/CoreSimulator/Devices/EB928B2D-426F-40DD-A85F-7FF41442C02A/data/Containers/Data/Application/2DC7FE09-4F6E-411F-89CF-E65338EA2101/Library/Spotlight/Resources_V3/Experimental/models/spotlight_l2.mlmodelc and directives path /Users/deszip/Library/Developer/CoreSimulator/Devices/EB928B2D-426F-40DD-A85F-7FF41442C02A/data/Containers/Data/Application/2DC7FE09-4F6E-411F-89CF-E65338EA2101/Library/Spotlight/Resources_V3/Experimental/directives/directives_l2.mdplist And on device looks like smth wrong with xpc to some helper app: ### qid=2 error Error Domain=NSCocoaErrorDomain Code=4097 Couldn’t communicate with a helper application. reply: In general it just does not work :( Any hints or help appreciated.
Topic: App & System Services SubTopic: General Tags:
Jul ’24
Reply to Drop file not found on MacBook Air
Tanks for the answer, The Logs from Xcode (on the Mac Book Air) are the following: 5 Reentrant message: kDragIPCWithinWindow, current message: kDragIPCWithinWindow ✅ PDF détecté ❌ Échec lors de la copie : Error Domain=NSCocoaErrorDomain Code=4 Le fichier « brochure_nissan_eNV200_evalia-2.pdf » n’existe pas. UserInfo={NSSourceFilePathErrorKey=/Users/jean-philippegreaux/Downloads/brochure_nissan_eNV200_evalia-2.pdf, NSUserStringVariant=( Copy ), NSDestinationFilePath=/Users/jean-philippegreaux/Library/Containers/jgreaux.gestion-de-comptes/Data/Documents/2025/7/justificatif_80.pdf, NSFilePath=/Users/jean-philippegreaux/Downloads/brochure_nissan_eNV200_evalia-2.pdf, NSURL=file:///Users/jean-philippegreaux/Downloads/brochure_nissan_eNV200_evalia-2.pdf, NSUnderlyingError=0x600002a8ab80 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}} ❌ Échec du traitement du fichier 5 Reentrant message: kDragIPCCompleted, current message: kDragIPCLeaveApplication ps: what's bothering me is that the issue
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’25
Reply to Creating file bookmarks doesn't work anymore on macOS 15 Sequoia
[quote='815622022, floorish, /thread/764435?answerId=815622022#815622022, /profile/floorish'] I've received multiple confirmations that any of these solutions resolve the issue: Create a new user account (old account will stay bugged) Reset the macOS keychain for the (bugged) user account Update to 15.1+ [/quote] Thank you SO MUCH for this. I've spent a TON of time investigating why, after updating from Ventura to Sonoma, Final Cut Pro 11 was being so terribly SLOW ( mainly when opening libraries and when closing the app ), even though FCP 10.8.1 worked fine! A clue pointing me towards this thread popped up, when I tried to use HandBrake to transcode a video and have encountered the very same problems as in FCP. Handbrake's console listed the following: [09:30:49] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 Failed to retrieve app-scope key UserInfo={NSDebugDescription=Failed to retrieve app-scope key} [09:30:49] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain
Topic: App & System Services SubTopic: Core OS Tags:
Dec ’24
Reply to Debugging and fixing rPaths for GateKeeper?
PS: These are the log entries that seem relevant. The last one is about an unresolved rpath. 2022-05-01 08:48:26.907551+0200 0x12fa3c Default 0x0 694 2 lsd: (LaunchServices) [com.apple.launchservices:default] Non-fatal error enumerating at , continuing: Error Domain=NSCocoaErrorDomain Code=260 The file “PlugIns” couldn’t be opened because there is no such file. UserInfo={NSURL=PlugIns/ -- file:///Volumes/Nodelab/nodelab.app/Contents/, NSFilePath=/Volumes/Nodelab/nodelab.app/Contents/PlugIns, NSUnderlyingError=0x7fdca7184270 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}} 2022-05-01 09:27:56.604669+0200 0x12fa3c Default 0x0 694 2 lsd: (LaunchServices) [com.apple.launchservices:default] Non-fatal error enumerating at , continuing: Error Domain=NSCocoaErrorDomain Code=260 The file “PlugIns” couldn’t be opened because there is no such file. UserInfo={NSURL=PlugIns/ -- file:///Volumes/Nodelab/nodelab.app/Contents/MacOS/PySide6/Qt/lib/QtWebEngineCore.framework/Helpers/QtWebEngi
Topic: Code Signing SubTopic: General Tags:
May ’22
Reply to Xcode 7 Beta 4 no simulators and can't open nibs
This helped me part of the way... The final step I had to make was manually creating the directory /Users/reeves/Library/Developer/Xcode/UserData/IB Support/Simulator Devices ... Somehow this directory path no longer existed in my folder hierarchy. Everything after Developer no longer existed. I checked a couple of the log files using Console and noticed the error below.The Console error:Jul 28 03:22:02 CoreSimulatorService[517] <Error>: Set (/Users/reeves/Library/Developer/Xcode/UserData/IB Support/Simulator Devices) could not be created: Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file “Simulator Devices” in the folder “IB Support”.After manually adding the missing folders ... entering my admin password after each one ... Reopened Xcode 7 Beta 4 ... everything ran perfectly.Thanks to Sean for getting me started, I've been stuck on this for about a week.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’15
Reply to Free ad blocker with better performance than paid ones
Hey quick question... I've got a content blocker I've developed -- it works perfectly when launched from Xcode on my device, but the app store reviewer says they can't see that it blocks anything. So I sent the build to TestFlight and downloaded on my device and then it doesn't work. When I move the slider to enable it in settings, I see this error in console:Oct 13 07:12:24 Andrews-iPhone6 Preferences[203] <Warning>: Error loading content blocker (com.AndrewBenson.AndrewBundleName---Content-Blocker): Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.SafariServices.ContentBlockerLoader UserInfo={NSDebugDescription=connection to service named com.apple.SafariServices.ContentBlockerLoader}When I launch Safari then, no content is blocked, and no amount of closing and reopening Safari and enabling and disabling the blocker will make it work.I did stick some NSLogs in my ActionHandler for the content blocker just to make sure beginRequestWithExtensionContext was getting
Topic: Safari & Web SubTopic: General Tags:
Oct ’15
Reply to [PHPicker] Permission error followed by "no such file" error
Beta 3 have same issue. PHPicker Demo throughs same error with Xcode beta 3 and iOS beta 3. [ERROR] Could not create a bookmark: NSError: Cocoa 257 The file couldn’t be opened because you don’t have permission to view it. } [claims] Upload preparation for claim 5C062BA9-85BE-458E-8DDC-0CBB1FDE4E4F completed with error: Error Domain=NSCocoaErrorDomain Code=260 The file “D843997F-8362-4A9A-ADAC-7F4DFC889C41.jpeg” couldn’t be opened because there is no such file. UserInfo={NSURL=file:///private/var/mobile/Containers/Shared/AppGroup/26E08B60-0C4E-45B5-85B9-87F4D5F0DDB0/File%20Provider%20Storage/D843997F-8362-4A9A-ADAC-7F4DFC889C41.jpeg, NSFilePath=/private/var/mobile/Containers/Shared/AppGroup/26E08B60-0C4E-45B5-85B9-87F4D5F0DDB0/File Provider Storage/D843997F-8362-4A9A-ADAC-7F4DFC889C41.jpeg, NSUnderlyingError=0x2834f2610 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}}
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’20
Reply to Nearby Interactions, wih camera assistance
so the BluetoothManager.scan... was a hardware problem. now I see {msg:#Warning Error reading file, file://private/var/Managed Preferences/mobile/com.apple.CoreMotion.plist, error:Error Domain=NSCocoaErrorDomain Code=257 The file “com.apple.CoreMotion.plist” couldn’t be opened because you don’t have permission to view it. UserInfo={NSFilePath=//private/var/Managed Preferences/mobile/com.apple.CoreMotion.plist, NSURL=file:////private/var/Managed%20Preferences/mobile/com.apple.CoreMotion.plist, NSUnderlyingError=0x14cc64ea0 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}}} I have the motion privacy tag in the plist for the code doing request camera assistance in the connect handler for the nearby operation.. in setup accessory dump of capabilities direction = false device does not support direction measurement device DOES support camera assistance here is the code logger.info(dump of capabilities direction = (NISession.deviceCapabilities.supportsDirectionMeasurement)); if(!(NISession.d
Sep ’25
Reply to Return json value with php from swift iOS
The error you have gotten: Error Domain=NSCocoaErrorDomain Code=3840 No value. UserInfo={NSDebugDescription=No value.}is generated when an emtpy data is passed to JSONObjectWithData, which means your php server has sent a response with empty body.The dev forums are considered to support development for Apple's platforms, so server side development with php seems to be out of scope.But when an app communicates with HTTP servers, the app needs to simulate web-forms, so having simple checking form would be useful for both client (app) side and server side.Add this html file to your server and access it through browser. Developer tools of the browser will show you both request and reponse data.<!DOCTYPE html> <html> <head> <meta charset=UTF-8> </head> <body> <form method=POST action=mylink.php> Email:<input type=text name=Email><br> Passowrd:<Input type=password name=Password><br> <input type=submit value=submit> </form> </b
Feb ’16
Reply to I want to access twitter filter search v2 endpoint in ios app
Ok I did 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 } var request = URLRequest(url: serviceUrl) request.httpMethod = POST request.setValue(Bearer MY TOKEN, forHTTPHeaderField: Authorization) request.setValue(text/html; charset=UTF-8, forHTTPHeaderField: Content-Type) request.setValue(gzip, deflate, br, forHTTPHeaderField: Accept-Encoding) 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: .allowFragments) print(json) } catch let error { print(error: (error)) } } }.resume() } and now it is giving me this error error: Error Domain=NSCocoaErrorDomain Code=3840 Invalid value around character 0. UserInfo={NSDebugDescription=Invalid
Topic: App & System Services SubTopic: General Tags:
Sep ’21
Reply to Quicklook Thumbnailing not working in iOS 16 betas
And I should note that when using iCloud (ubiquitous container), we get a different thumbnail error when we initially create the document: Error Domain=NSCocoaErrorDomain Code=4101 Provider returned unsupported error UserInfo={NSDebugDescription=Provider returned unsupported error, NSUnderlyingError=0x2811fd920 {Error Domain=CKErrorDomain Code=11 UserInfo={ContainerID=com.apple.clouddocs, NSDebugDescription=, OperationID=B21EB1404E50EF3F, RequestUUID=46519FDB-FB10-48FF-B736-93650812BA45, errorKey=ckvneous, ServerErrorDescription=Record not found, CKErrorDescription=Error fetching record from server: Record not found, NSLocalizedDescription=Error fetching record from server: Record not found, NSUnderlyingError=0x2811ff360 {Error Domain=CKInternalErrorDomain Code=2003 UserInfo={ContainerID=com.apple.clouddocs, OperationID=B21EB1404E50EF3F, NSDebugDescription=, RequestUUID=46519FDB-FB10-48FF-B736-93650812BA45, errorKey=ckvneous, ServerErrorDescription=Record not found, CKErrorDescription=Error fetch
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’22
Reply to M1 Xcode 12.5 can't paste clipboard
Am I the only one that's also seeing this issue on device? I started noticing it with iOS 14 and it's continued intermittently on iOS 15 too. Every once in a while my app just stops being able to paste text that was copied from anywhere. Force-quitting the app fixes it so that the app can paste again. I've never gathered a sysdiagnose or anything, but I do have logs from when it's happened in the simulator too. 2022-01-19 22:57:34.052240-0600 Testing[13092:3724690] [scoped] <0x283552940 file:///var/mobile/Library/Caches/com.apple.Pasteboard/eb77e5f8f043896faf63b5041f0fbd121db984dd/e773525714f94678cc813686e707bb53ec1d2285>: internal sandbox error for 2022-01-19 22:57:34.060486-0600 Testing[13092:3724763] [claims] Upload preparation for claim 2B831962-7238-4C74-B05E-396F22C916EA completed with error: Error Domain=NSCocoaErrorDomain Code=257 The file “e773525714f94678cc813686e707bb53ec1d2285” couldn’t be opened because you don’t have permission to view it. UserInfo={NSURL=file:///var/mobile/Libra
Feb ’22
Reply to Preview Crashes when using @FetchRequest
Looking at the diagnostics generated by Preview gives me the following message Error Domain=NSCocoaErrorDomain Code=516 “ChildProfile+CoreDataClass.swift” couldn’t be linked to “Intermediates” because an item with the same name already exists. UserInfo={NSSourceFilePathErrorKey=/Users/james/Library/Developer/Xcode/DerivedData/BedtimeClock-hehxrojiiepyadgitseedusiyozd/Build/Intermediates.noindex/Previews/Bedtime Clock/Intermediates.noindex/Bedtime Clock.build/Debug-iphonesimulator/Bedtime Clock.build/DerivedSources/CoreDataGenerated/Model/ChildProfile+CoreDataClass.swift, NSUserStringVariant=( Link ), NSDestinationFilePath=/var/folders/dp/hztzhf572q26jwx6vb9nqpw0000gn/T/previews-diagnostics-20200713-200707/Intermediates/ChildProfile+CoreDataClass.swift, NSFilePath=/Users/james/Library/Developer/Xcode/DerivedData/Bedtime_Clock-hehxrojiiepyadgitseedusiyozd/Build/Intermediates.noindex/Previews/Bedtime Clock/Intermediates.noindex/Bedtime Clock.build/Debug-iphonesimulator/Bedtime Clock.build/DerivedSources
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’20
Reply to Watchkit app hangs (spins forever) - activePlugInForIdentifier: returned nil for application
Thanks Justin,The watchkit extension does indeed have arm64 set as a valid architecture (+ armv7 and armv7s), along with the parent application and all linked frameworks.Again, the sequences of events from the console logs on launch (XXX is our bundle id):6/18/15, 10:47:28 PM pkd[4784]: assigning plug-in XXX(1.0) to plugin sandbox 6/18/15, 10:47:28 PM pkd[4784]: enabling pid=4783 for plug-in XXX(1.0) /private/var/mobile/Containers/Bundle/Application/XXX.app/PlugIns/XXX.appex 6/18/15, 10:47:28 PM com.apple.xpc.launchd[1]: Program specified by service does not contain one of the requested architectures: 16777228:arm64 6/18/15, 10:47:28 PM companionappd[4783]: plugin XXX interrupted 6/18/15, 10:47:28 PM companionappd[4783]: Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 The operation couldn’t be completed. (Cocoa error 4097.) (connection to service named XXX.watchkitextension) UserInfo=0x15deac160 {NSDebugDescription=connection to service named XXX.watchkitextension} 6/18/15, 10:47:28 PM
Topic: App & System Services SubTopic: General Tags:
Jun ’15
Reply to iOS Development: Create file failed(return domain:NSCocoaErrorDomain,code:512)
May I add your wei xin(fang zhi he xie)? my wei xin is rock_homeboy and my dian hua hao ma is 18616309756, Im a RD of ByteDance(Douyin), and I have encountered the same problem as you mentioned above, currently contacting the user so that I can provide disk and system log diagnosis to Apple.Let me describe the problem:1.Failed to create file through NSFileManager function- (BOOL)createFileAtPath:(NSString *)path contents:(nullable NSData *)data attributes:(nullable NSDictionary<nsfileattributekey, id=> *)attr;The error information obtained by printing errno and strerror (errno) is as follows:errorCode = 17, errorDesc = File exists.The following key file attributes are provided:{ NSFileCreationDate = 1970-01-01 00:00:02 +0000; NSFilePosixPermissions = 493; NSFileSystemNumber = 16777222; NSFileType = NSFileTypeDirectory; }2.Can't write to file using NSData- (BOOL)writeToFile:(NSString *)path options:(NSDataWritingOptions)writeOptionsMask error:(NSError **)errorPtr; error: Error Domain=NSCocoaErrorDomain
Topic: App & System Services SubTopic: Core OS Tags:
May ’20