when i run my app in Xcode 12 simulator it give this error The file “ERP” couldn’t be opened because you don’t have permission to view it. Domain: NSCocoaErrorDomain Code: 257 Failure Reason: You don’t have permission. Recovery Suggestion: To view or change permissions, select the item in the Finder and choose File > Get Info. User Info: { NSFilePath = /Users/Hani/Library/Developer/Xcode/DerivedData/ERP-famblluulftfkoeqfddavcaudaym/Build/Products/Debug-iphonesimulator/ERP.app; } - The operation couldn’t be completed. Permission denied Domain: NSPOSIXErrorDomain Code: 13 Failure Reason: Permission denied - System Information macOS Version 10.15.7 (Build 19H2) Xcode 12.0.1 (17220)
Search results for
NSCocoaErrorDomain
1,063 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I'm testing out Core Data batch insert. The performance is amazing!! Data gets imported in a just a couple hundreds of milliseconds. New rows are inserted and existing rows are updated. I ran into 1 problem though.... If the unique constraint is set with multiple attributes, batch insert will fail. Below is the call stack of the failed operation: 2020-10-06 00:05:44.900901-0700 TestHostingApp[17605:1541912] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'error in batch insertion: Error Domain=NSCocoaErrorDomain Code=134050 (null) UserInfo={NSExceptionOmitCallstacks=true, _NSCoreDataOptimisticLockingFailureConflictsKey=()}' *** First throw call stack: ( 0 CoreFoundation 0x00007fff2043a126 __exceptionPreprocess + 242 1 libobjc.A.dylib 0x00007fff20177f78 objc_exception_throw + 48 2 CoreFoundation 0x00007fff20439f4f +[NSException raise:format:] + 0 3 Foundation 0x00007fff207881ca -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 1
When I upgraded to Xcdoe 12 and build the previous app project, And then I got an error when running the simulator, it seemed to be a permission problem. I also went to File> Get Info for what the error said, but no exception was found. Any ideas? ======================== The following is the error content: Details The file “xxx” couldn’t be opened because you don’t have permission to view it. Domain: NSCocoaErrorDomain Code: 257 Failure Reason: You don’t have permission. Recovery Suggestion: To view or change permissions, select the item in the Finder and choose File > Get Info. User Info: { NSFilePath = /Users/momo/Library/Developer/Xcode/DerivedData/xxx-dxvphugocaepzfaicmcbykxrlgrt/Build/Products/Debug-iphonesimulator/xxx.app; }- The operation couldn’t be completed. Permission denied Domain: NSPOSIXErrorDomain Code: 13 Failure Reason: Permission denied- System Information macOS Version 10.15.6 (Build 19G2021) Xcode 12.0.1 (17220)
With iOS 14 devices we can see that Many MDM Commands Fails with error Couldn’t communicate with a helper application. . This Error is more frequent in InstallApplication , InstallProfile command , but other MDM commads also face the same issue. I have attach sample response from some devices. We have seen this error in previous version of iOS but with iOS 14 these are very frequent. InstallApplication Errors CommandUUID InstallApplication;Collection=51075000000853127 ErrorChain ErrorCode 1005 ErrorDomain DeviceManagement.error LocalizedDescription Could not install app. ErrorCode 4097 ErrorDomain NSCocoaErrorDomain LocalizedDescription Couldn’t communicate with a helper application. Status Error UDID UDID-UDID CommandUUID InstallApplication;Collection=33783000002227119 ErrorChain ErrorCode 4099 ErrorDomain NSCocoaErrorDomain LocalizedDescription Couldn’t communicate with a helper application. Status Error UDID UDIDUDIDUDID CommandUUID InstallApplication;Collection=
Topic:
Developer Tools & Services
SubTopic:
General
Tags:
Enterprise
Device Management
Apple Business Manager
Business and Enterprise
Is it possible to write to an App Group's Container folder or UserDefaults from an iOS Thumbnail Extension or QuickLook Extension? It doesn't work. It does work for a Widget extension. I've added the App Group to the Entitlements of each extension. For writing a file to App Group Container I get Error Domain=NSCocoaErrorDomain Code=513 Du hast nicht die Zugriffsrechte, um die Datei „quicklook 01 current.log“ im Ordner „DocumentInvestigation“ zu sichern. UserInfo={NSFilePath=/private/var/mobile/Containers/Shared/AppGroup//DocumentInvestigation/quicklook 01 current.log, NSUnderlyingError=0x28090bb10 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}} For setting App Group UserDefaults [User Defaults] Couldn't write values for keys ( ttexample ) in CFPrefsPlistSource<0x2839cc700> (Domain: , User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data
2020-10-11 18:59:08.680 Xcode[34078:994651] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.IDE.IDEiOSSupportCore (/Applications/Xcode-beta.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin), error = Error Domain=NSCocoaErrorDomain Code=3588 dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore, 265): Library not loaded: /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice Referenced from: /Applications/Xcode-beta.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore Reason: image not found UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore, NSDebugDescription=dlopen(/Applications/Xcode-beta.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore, 265)
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Hi I am getting below error while unarchiving my objective-c custom class. Error Domain=NSCocoaErrorDomain Code=4864 * -[NSKeyedUnarchiver initForReadingFromData:error:throwLegacyExceptions:]: data is empty; did you forget to send -finishEncoding to the NSKeyedArchiver? UserInfo={NSDebugDescription=* -[NSKeyedUnarchiver initForReadingFromData:error:throwLegacyExceptions:]: data is empty; did you forget to send -finishEncoding to the NSKeyedArchiver?} I am using the method [NSKeyedUnarchiver unarchivedObjectOfClass:[BBUserInfo class] fromData:data error:&error] to un archive the data. My custom object is confirm to NSSecureCoding and implemented protocol method as below (BOOL)supportsSecureCoding { return YES; } Also this error doesn't reproduce for me, Its happening in the App Store released version. I am able to figure this error only through the logs. I'm a bit of a confused especially in regards to NSKeyedArchiver but where am I supposed to send -finishEncoding to the NSKeyedArchiver. Since fi
I currently have an app using Core Data in the App Store: the app allows people to record their water and sailing activities (think of it like Strava for sailors). I have not updated the app for 3 years, the app seems to be still working fine on latest iOS versions but I recently planned to improve the app. I am currently working on an update for this app, and need to change the data model and schema. I would like to have an automatic lightweight migration. I renamed some entities, properties and relationships, but I made sure to put the previous ids in the Renaming ID field in the editor. I want to take advantage of the opportunity to sync the updated schema on CloudKit. I followed the instruction on Apple Developer documentation to setup the sync. I also made sure to initialize the schema using initializeCloudKitSchema(). When I visit the dashboard, I see the correct schema. The container is only in development mode, not pushed into production. When I launch the app with a sqlite file generated by the avail
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags:
CloudKit
Core Data
Cloud and Local Storage
Hello everybody, I am trying to export a folder to the Files App using SwiftUI. I am using the fileExporter view modifier. This is my code so far. .fileExporter(isPresented: self.$presentExportCSV, document: FolderExport(url: createFolderURL()), contentType: .folder) { (res) in } struct FolderExport: FileDocument { let url: String static var readableContentTypes: [UTType] {[.folder]} init(url: String) { self.url = url } init(configuration: ReadConfiguration) throws { url = } func fileWrapper(configuration: WriteConfiguration) throws -> FileWrapper { let file = try! FileWrapper(url: URL(fileURLWithPath: url), options: .immediate) return file } } func createFolderURL() -> String { var folder: String = DispatchQueue.global(qos: .userInitiated).async { let fileManager = FileManager.default //Get apps document directory let path = fileManager.urls(for: .documentDirectory, in: .userDomainMask) //Create folder with obseravtion data let folderName = Observations Data let dataDirectory = path[0].appendingPathC
I didn't get any idea, Xcode doesn't show any error when I build the app to simulator get permission error, please anybody know this kind of error. Details The file “App name” couldn’t be opened because you don’t have permission to view it. Domain: NSCocoaErrorDomain Code: 257 Failure Reason: You don’t have permission. Recovery Suggestion: To view or change permissions, select the item in the Finder and choose File > Get Info. User Info: { NSFilePath = local path/Build/Products/Debug-iphonesimulator/Appname.app; } - The operation couldn’t be completed. Permission denied Domain: NSPOSIXErrorDomain Code: 13 Failure Reason: Permission denied - System Information macOS Version 10.15.7 (Build 19H2) Xcode 12.0.1 (17220)
Hi Ice, Fabrice, did you find a solution. I tried to add it as delegate to the UIViewController but it's also not working: class UIViewController: UIViewController, PHPickerViewControllerDelegate { ... } If you have a reference implementation can you share it on GitHub? I found the exact same behavior here but they also did not have any solution so far https://stackoverflow.com/questions/64121797/picker-unavailable-there-was-an-error-while-preparing-the-picker-please-try-ag 2020-10-20 19:56:08.386568+0200 Capri[2928:151689] [assertion] Error acquiring assertion: 2020-10-20 19:56:09.034177+0200 Capri[2928:147896] [Picker] Picker failed with error: Error Domain=PXErrorDomain Code=-1 PHPickerViewController did receive interruption. UserInfo={NSDebugDescription=PHPickerViewController did receive interruption.} 2020-10-20 19:56:09.035269+0200 Capri[2928:152165] [lifecycle] [u 05AECDAD-C4FF-4457-97C4-22EB9E4F5D5E:m (null)] [com.apple.mobileslideshow.photospicker(1.0)] Connection to plugin interrupted while in use.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
Got the same error on a large mesh 2020-10-21 11:07:46.374517-0700t[19062:6094948] connection to com.apple.ModelIO.AssetLoader was interrupted 2020-10-21 11:07:46.377911-0700t[19062:6094927] AssetLoader.loadURL errorHandler: Error Domain=NSCocoaErrorDomain Code=4097 connection to service on pid 0 named com.apple.ModelIO.AssetLoader UserInfo={NSDebugDescription=connection to service on pid 0 named com.apple.ModelIO.AssetLoader} 2020-10-21 11:07:46.380719-0700t[19062:6094927] Couldn’t communicate with a helper application.
Topic:
App & System Services
SubTopic:
Core OS
Tags:
Hi I'm trying to port my iOS app to Mac using macCatalyst, and I'm having problem with Siri Shortcuts. The code complies and runs, but when I try to add shortcut using INUIAddVoiceShortcutViewController I'm seeing 'Shortcuts unavailable.' Using INVoiceShortcutCenter.shared.getAllVoiceShortcuts returns error [Intents] -[INVoiceShortcutCenter getAllVoiceShortcutsWithCompletion:]_block_invoke Error from -getVoiceShortcutsWithCompletion: Error Domain=NSCocoaErrorDomain Code=4099 Couldn’t communicate with a helper application. Any ideas what's I'm doing wrong? Same code works perfectly fine on iOS.
... following Apple's example. Going off of this tutorial: https://developer.apple.com/documentation/avfoundation/media_playback_and_selection/creating_a_basic_video_player_macos I have dragged into the storyboard the AVKit Player View, and here is my ViewController code: import Cocoa import AVKit import AVFoundation class ViewController: NSViewController { @IBOutlet weak var playerView: AVPlayerView! override func viewDidLoad() { super.viewDidLoad() guard let url = URL(string: linkWasHere) else { return //could not post actual link due to this forum's security issues, see link above for actual link. ??? } let player = AVPlayer(url: url) playerView.player = player } } here is what the console is outputting when I run this, any idea why this no longer works? 2020-11-01 20:28:31.491145-0800 Player01[13477:15207676] [plugin] AddInstanceForFactory: No factory registered for id F8BB1C28-BAE8-11D6-9C31-00039315CD46 2020-11-01 20:28:31.494171-0800 Player01[13477:15207338] CDN - client insert callback function clien
The same code for 100 items works, but fails with exception for 600 with the Error Domain=NSCocoaErrorDomain Code=1570 title is a required value. ... all other properties of the objects are reported as nil as well. The objects are setup on the same thread and are valid before context.save is called. As I said before, it works for 100 items but fails for 600. let users = DataLayer().loadObjectsFromDB(context:self.context) var inspections = InspectionDTO.inspectionsForSave(json: json, users:users, in: self.context) do { try self.context.save() } catch { print(error._userInfo ?? ) } cross posted on stackoverflow - https://stackoverflow.com/questions/64671451/coredata-context-objects-deallocated-in-a-block/64671707?noredirect=1#comment114361636_64671707 any recommendations are greatly appreciated