Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

CXCallDirectoryExtensionContextDelegate doesn't handle errors
Hello! I know that nobody here will answer this question, but I will try.I have Call Directory Extension with default error handlercontext.delegate = self extension CallDirectoryHandler: CXCallDirectoryExtensionContextDelegate { func requestFailed(for _: CXCallDirectoryExtensionContext, withError error: Error) { // An error occurred while adding blocking or identification entries, check the NSError for details. // For Call Directory error codes, see the CXErrorCodeCallDirectoryManagerError enum in . // // This may be used to store the error details in a location accessible by the extension's containing app, so that the // app may be notified about errors which occured while loading data even if the request to load data was initiated by // the user in Settings instead of via the app itself. NSLog(Callkit error: (error.localizedDescription)) } }When I add data with unsorted numbers I have an error. In console I see next:com.apple.CallKit.CallDirectory Cannot add identification phone number *** since it is less
2
0
1.4k
Jan ’19
iOS-on-macOS app receipt not saved in recent macOS versions
Dear All, My iOS app used to work OK on macOS, but since a macOS update in-app purchases have stopped working. It seems that the storekitagent process is no longer able to save the receipt to the filesystem. Here is what I see in the system log after I do a refresh receipt: default 22:03:47.822657+0100 storekitagent [58C16E76_SK1] Writing receipt (83905 bytes) to file:///Users/phil/Library/Containers/0407ACA7-9EE2-4E32-AA3E-101A1B38EE70/Data/StoreKit/sandboxReceipt error 22:03:47.823539+0100 kernel Sandbox: storekitagent(1382) deny(1) file-write-unlink /Users/phil/Library/Containers/0407ACA7-9EE2-4E32-AA3E-101A1B38EE70/Data/StoreKit/sandboxReceipt error 22:03:47.824306+0100 storekitagent [58C16E76_SK1] Error writing receipt (83905 bytes) to file:///Users/phil/Library/Containers/0407ACA7-9EE2-4E32-AA3E-101A1B38EE70/Data/StoreKit/sandboxReceipt: Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file “sandboxReceipt” in the folder “StoreKit”. UserInfo={NSFilePath=/Users/phil
3
0
961
Jun ’23
scntool Command Line Tool Issue (iOS 16 Xcode 14)
I am attempting to build an AR app using Storyboard and SceneKit. When I went to run an existing app I have already used it runs but nothing would happen. I thought this behavior was odd so I decided to start from scratch on a new project. I started with the default AR project for Storyboard and SceneKit and upon run it immediately fails with an unwrapping nil error on the scene. This scene file is obviously there. I am also given four build time warnings: Could not find bundle inside /Library/Developer/CommandLineTools failed to convert file with failure reason: *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0] Conversion failed, will simply copy input to output. Copy failed file:///Users/kruegerwilliams/Library/Developer/Xcode/DerivedData/ARtest-bjuwvdjoflchdaagofedfxpravsc/Build/Products/Debug-iphoneos/ARtest.app/art.scnassets/ship.scn -> file:///Users/kruegerwilliams/Library/Developer/Xcode/DerivedData/ARtest-bjuwvdjoflchdaagofedfxpravsc/Build
2
0
1.9k
Jun ’23
Renaming a UIDocument in iCloud
I'm struggling to figure out how to rename an instance of a UIDocument subclass in an iCloud folder. I've tried saving the document with the new URL…func renameDocument(to name: String) { let targetURL = document.fileURL.deletingLastPathComponent().appendingPathComponent(name) .appendingPathExtension(<extension>) document.save(to: targetURL, for: .forCreating) { success in guard success else { // This always fails return } // Success } }…but this fails with…Error Domain=NSCocoaErrorDomain Code=513 “<new-file-name>” couldn’t be moved because you don’t have permission to access “<folder>”. UserInfo={NSSourceFilePathErrorKey=/private/var/mobile/Containers/Data/Application/1A9ACC2B-81EF-4EC9-940E-1C129BDB1914/tmp/(A Document Being Saved By My App)/<new-file-name>, NSUserStringVariant=( Move ), NSDestinationFilePath=/private/var/mobile/Library/Mobile Documents/com~apple~CloudDocs/<folder>/<new-file-name>, NSFilePath=/private/var/mobile/Containers/Data/Application/1A9ACC
Topic: UI Frameworks SubTopic: UIKit Tags:
6
0
6.9k
Jun ’23
Reply to Help on how to read files names from a directory
There’s something wonky about the code you’re showing. You seem to be calling a function, listDir(dir:), but you’re not showing the definition of that function. Regardless, you won’t be able to achieve your goal. Swift Playgrounds runs your app is a sandbox and that sandbox prevents access to most stuff on the user’s hard disk. Consider this snippet: import Foundation let fileManager = FileManager.default let libDir = try fileManager.url(for: .libraryDirectory, in: .userDomainMask, appropriateFor: nil, create: true) print(libDir.path) It prints: /Users/quinn/Library/Containers/com.apple.PlaygroundsMac.ExecutionExtension/Data/Library which is the library directory associated with your sandbox. Now consider this: import Foundation let fileManager = FileManager.default let realLibDir = URL(fileURLWithPath: /Library/Logs/DiagnosticReports) do { let contents = try fileManager.contentsOfDirectory(at: realLibDir, includingPropertiesForKeys: nil) print(contents) } catch { print(error) } It fails with: Error Domain=NSCocoaErrorDomain
Topic: App & System Services SubTopic: Core OS Tags:
May ’23
Field '___modTime' is not marked sortable
I'm using NSPersistentCloudKitContainer and I'm getting warnings in the console saying: CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _scheduleAutomatedExportWithLabel:activity:completionHandler:]_block_invoke(3457): - Finished automatic export - AppActivationExport - with result: storeIdentifier: F2C60E7A-CEC4-44F2-B467-7324C065AD33 success: 0 madeChanges: 0 error: Error Domain=NSCocoaErrorDomain Code=134406 Request '1FA53D40-43FB-4751-8719-0D26393D5301' was aborted because the mirroring delegate never successfully initialized due to error: UserInfo={NSLocalizedFailureReason=Request '1FA53D40-43FB-4751-8719-0D26393D5301' was aborted because the mirroring delegate never successfully initialized due to error: } I have added indexes for recordName and modifiedTimestamp to all my records as queryable as per the instructions.
2
0
1k
May ’23
Public Database Cloud Kit Missing Queryables
Hi there, Following this tutorial for my own project: https://developer.apple.com/videos/play/wwdc2020/10650/?time=319 I noticed that I cannot mark modifiedAt index as queriable. It doesn't appear in a list, and I heard that it was renamed to modifiedTimestamp (can someone confirm?) Although I've managed to upload records to the public DB, my fetching has been unsuccessful. I'm getting this error: CoreData: warning: CoreData+CloudKit: -[NSCloudKitMirroringDelegate finishedAutomatedRequestWithResult:](3372): Finished request ' 33AA10FE-C31F-44BB-A693-D3DC06604D18' with result: storeIdentifier: 65A47C2C-8591-4404-B39C-44635142C32E success: 0 madeChanges: 0 error: Error Domain=NSCocoaErrorDomain Code=134406 Request '33AA10FE-C31F-44BB-A693-D3DC06604D18' was aborted because the mirroring delegate never successfully initialized due to error: UserInfo={NSLocalizedFailureReason=Request '33AA10FE-C31F-44BB-A693-D3DC06604D18' was aborted because the mirroring delegate never successfully initialized due to e
1
0
861
May ’23
not sure how to categorize: Google's adMob demo won't work for me,
Hi, I'm not sure how best to even ask this here... I think it's an Xcode setup problem... I was trying to integrate ads into my game and am getting what seem like a set of network related errors, from Apple and Google components. The issue is not with the Google demo project RewardedVideoExample; Google support says it works for them. Did I perhaps remove some Xcode component I need, or mess up some other setting? The messages I get: 2022-08-06 09:08:51.804890-0700 RewardedVideoExample[24891:803454] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process. UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated: failed at lookup with error 3 - No such process.} [[I got a bunch of these!]] 2022-08-06 09:08:51.901250-0700 RewardedVideoExample[24891:803452] - [I-ACS0250
2
0
1.3k
May ’23
xcodebuild "Your session has expired" while trying convert xarchive to .ipa file
I am trying to create a build server for my CICD pipeline. The problem is whenever I'm trying to run the following command: xcodebuild -exportArchive -archivePath /Users/ec2-user/CICD/Project_path/build/ios/archive/Runner.xcarchive -exportPath /users/ec2-user/CICD/Executions/Build_16-03-22_9:50:45 -exportOptionsPlist /users/ec2-user/CICD/ExportOptions.plist for generating a .ipa file the Xcode is repeatedly trying the following process and randomly he succeeds/failed. These errors could return Succeed after a few times that the Xcode is trying to sign and sometimes will fail. I am using an AWS instance with 5GB bandwidth so I don't think is a plausible connectivity timeout. 2022-03-16 10:04:28.689 xcodebuild[39983:283429] XType: failed to connect - Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process. UserInfo={NSDebugDescription=The connection to service named com.apple.fonts was invalidated: failed
5
0
5.2k
May ’23
bookmarkDataWithOptions yields: NSCocoaErrorDomain Code=256
When calling:NSURL* aURL = [NSURL URLByResolvingBookmarkData:secBookmark options:options relativeToURL:nil bookmarkDataIsStale:&isStale error:&err];isStale is YES.When attempting to get a fresh bookmark, calling:NSData* secureBookmark = [aURL bookmarkDataWithOptions:options includingResourceValuesForKeys:nil relativeToURL:nil error:&err];produces:2019-03-11 15:53:51.603133-0700 XXX[534:8439] Error: Error Domain=NSCocoaErrorDomain Code=256 Could not open() the item UserInfo={NSURL=file:///Users/oldmancoyote1/Desktop/E%20Projects%20folder/Drawing/Drawing%201%20.pdf, NSDebugDescription=Could not open() the item}If I ignore isStale, there appears to be no problem. Can I safely ignore isStale?
Topic: UI Frameworks SubTopic: AppKit Tags:
2
0
1.8k
Apr ’23
M1 Xcode 12.5 can't paste clipboard
I can't paste anything into my simulator since switching to an M1 MacMini. I've tried ticking and unticking automatically sync clipboard. I've also tried using the send clipboard option manually, but no success. I can seem to paste into safari on the simulator, but not any app I create in Xcode. I've tried multiple and even creating a new one fresh. I get the below snippet in the console complaining its unable to access some file. Looks like its an Xcode / M1 bug. I'm not running via rosetta. Does anyone know how to fix this, its become a real blocker for me testing my app 2021-06-11 12:00:28.656521+0100 camlKit-Example[3736:123707] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 (null) UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x15dde658 ed2a1267 ab2496d7 34f186ad ... ec431c65 02d68f35 }, _LSLine=409, WrongSimulatorHash={length = 32, bytes = 0xaf25dda9 e45baa35 610eaabd 5bc09901 ... 9cbe61f3 81d7b9d9 }} 202
59
0
36k
Apr ’23
Not able to see iOS 15 avatar only when I release my app
I’ve faced the following issue, and shortly the notification picture does not show up with iOS 15 under some conditions. It seems that during INImage processing for INSendMessageIntent, it tries to generate an internal URL with intents-remote-image-proxy if the given source is not a remote URL. But proper URL doesn’t seem to be generated in some cases and the expected image doesn’t show up. Here the weirdest part for me is that the problem only happens when I release my app (for example to the TestFlight), and with the XCode debug build my implementation works perfectly. [This is the error trace when I release the app] default 16:29:26.149259+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': sender image _uri: (null) default 16:29:26.149777+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': url created from image's _identifier default 16:29:26.149823+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': contentURL scheme does no
2
0
2.7k
Apr ’23
Reply to Sandboxed app has access to icloud drive without entitlements
Can you be more precise about how you came to this conclusion? I tried this here in my office and it worked… well… failed… as I expected. Specifically: On macOS 13.2.1, I put a test.txt file at the root of my iCloud Drive. In Xcode 14.3, I created a new project with App Sandbox enabled. I wired up a button to this code: do { print(will read) let u = URL(fileURLWithPath: /Users/quinn/Library/Mobile Documents/com~apple~CloudDocs/test.text) let s = try String(contentsOf: u, encoding: .utf8) print(did read, contents: (s)) } catch { print(did not read, error: (error)) } I ran the app and clicked the button. The app printed: will read did not read, error: Error Domain=NSCocoaErrorDomain Code=257 The file “test.text” couldn’t be opened because you don’t have permission to view it. UserInfo={NSFilePath=/Users/quinn/Library/Mobile Documents/com~apple~CloudDocs/test.text, NSUnderlyingError=0x6000005f6910 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}} The underlying error, EPERM, is exactly w
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’23
Core Data + Cloud Kit - Updating to macOS 13.3 causing migration fail
Hi there, Had no issues with Core Data and Cloud Kit syncing. Then, when I updated my macOS to 13.3, I am getting the following error from cloud kit: reason=Can't find or automatically infer mapping model for migration, NSUnderlyingError=0x60000367b330 {Error Domain=NSCocoaErrorDomain Code=134190 (null) UserInfo={entity=Item, property=image, Reason=Unable to use inferred mapping to move external reference into store.}}} The reason I think it's due to the macOS update is because my cloud kit initialization and syncing has no trouble on my phone simulator or physical devices. Also, I didn't change my model in any significant way, and checking out old versions of my code lead to the same error. Has anyone else experienced issues with Core Data migration on macOS 13.3? Or can anyone explain why I might see this issue on macOS specifically?
1
0
884
Apr ’23
Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.assessmentagent"
I'm trying to use the Assessment Configuration with the most recent changes introduced. The entitlement that the app is using is: com.apple.developer.edu-assessment-mode If the entitlement is not correct, then the app won't start because the provisioning profile won't match. Once the application tries to start a session I get the following error: [16777:98639] [Core] Encountered error running activation: com.apple.assessment.assessmentMode.enable. Error: NSError: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.assessmentagent UserInfo={NSDebugDescription=connection to service named com.apple.assessmentagent} Desc : Couldn’t communicate with a helper application. Sugg : Try your operation again. If that fails, quit and relaunch the application and try again. Domain : NSCocoaErrorDomain Code : 0x1001 (4097) Extra info: { NSDebugDescription = connection to service named com.apple.assessmentagent; } Error: Error Domain=AEAssessmentErrorDomain Code=1 (null) UserInf
2
0
6.5k
Apr ’23