Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Reply to Issue with PHPicker
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:
Oct ’20
Reply to PHPickerViewController fails to load image
Same problem here. I'm running in a iPhone X with iOS 15.3.1 I have two photos in the same folder. The first fails when result.itemProvider.loadObject(ofClass: UIImage.self) [0] (null) public.jpeg : /private/var/mobile/Containers/Shared/AppGroup/F925A8FA-C8EC-42CB-8990-0370E73A9808/File Provider Storage/photospicker/version=1&uuid=3034711E-F03B-44CD-B180-659775A56EA6&mode=current.jpeg The second is ok. [0] (null) public.jpeg : /private/var/mobile/Containers/Shared/AppGroup/F925A8FA-C8EC-42CB-8990-0370E73A9808/File Provider Storage/photospicker/version=1&uuid=299A6E28-21CC-440E-8C1B-A05F479081C0&mode=current.jpeg I have tried also with result.itemProvider.loadFileRepresentation(forTypeIdentifier: representation), with UTType.jpeg.identifier, and the same error. PHPickerResult(itemProvider: {types = ( public.jpeg )}, assetIdentifier: Optional(3034711E-F03B-44CD-B180-659775A56EA6/L0/001)) 2022-02-24 23:45:49.484182+0100 App[1344:394073] [claims] Upload preparation for claim 8E1CBDF5-66F2-4453-87
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’22
Problems with initializing UIDocumentPickerViewController after updating to iOS11 beta 5
After updating to iOS11 beta 5 initializing an UIDocumentPickerViewController:let documentPicker = UIDocumentPickerViewController(documentTypes: [public.zip-archive], in: .import)shows these messages at runtime:[DocumentManager] Failed to get the remote browser View Controller with error (Error Domain=NSCocoaErrorDomain Code=4097 connection from pid 508 UserInfo={NSDebugDescription=connection from pid 508}) [DocumentManager] Failed to get the service proxy object with error Error Domain=NSCocoaErrorDomain Code=4099 The connection from pid 508 was invalidated. UserInfo={NSDebugDescription=The connection from pid 508 was invalidated.} [DocumentManager] The view service did terminate with error: Error Domain=_UIViewServiceInterfaceErrorDomain Code=3 (null) UserInfo={Message=Service Connection Interrupted}The app is still running. But when I try to present the documentPicker it ends up with a white screen and a endless loading activityIndicator.
1
0
1.6k
Aug ’17
Log Messages after upgrading to Xcode 15.3
Hello everyone, after upgrading to Xcode 15.3 I noticed several log messages that weren't present in my project before. Here are some examples: BOOL _NSPersistentUIDeleteItemAtFileURL(NSURL *const __strong) Failed to stat item: file:///Users/ ... savedState/restorecount.plist [SendServerMessage](com.apple.mobileasset.autoasset) ErrorHandler: Calling provided reply completion on connection error Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.mobileasset.autoasset was invalidated: failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDescription=The connection to service named com.apple.mobileasset.autoasset was invalidated: failed at lookup with error 159 - Sandbox restriction.} for connection connection to service named com.apple.mobileasset.autoasset MA-auto{_failedLockContent} | failure reported by server | error:[NSCocoaErrorDomain:4099] I'm at a loss here. Can I treat these messages as log noise and safely ignore them or is there a
3
0
3k
Mar ’24
reason=Container is forked
Hi There,I've been working at porting my Core Data + iCloud iOS 8 app to iOS9 and I'm getting the following from the console. No data is coming down from the cloud. Any ideas on how to fix this.Error Domain=NSCocoaErrorDomain Code=134302 The operation couldn’t be completed. (Cocoa error 134302.) UserInfo=0x7f8e5bc83d90 {reason=Container is forked}
1
0
312
Jun ’15
Reply to FileManager.copyItem Permission Bug in iOS 18.1.1 with iCloud Shared Folders
After updating to iOS 18.2, the issue I’ve been experiencing remains unresolved. To ensure the issue wasn’t related to the temporary folder permissions, I took the following steps: Created a custom temporary folder inside the app’s existing temporary folder. Used the UIDocumentPickerViewController to import a file and copied it into the newly created custom temporary folder. Unfortunately, this approach did not resolve the problem. Even after successfully copying the file into the custom folder, I am still unable to delete it. You have to understand that when I import a file using the UIDocumentPickerController, I expect the provided API to enable me to successfully copy the returned file into the app sandbox in such a way that I am then able to delete it. This operation appears to work correctly. do { let securityScoped = sourceItemURL.startAccessingSecurityScopedResource() try FileManager.default.copyItem(at: sourceItemURL, to: temporaryItemURL) print(INFO: Source item copied to temporary directory successf
Topic: App & System Services SubTopic: Core OS Tags:
Dec ’24
iOS 9 PHAssetChangeRequest creationRequestForAssetFromVideoAtFileURL: fails with error code -1
UIImage *image = [UIImage imageNamed:@bg.png]; NSData *imageData = UIImageJPEGRepresentation(image, 1.0); [[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{ PHAssetCreationRequest *request = [PHAssetCreationRequest creationRequestForAsset]; [request addResourceWithType:PHAssetResourceTypePhoto data:imageData options:nil]; } completionHandler:^(BOOL success, NSError *error) { NSLog(@); }];This code works well with iOS 8.x. But its fails with error code -1 in iOS 9.x.The error is NSCocoaErrorDomain Code=-1 ERROR: PLXPCDictionarySetArray unable to serialize array ( { creationOptions = <null>; data = <ffd8ffe0 ………>; fileURL = <null>; type = 1; }) error Error Domain=NSCocoaErrorDomain Code=3851 Property list invalid for format: 200 (property lists cannot contain objects of type 'CFNull') UserInfo={NSDebugDescription=Property list invalid for format: 200 (property lists cannot contain objects of type 'CFNull')}Any idea about this behaviour in iOS 9..? Any help is appreciated
3
0
1.8k
Nov ’16
Open UIManagedDocument in a QLThumbnailProvider
Hello there, I'm using a combination of UIDocumentBrowserViewController + UIManagedDocument to manage documents, store and sync them with iCloud. Right now I'm trying to add support for thumbnails (custom type) using QuickLookThumbnailing framework. In a subclass of QLThumbnailProvider when trying to open the UIManagedDocument, Xcode returns an error from within thumbnail target: [error]addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (513) Also UIManagedDocument itself throws an error Error Domain=NSCocoaErrorDomain Code=513 The file couldn’t be saved because you don’t have permission.. The cocoa error 513 is about no writing permissions, but I'm not sure what exactly it's tried to be written. In the thumbnail extension I just init the document with the URL that system send via the system method. Also I do not change anything in the document explicitly. I'm not sure what I'm missing, I took a look over the Particles example from Apple engineers,
0
0
796
Aug ’21
Send Local Notifications from Endpoint Security Extension
Is it possible to send Local Notifications from Endpoint Security Extension ? When I was calling below block of code immediately after confirming that process was started center requestAuthorizationWithOptions:options completionHandler:^(BOOL granted, NSError * _Nullable error) center addNotificationRequest:request withCompletionHandler:^(NSError * _Nullable error) getting below error Requesting authorization failed with error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.usernotifications.usernotificationservice was invalidated from this process. UserInfo={NSDebugDescription=The connection to service named com.apple.usernotifications.usernotificationservice was invalidated from this process.} Adding notification request failed with error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.usernotifications.usernotificationservice was invalidated: failed at lookup with error 3 - No such process. UserInfo={NSDebugDescript
0
0
472
Sep ’23
setCodeSigningRequirement and Security Agent Plugins
I have a security agent plugin that uses NSXPCConnection to communicate with a launch daemon. This works well, but I want to make sure the launch daemon has not been compromised. I added code to call setCodeSigningRequirement in my module that handles the client side of the NSXPCConnection. However, when used in the security agent plugin, remoteObjectProxyWithErrorHandler reports an error NSCocoaErrorDomain Code=4102 The code signature requirement failed. If I call my xpc module from a test application, I do not receive an error and everything works as expected. I have tried different code signing requirements. Even with just anchor apple generic I still get the error. The console log shows two entries of interest com.apple.SecurityAgentHelper.arm64 default 09:13:29.677567-0500 SecurityAgentHelper-arm64 EOGSecurityServiceClient biometricAuthorization remote proxy error: Error Domain=NSCocoaErrorDomain Code=4102 The code signature requirement failed. UserInfo={NSDebugDescription=The code sign
4
0
965
Aug ’24
Reply to Xcode fails to start Loading a plug-in failed.
I think we have the same problem... I have the Apple Developer Transition Kit (Apple/Arm Silicon) with macOS Big Sur 11.0 Beta (20A5299w) and I am unable to get Xcode to work at all. I tried to install Xcode, but it hung during the Installing Components phase when I first opened it. I then forcefully restarted the computer and now when I open Xcode I see the message Loading a plug-in failed. with the text: The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled.. Opening it via the Terminal.app shows: /Applications/Xcode-beta.app/Contents/MacOS/Xcode ; exit; 2020-09-20 12:46:51.273 Xcode[637:9847] [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=3587 dlopen_preflight(/Applications/Xcode-beta.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore): Library not loaded
Sep ’20
safari-web-extension-converter Error Code=642 & Code=30
Error instantiating template in Xcode: Error Domain=NSCocoaErrorDomain Code=642 You can’t save the file “macOS (Extension)” because the volume is read only. UserInfo={NSFilePath=/YOU CAN READ IT Dyslexia won't stop you!/macOS (Extension), NSUnderlyingError=0x6000009a4270 {Error Domain=NSPOSIXErrorDomain Code=30 Read-only file system}}. Could not create project.
0
0
570
May ’22
Reply to Extension frequently crashes for a large number of users
If revevant, I'm seeing these issues while debugging in Xcode, however they may be basic/expected type errors as I am not able to reproduce the issue on my machine anyway.objc[99539]: Class AMSupportURLConnectionDelegate is implemented in both /System/Library/PrivateFrameworks/OSPersonalization.framework/Versions/A/OSPersonalization (0x7fff8b54cb68) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103cfb228). One of the two will be used. Which one is undefined. objc[99539]: Class AMSupportURLSession is implemented in both /System/Library/PrivateFrameworks/OSPersonalization.framework/Versions/A/OSPersonalization (0x7fff8b54cbb8) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103cfb278). One of the two will be used. Which one is undefined. 2020-05-21 11:09:44.426694-0400 Safari[99539:37398753] Metal API Validation Enabled 2020-05-21 11:09:46.158099-0400 Safari[99539:37398994] Bogus event on event stream listener. 2020-05-21 11:09:46
Topic: Safari & Web SubTopic: General Tags:
May ’20
SimpleWatchConnectivity sample - TransferFile fails
When launching the SimpleWatchConnectivity sample in a simulator (iOS 18.2 + watchOS 11.2), almost all the functionality works, but TransferFile does not work. The error is the following: -[WCFileStorage persistOutgoingFileTransfer:] error serializing file transfer due to Error Domain=NSCocoaErrorDomain Code=4866 Caught exception during archival: This object may only be encoded by an NSXPCCoder. How can it be fixed or worked around?
1
0
560
Dec ’24
URL init from bookmark throws with file doesn't exist.
I just created a url bookmark (to be saved to db) and immediately read the bookmark afterwards. This line throws an error Error Domain=NSCocoaErrorDomain Code=4 The file doesn’t exist. let url = try URL( resolvingBookmarkData: bookmark, options: .withoutUI, bookmarkDataIsStale: &isStale ) This works perfectly fine in iOS 13, but the error throws in 14b3, did something change, or is this a beta bug?
3
0
2k
Jul ’20