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
Having issues with Unarchiving the data
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
1
0
2.7k
Oct ’20
Why is there an error when loading livePhoto in PHPicker without the photo library premissions?
hello,I am trying to figure out how to get livePhoto、gif and the picture on the icloud in PHPicker without the Photo Library permissions, but I get the error message like this : 2020-07-10 20:38:42.314255+0800 NewsInHouse[1307:315714] error = Error Domain=NSItemProviderErrorDomain Code=-1000 Cannot load representation of type com.apple.live-photo-bundle UserInfo={NSLocalizedDescription=Cannot load representation of type com.apple.live-photo-bundle, NSUnderlyingError=0x282049680 {Error Domain=NSCocoaErrorDomain Code=260 未能打开文件“7B1C8EE4-4A3E-4287-9369-8592943BC4AD.pvt”,因为它不存在。 UserInfo={NSURL=file:///private/var/mobile/Containers/Shared/AppGroup/3343D5E0-FD07-49AB-9131-3DADE85A46DC/File%20Provider%20Storage/7B1C8EE4-4A3E-4287-9369-8592943BC4AD.pvt, NSFilePath=/private/var/mobile/Containers/Shared/AppGroup/3343D5E0-FD07-49AB-9131-3DADE85A46DC/File Provider Storage/7B1C8EE4-4A3E-4287-9369-8592943BC4AD.pvt, NSUnderlyingError=0x2820042d0 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}}}}
2
0
2.4k
Oct ’20
Reply to XCode 11.7 & 12 Plug-In Fatal Error
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)
Oct ’20
Update an Existing Xcode Project Core Data with CloudKit & Manage Multiple Stores
Hi, I have.a project that uses CoreData and I want to add some of the data to iCloud to sync with a Watch app and I ticked the option for the Default configuration to use iCloud and It worked but now I don't want to include images in the cloud because it became too large so I Seperated the images into a different data thing and as per instructions here https://developer.apple.com/documentation/coredata/mirroring_a_core_data_store_with_cloudkit/setting_up_core_data_with_cloudkit I added a configuration Local and Cloud and change the code as below - original lazy var persistentContainer: NSPersistentContainer = { ttlet container = NSPersistentContainer(name: DataModel) ttcontainer.loadPersistentStores(completionHandler: { ttttstoreDescription, error in ttttif let error = error { ttttttprint(Could load data store: (error)) tttt } tt}) ttprint(Loaded data store: DataModel) ttreturn container }() I created two configurations as per the video and ticked use with iCloud on the one I would like to sync with iCloud. n
1
0
1.5k
Aug ’21
Apple Silicon (DTK) Xcode 12 GM overwrote private arm64 frameworks to x64
So I didn't read the instructions too hard to continue using Xcode beta. I installed Xcode 12 gm and now Xcode 12 Beta won't even run at all. Xcode reports 2 issues in the console [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: /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice Referenced from: /Applications/Xcode-beta.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore Reason: no suitable image found. Did find: /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice: mach-o, but wrong architecture /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice: mach-o, but wro
2
0
1k
Oct ’20
Image fails to open via Drag and Drop on iOS
I've got a SwiftUI app with the onDrop method on my View like this: .onDrop(of: [.image], delegate: myController) In an extension of my controller I conform to the DropDelegate and implement performDrop(info:) Here's my implementation: guard info.hasItemsConforming(to: [.image]) else { return false } let items: [NSItemProvider] = info.itemProviders(for: [.image]) guard let item: NSItemProvider = items.first else { return false } guard item.canLoadObject(ofClass: MPImage.self) else { return false } item.loadObject(ofClass: MPImage.self) { (reading, error) in guard error == nil else { return } guard let image: MPImage = reading as? MPImage else { return } self.didLoad(image: image) } The code compiles fine on iOS (tho not on macOS, see link) https://developer.apple.com/forums/thread/653934 So when I run the app on iOS, and drag an image from Photos and drop it on my app I get the following error: MyApp perform drop failed: Error Domain=NSItemProviderErrorDomain Code=-1000 Cannot load representation of type publ
2
0
5.3k
Sep ’20
Reply to Xcode fails to start Loading a plug-in failed.
Still no usable resolution from this group... looking for help. Having installed from this link: https://developer.apple.com/download/universal/ This version of Xcode 12.2 beta still gives the same error: Applications/Xcode-beta.app/Contents/MacOS/Xcode 2020-09-19 18:53:57.325 Xcode[4040:113313] [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 dlopenpreflight(/Applications/Xcode-beta.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore): 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: no suitable image found. Did find: /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice: mach-o, but wrong architec
Sep ’20
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
Reply to Xcode fails to start Loading a plug-in failed.
So after downloading and running the Xcode 12.2 beta from the developer.apple.com/download/universal. I'm still receiving the following error. So I will need some help: /Applications/Xcode-beta.app/Contents/MacOS/Xcode 2020-09-19 18:53:57.325 Xcode[4040:113313] [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 dlopenpreflight(/Applications/Xcode-beta.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore): 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: no suitable image found. Did find: /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice: mach-o, but wrong architecture /Library/Apple/System/Library/
Sep ’20
Can't debug Failed Shortcut Intent Launch.
I've been trying to use the console to debug a problem with my SiriKit Intent which I added to launch my app from short cuts. The Log messages are as follows: error 21:39:20.087846-0400 intents_helper +[INUIImageSizeProvider downscaledPNGImageForImage:size:error:] Non-fatal error: Error Domain=IntentsErrorDomain Code=6009 Scaled size is larger than image size UserInfo={NSDebugDescription=Scaled size is larger than image size} error 21:39:20.090408-0400 Shortcuts -[INCache cacheableObjectForIdentifier:] Unable to find cacheable object with identifier intents-remote-image-proxy:?proxyIdentifier=82C0975C-D3F9-69E5-6F55-7E4EBEE3F41A.png&storageServiceIdentifier=com.apple.Intents.INImageServiceConnection in cache. error 21:39:20.096812-0400 Shortcuts _INCExtensionManagerFetchMatchingSiriExtensionForIntent_block_invoke_2 Failed to find extension Error Domain=INExtensionMatchingErrorDomain Code=3001 (null) UserInfo={ExtensionPointName=com.apple.intents-service} error 21:39:20.100112-0400 Shortcuts -[WFAction run
7
0
5.4k
Sep ’20
Reply to Xcode fails to start Loading a plug-in failed.
The issue is I believe I attempted an upgrade and because I am using the new Apple chip CPU architecture, and not Intel, I have the wrong version. So the question is how do I get the Universal App Quick Start version back? Thanks, Carl /Applications/Xcode.app/Contents/MacOS/Xcode > Xcode12.0BugReport.09.19.2020 2020-09-19 14:38:08.058 Xcode[11382:191748] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.IDE.IDEiOSSupportCore (/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin), error = Error Domain=NSCocoaErrorDomain Code=3587 dlopenpreflight(/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore): Library not loaded: /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice Referenced from: /Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore Reason: no suitable image found. Did find: /System/Library/PrivateFrameworks/MobileDevice.framework/Ver
Sep ’20
How do you properly get Video Data from PHPicker?
Hello, I understand that PHPicker works by overlaying the users' library so that the developer doesn't need to ask for permission to get Images or Videos. The demo video very clearly showed how to get access to Images by getting UIImage using the canLoadObject(ofClass: ) method. However, there is no such call for video assets. I even tested all of the objects that are listed as implementers of the NSItemProviderReading protocol, and none of them worked, including the AVURLAsset, and AVFragmentedAsset which seemed like the most likely candidates. In the demo video it mentions that you can also get access to video data but there is no clear way to do that. I have found a few solutions floating around online that show them using the loadItem(forType: ) function as follows. itemProvider.loadItem(forTypeIdentifier: com.apple.quicktime-movie, options: nil) Then in the response they can get a URL and use the video that way. However, when I use that method to get the URL I then try and get the video data using Data(c
1
0
3.6k
Sep ’20
App build succeeded but can not run
This project writes with Objective-C, it can build succeeded, but not run. It will show Details The file “Service Reports” 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/USERNAME/Desktop/ServiceReportApp64Bit/DerivedData/Service Reports/Build/Products/Debug-iphonesimulator/Service Reports.app; }- The operation couldn’t be completed. Permission denied Domain: NSPOSIXErrorDomain Code: 13 Failure Reason: Permission denied-. I checked the FilePath provieded, the .app file displays with a white circle/slash over the icon. And when I double click this file it will show You can't open the application Service Report because it may be damaged or incomplete. Any idea guys? Thanks
2
0
2.4k
Sep ’20