Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

CloudKit integration requires does not support ordered relationships.
I'm trying to use Apple's CoreDataCloudkitDemo app. I've only changed the app settings per the README document. On running the demo, I'm getting the error: CloudKit integration requires does not support ordered relationships.The console log shows:Fatal error: ###persistentContainer: Failed to load persistent stores:Error Domain=NSCocoaErrorDomain Code=134060 A Core Data error occurred. UserInfo={NSLocalizedFailureReason=CloudKit integration requires does not support ordered relationships. The following relationships are marked ordered: Post: attachmentsDoes anyone have a workaround, or preferably, a fix? Or did I do something wrong?Thanks
6
0
5k
Jul ’19
Xcode 11 Beta 4 Crashes when clicking on the Swift file from the left panel(For SwiftUI or NonSwiftUI projects Both)
Xcode 11 Beta 4 Crashes when clicking on the Swift file from the left panel(For SwiftUI or NonSwiftUI projects Both). It happens in both cases(Creating a new project or using the existing one).Example:1. Open a New or existing Xcode Swift Project(SwiftUI or Non-SwiftUI)2. Click on the. Swift file on the left panel3. Boom!! Xcode Crashes(Every Time)Current OS: Mac Os Catalina 10.15 BetaBug Report:Process: Xcode [1625]Path: /Applications/Xcode-beta.app/Contents/MacOS/XcodeIdentifier: com.apple.dt.XcodeVersion: 11.0 (14897.4)Build Info: IDEFrameworks-14897004000000000~13 (11M374r)Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: Xcode [1625]User ID: 501Date/Time: 2019-07-18 15:40:30.514 +0530OS Version: Mac OS X 10.15 (19A501i)Report Version: 12Anonymous UUID: F064230D-D10D-E773-35A0-293859994D86Time Awake Since Boot: 1400 secondsSystem Integrity Protection: enabledCrashed Thread: 0 Dispatch queue: com.apple.main-threadException Type: EXC_CRASH (SIGABRT)Exception Codes: 0x0000000000000000, 0x00000000
20
0
12k
Jul ’19
Document security scoped bookmark fails with helper app
I have a macOS app with a helper tool that communicates via an XPC connection. In 10.15 Beta 4, a document-based security scoped bookmark fails when it is passed from the main macOS app to the helper app.In the sample code below from the main app, a bookmark is created from a URL and the attribute is saved on “/Users/tperfitt/passing”: NSURL *wimURL=[NSURL fileURLWithPath:@/Users/tperfitt/Desktop/test.winclone/Windows.wim]; NSError *error; NSData *bookmark = [wimURL bookmarkDataWithOptions:NSURLBookmarkCreationWithSecurityScope includingResourceValuesForKeys:nil relativeToURL:[NSURL fileURLWithPath:@/Users/tperfitt/passing] error:&error]; If I resolve this in the main app, it resolves fine. However, if I pass the NSData to the helper app over an XPC connection and attempt to resolve it, it resolves as nil and error is set. The system log shows:2019-07-23 18:02:03.577313-0500 localhost com.twocanoes.WincloneHelper[3026]: (CoreServicesInternal) the ScopedBookmarkAgent service could not be found (configurati
2
0
1.4k
Jul ’19
"Error connecting back to host app" in Safari 13
In Safari 13 (both in macOS Catalina and Safari Technology Preview builds on Mojave), I'm encountering a major issue when having my Safari App Extension communicate with Safari. For example - my app's toolbar popover has an option to enable or disable certain functionality for the extension. In Safari 12.1, I am able to use page?.dispatchMessageToScript to send messages from my App Extension to the injected script to immediately reflect the user's change in the foreground tab. This also works in Safari 13, but only at first launch. After Safari has been running for some time, all further attempts to use this functionality fail silently. The only indication of the error is found by checking the console, where I'm seeing:Error connecting back to host app: NSCocoaErrorDomain, code: 4099I actually filed a Radar/feedback about this several months back, but have not heard any updates and have not seen this issue improve since June. I see this was also mentioned in a previous thread, but there was no furthe
3
0
1.3k
Aug ’19
Reply to Photos App "PHPhotosErrorInvalidState"
Exact same issue here.After installing macOS 10.15 Catalina Photos throws error PHPhotosErrorInvalidState in a dialog window upon upgrading laibrary. After klicking OK in the app quits.Filed a bug using the Feedback Assistant (2019-08-08).In Console i managed to get a longer description of the error It reads as follows:Failed to open/create library at: '/Users/Sven/Pictures/Bilder Library SvenMaster.photoslibrary' error: Error Domain=PHPhotosErrorDomain Code=4302 PHPhotosErrorInvalidState UserInfo={NSLocalizedDescription=PHPhotosErrorInvalidState, currentState=error, NSUnderlyingError=0x600002776910 {Error Domain=com.apple.photos.error Code=43002 (null) UserInfo={currentState=error, NSUnderlyingError=0x600002776be0 {Error Domain=NSCocoaErrorDomain Code=4097 connection to service on pid 1908 named com.apple.Photos.Migration UserInfo={NSDebugDescription=connection to service on pid 1908 named com.apple.Photos.Migration}}}}}I do not understand the error message or what it means.Completed troubleshooting
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’19
Reply to Expected Declaration seems to have no resolution
Thanks Claude31.That resolved the two issues. However, when I ran the code I received the error stream below, So I am going to create another post with an explanation of what I want to accomplish.2019-08-16 11:16:34.498731-0400 ScorCent[73722:18191231] [error] error: -addPersistentStoreWithType:SQLite configuration:(null) URL:file:///Users/wlionelwilliams/Library/Containers/AppDev.ScorCent/Data/Library/Application%20Support/ScorCent/ScorCent.sqlite options:{ NSInferMappingModelAutomaticallyOption = 1; NSMigratePersistentStoresAutomaticallyOption = 1;} ... returned error Error Domain=NSCocoaErrorDomain Code=134140 Persistent store migration failed, missing mapping model. UserInfo={sourceModel=(<NSManagedObjectModel: 0x600002129090>) isEditable 0, entities { ScorcentQuestions = (<NSEntityDescription: 0x600003500370>) name ScorcentQuestions, managedObjectClassName ScorcentQuestions, renamingIdentifier ScorcentQuestions, isAbstract 0, superentity name (null), properties {n answer = (<NSAtt
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’19
Persistent Store Migration Failed
Hello:I want to load some files into my CoreData store. I created the xc datamodel and edited my appdelegate.swift as follows:When I run the code i get a long stream of errors as shown below.I would like any help you can give in resolving the migration issue.My steps in the code is first to create an array from a text file that is registered in the Copy Bundle Resources, then load the data into CoreData SQLite (at least that's what I intended to do)./ AppDelegate.swif/import Cocoaimport CoreData@NSApplicationMainclass AppDelegate: NSObject, NSApplicationDelegate { func applicationWillTerminate(_ aNotification: Notification) { // Insert code here to tear down your application } var persistentContainer: NSPersistentContainer = { let container = NSPersistentContainer(name: ScorCent) container.loadPersistentStores(completionHandler: { (storeDescription, error) in if let error = error { fatalError(Unresolved error (error)) } }) return container }() var dictQID = [String: String]() var arrayQID = NSMutableArray() f
1
0
6.1k
Aug ’19
Reply to QLThumbnailGenerator doesn't work
I figured out what the issue is in my case, but I also think I understand the way it works a little better. In my case, I was enumerating the files using FileManager.default.enumerator and the URLs were being returned with a / on the end. There is probably a way to get the enumerator to return file URLs without the / (I haven't looked into it yet). If I do this little trick:let filename = url.lastPathComponentlet folderURL = url.deletingLastPathComponent()let fileURL = folderURL.appendingPathComponent(filename, isDirectory: false)then the fileURL doesn't contain a / on the end and QLThumbnailGenerator doesn't report that it expected a folder.HOWEVER....I still get errors in my QLThumbnailGenerator.shared.generateRepresentations which I didn't expect. I am asking for .all representations in my request because I figured it would call back every time it got a better representation of the file. The first time it calls back I get this error: Optional(Error Domain=QLThumbnailErrorDomain Code=2 No cached thumbnail)I
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’19
Reply to QLThumbnailGenerator doesn't work
Thanks for this post. I didn't consider that it would return errors in addition to an image. It makes it impossible to know when the thumbnail generator is 'finished' with a request, which harms progress reporting. All in all this API's behavior is poorly documented and I have no idea what to expect from it. There are multiple files in my iCloud Drive that it just decides to not return thumbnails for.I am seeing the same errors you mention:error: Optional(Error Domain=QLThumbnailErrorDomain Code=2 No cached thumbnail) Error Domain=NSCocoaErrorDomain Code=4865 requested key: 'root' UserInfo={NSDebugDescription=requested key: 'root'}However, there are numerous files in my case that do not complete successfully with an image. (Despite being image files)
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’19
In specific case, NEPacketTunnelProvider is not started after calling startTunnelWithOption in iOS and iPadOS 13 beta 7 and earlier version. It is working fine in iOS 12
Detail description:Install pulse client applicationNo VPN profile exist in client app.Keep application in the background.Open safari and launch pulse client app from safari after login on the portal.After launching pulse client app, it will add VPN profile and automatically start to connect with VPN profile.Observer that it stuck in connecting state as packet tunnel is not started.This issue is happening only when loading app using an Intent method.Below is iOS 13 logs with the process: nesessionmanager, neagentLogs showing that it is not attaching utun2 and disconnect.default 20:06:30.099695 +0530 nesessionmanager Consider alternate update, new advice: level: 0, (net.pulsesecure.pulsesecure, 2, WithinAllowance), (com.apple.MobileSMS, 1, WithinAllowance), (com.apple.Spotlight, 2, WithinAllowance) default 20:06:30.100174 +0530 nesessionmanager Will update session NESMPathControllerSession[com.apple.commcenter.ne.cellularusage:73C03D63-533C-4B35-9436-D93A2792F2F8] status to disconnected (fallback 0 non-default
3
0
1.9k
Aug ’19
Packet Tunnel Network Extension dies unexpectedly with Xcode 10.2, Xcode 11b5 works
I am working on a VPN Packet Tunnel Network Extension. When I run it from Xcode 11b5 it works perfectly but if I run it from Xcode 10.2.1 the Tunnel Extension crashes. I have to check the Console for the device to see that is has crashed because Xcode does not point a crash has occured. What I see in the console is this (all is from the Network Extension, another target),NEProvider objects cannot be instantiated from non-extension processes *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSDictionaryM setObject:forKey:]: object cannot be nil (key: A8EDB519-3197-4907-92E2-17DCE552D3A1)' *** First throw call stack: (0x21357a98c 0x2127539f8 0x2134f43f8 0x213469228 0x213f98dd4 0x213f98644 0x212fb8a38 0x212fb97d4 0x212f62324 0x212f62e40 0x212f6b4ac 0x21319a114 0x21319ccd4) Failed to start extension com.me.MyApp.tunnel-extension: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.me.MyApp.tunnel-extension.apple-extension-service UserInfo={
1
0
1.3k
Aug ’19
Catalina Beta 7: FileWrapper error “you don’t have permission to view it”.
Starting with Catalina Beta 6 and now with Beta 7 I’m seeing the following error in my Mac app when I try to write an NSFileWrapper to disk:ObjC:-[NSFileWrapper regularFileContents] tried to read the file wrapper's contents lazily but an error occurred: The file “problem.txt” couldn’t be opened because you don’t have permission to view it.Swift:Error Domain=NSCocoaErrorDomain Code=257 The file “problem.txt” couldn’t be opened because you don’t have permission to view it. UserInfo={NSFilePath=/Users/test/Library/Caches/03B8158C-31C2-4CCA-8CCF-327E4EC7CCE3.bundle/problem.txtI can reproduce this in a sample app. Here is what the sample app does:(1) It creates the following sample folder: ~/Library/Caches/<UUID>/ test.txt problem.txt(2) It initializes a new NSFileWrapper with the folder.(3) It removes the child file wrapper “problem.txt” and adds it again (to simulate an update)(4) It writes the file wrapper to disk for the first time (this works)(5) Right away it writes the file wrapper to disk a
3
0
1.5k
Aug ’19
SiriKit stopped using Siri Dialog prompts (iOS13.1)
I'm losing my mind over this issue. I have been working with Siri Intents for a few days, and (rough patches aside) it's been working fine, and I'm using 'conversational' Siri to good effect. I tweaked a couple of intents yesterday, and then added a couple of new intents as well, and tested with the Shortcuts app, and they worked just fine.Today I tested the same functionality with Siri dialogs, and it's not working as expected. Basically, it ignores the Siri Dialog Prompt setting from the intents definition file, and instead gives me a generic What should <variablename> be?. I want it to say something else (like What should the list say?) but it ignores that. It even speaks out the variable name from intentsdefinition file, and not the 'display name'.Things I've tried:- added new intents- tried this on 2 different devices (including rebooting the device, doing clean builds and deleting derived data)- created a new intents definition file and copy-pasted the intents- created a new intents definition fil
10
0
4.5k
Sep ’19
iCloud Drive not working in Simulator (Xcode 11 GM)
I can't seem to get iCloud drive to work on the Simulator using the Xcode 11 GM. I've an app using CloudKit and I'm checking the ubiquityToken on the FileManager default to determin if iCloud is configured correctly, and it's returning nil.I have a simulator (iPad Pro 3rd Gen running iOS 13) which i have logged into with a valid iCloud account, and when I open the File app and select the iCloud Drive location I get a Turn on iCloud Drive messsage and button, which when clickedttakes me to the iCloud setting which shows everything logged in and iCloud Drive is switched on.I am getting the following error from my app in Xcode, which seems related,[ERROR] error while getting ubiquityIdentityToken: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 named com.apple.bird.token was invalidated from this process. UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.bird.token was invalidated from this process.}I've tried a couple of different iCloud accoun
1
0
2.8k
Sep ’19
Reply to "Error connecting back to host app" in Safari 13
I have similar problem with simple Safari Extension App.After Safari has been running for some time. On `send()` (button click in popover) 'SFSafariApplication.getAllWindows' stops working and completion handler is never fired. Console shows 'Error connecting back to host app: NSCocoaErrorDomain, code: 4099'.Edit: also 'SFSafariApplication.openWindow' not working after error Tested on Safari Technology Preview - Release 91 (Safari 13.1, WebKit 14609.1.3) MojaveSafariExtensionViewController.swift @IBAction func send(_ sender: Any) { self.count += 1 SFSafariApplication.getAllWindows { (windows) in for window in windows { window.getAllTabs { (tabs) in for tab in tabs { tab.getPagesWithCompletionHandler { (pages) in for page in pages ?? [] { page.dispatchMessageToScript(withName: test, userInfo: [count: self.count]) } } } } } } } @IBAction func open(_ sender: Any) { SFSafariApplication.openWindow(with: URL.init(string: https://google.com)!) { (window) in NSLog(opened) } }script.jsdocument.addEventListene
Topic: Safari & Web SubTopic: General Tags:
Sep ’19