Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Reply to Core ML Model Deployment can not upload mlarchive file,InvalidArgumentError: Unable to unzip MLArchive
MLModelCollection.beginAccessing(identifier: Collection Name) { result in var modelURL: URL? switch result { case .success(let collection): print(collection) modelURL = collection.entries[io.aben.animegan2face.v1]?.modelURL case .failure(let error): print(error) } print(modelURL as Any) } Got failure error: MLModelCollection: namespace (animegan2face_paint_512_v2) registration failed. Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.triald.namespace-management was invalidated: failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDescription=The connection to service named com.apple.triald.namespace-management was invalidated: failed at lookup with error 159 - Sandbox restriction.} Error Domain=com.apple.CoreML Code=10 Failed to begin access for model collection with identifier 'animegan2face_paint_512_v2': invalid identifier UserInfo={NSLocalizedDescription=Failed to begin access for model collection with identifier 'animegan2face_paint_512_v2': i
Topic: Machine Learning & AI SubTopic: Core ML Tags:
Jan ’23
Weird NSCocoaErrorDomain errow when trying to autorize Screen Time API
Hello, we have rare case of AuthorizationCenter.shared.requestAuthorization(for: .individual) failing to autorize user on real device - iPhone XR (iOS 16.1.2). It does not throw the standard FamilyControlsError which we are handling, but NSCocoaErrorDomain. This is the entire po description: Error Domain=NSCocoaErrorDomain Code=4864 The given data was not a valid property list. UserInfo={NSCodingPath=(), NSDebugDescription=The given data was not a valid property list., NSUnderlyingError=0x283af4d80 {Error Domain=NSCocoaErrorDomain Code=3840 Cannot parse a NULL or zero-length data UserInfo={NSDebugDescription=Cannot parse a NULL or zero-length data}}} The localized one says: The data couldn’t be read because it isn’t in the correct format. This sounds like some error deep in iOS. The testing device has Apple ID logged in and uses passcode. Anything we can do on our end to solve this issue?
3
0
2.1k
Jan ’23
NSCocoaErrorDomain Code=134092 When Updating ContactsError, and Error "Attempt to read notes by an unentitled app" while I am not request for notes
Hi, I'm writing a command line program with Swift Package Manager that uses Contacts API to automatically add phonetic names for the contacts. However, I found I was unable to do so for contacts that has notes. First, when I was trying to enumerate the contacts, there is a strange error output: 2023-01-22 18:58:36.085525+0800 PhoneticNames[18591:98356] [core] Attempted to register account monitor for types client is not authorized to access: {( com.apple.account.CardDAV, com.apple.account.Exchange, com.apple.account.LDAP )} 2023-01-22 18:58:36.085580+0800 PhoneticNames[18591:98356] [accounts] CNAccountCollectionUpdateWatcher 0x6000003ccc40: Store registration failed: Error Domain=com.apple.accounts Code=7 (null) 2023-01-22 18:58:36.085606+0800 PhoneticNames[18591:98356] [accounts] CNAccountCollectionUpdateWatcher 0x6000003ccc40: Update event received, but store registration failed. This event will be handled, but the behavior is undefined. 2023-01-22 18:58:36.136236+0800 PhoneticNames[18591:98344] [api] Attem
2
0
2.1k
Jan ’23
Reply to Crash on libc++abi.dylib
Log: Unhandled error (NSCocoaErrorDomain, 256) occurred during faulting and was thrown: Error Domain=NSCocoaErrorDomain Code=256 無法打開檔案「Objects.sqlite」。 UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/xxxxxxxxxxxx/Library/Caches/com.xxx.xxxxxx.GMSCacheStorage/GMSCacheStorage-Objects/Objects.sqlite, NSSQLiteErrorDomain=14} me too,look like Google Map SDK or Firebase SDK .
Topic: App & System Services SubTopic: Core OS Tags:
Jan ’23
pkg file have permission issues copying Bom file.
Hi, I've made a pkg installation file that usually works. However, for some setups I gets the following failure after postinstall finish (return 0) 2023-01-12 10:52:00-08 ESXBigSurVM-5 package_script_service[815]: Responsibility set back to self. 2023-01-12 10:52:00-08 ESXBigSurVM-5 installd[781]: PackageKit: Writing receipt for com.myprod.mycomp to / 2023-01-12 10:52:00-08 ESXBigSurVM-5 install_monitor[814]: Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr 2023-01-12 10:52:01-08 ESXBigSurVM-5 installd[781]: PackageKit: releasing backupd 2023-01-12 10:52:01-08 ESXBigSurVM-5 installd[781]: PackageKit: allow user idle system sleep 2023-01-12 10:52:01-08 ESXBigSurVM-5 installd[781]: PackageKit: Cleared responsibility for install from 773. 2023-01-12 10:52:01-08 ESXBigSurVM-5 installd[781]: PackageKit: Cleared permissions on Installer.app 2023-01-12 10:52:01-08 ESXBigSurVM-5 installd[781]: PackageKit: Install Failed: Error Domain=NSCocoaErrorDomain Code=513 You don't have permis
0
0
1.6k
Jan ’23
Cannot use PHPickerViewController to load mpeg-4 video
I'm trying to use PHPickerViewController to load video from user's photo library. Here is my code: func videoSelectorAskForSelectFromAlbum(_ selector: VideoSelector) { var config = PHPickerConfiguration(photoLibrary: PHPhotoLibrary.shared()) config.selectionLimit = 1 config.filter = .videos config.preferredAssetRepresentationMode = .compatible let picker = PHPickerViewController(configuration: config) picker.delegate = self present(picker, animated: true) } func picker(_ picker: PHPickerViewController, didFinishPicking results: [PHPickerResult]) { guard results.count == 1 else { picker.dismiss(animated: true) return } let provider = results[0].itemProvider guard let identifier = provider.registeredTypeIdentifiers.first, provider.hasItemConformingToTypeIdentifier(identifier) else { picker.dismiss(animated: true) return } picker.dismiss(animated: true) { [self] in // provider.loadFileRepresentation cause error videoLoadingProgress = provider.loadFileRepresentation(forTypeIdentifier: identifier) { url, err in pr
2
0
1.8k
Jan ’23
What is the error?
What is the error in this code? @main struct CollectionManagerApp: App { init() { do { var bo: ObjCBool = true let library = try FileManager().url(for: .applicationSupportDirectory, in: .userDomainMask, appropriateFor: nil, create: false).appending(path: CollectionManager) let database = library.appendingPathComponent(DataBase.plist) if !FileManager().fileExists(atPath: library.absoluteString) { try FileManager().createDirectory(at: library, withIntermediateDirectories: false) } if !FileManager().fileExists(atPath: database.absoluteString) { FileManager().createFile(atPath: database.absoluteString, contents: nil) print(OK) } } catch { print(Init Error: (error)nEND) } } var body: some Scene { WindowGroup { ContentView() } } } The error: Init Error: Error Domain=NSCocoaErrorDomain Code=516 The file “CollectionManager” couldn’t be saved in the folder “Application Support” because a file with the same name already exists. UserInfo={NSFilePath=/Users/gattino09/Library/Application Support/CollectionManager
0
0
745
Jan ’23
Error Domain=NSCocoaErrorDomain Code=257 "The file couldn’t be opened because you don’t have permission to view it"
Hi! I am facing this strange error in my computer. I first happen to see this on some CXTest while running some snapshot tests and all files that where not created by me couldn't be opened. I tested it on a playground and keeps failing to get de contents of the file using the Data method. I did it just to check if the problem was on the project configurations but the problem remains. My playground is just: import Foundation let fileUrl = URL(fileURLWithPath: MYPATH, isDirectory: false) let data = try Data(contentsOf: fileUrl) The path is correct, the file exists and thorws: Playground execution terminated: An error was thrown and was not caught: Error Domain=NSCocoaErrorDomain Code=257 The file “file.png” couldn’t be opened because you don’t have permission to view it. UserInfo={NSFilePath=MYPATH.png, NSUnderlyingError=0x600000536700 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}}``` I run ls -la over the files that are being opened and those that aren't, but the permissions over al
2
0
2.5k
Jan ’23
How can i read NFC tag Data?
i want to fetch data from NFC tag and open App Clip i preferred link for NFC data reader but still my issue was not solve output like: NFC Ready: false Error Domain=NFCError Code=2 Missing required entitlement UserInfo={NSLocalizedDescription=Missing required entitlement} 2023-01-04 18:46:48.525435+0530 TapnClip[11544:7498529] [Default] Error requesting calls from host: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.callkit.callcontrollerhost UserInfo={NSDebugDescription=connection to service named com.apple.callkit.callcontrollerhost} Message from debugger: Terminated due to signal 9 can anyone help me to solve issue Thank you for support!
0
0
763
Jan ’23
Parser Json with Single Quote
Hi. I am having issues with json parsing. all my source data use double quote except for one. here is the sample do { let json = [['16772', 'Cebu', 'Philippines']] if let jsonArray = try JSONSerialization.jsonObject(with: Data(json.utf8), options: []) as? [[Any]] { print(Hello World) } } catch { print(error) } if the json string is let json = [[16772, Cebu, Philippines]] it works ok. but if it is single quote, then it gives out the error message Error Domain=NSCocoaErrorDomain Code=3840 Invalid value around line 1, column 2. UserInfo={NSDebugDescription=Invalid value around line 1, column 2., NSJSONSerializationErrorIndex=2} What am i missing to enable parsing single quote normally? Thoughts?
2
0
1.9k
Dec ’22
Frequent Appear Download did fail: BAManifestDownload Error Domain=NSURLErrorDomain Code=-999 "cancelled"
Frequent Appear Download did fail: BAManifestDownload Error Domain=NSURLErrorDomain Code=-999 cancelled , How to resolve this error ? Here is Logs: Dec 30 11:16:02 backgroundassets.user[288] : Failed to send -[BADownloaderExtensionProxy sendAuthenticationChallenge:download:completionHandler:]_block_invoke for: com.xx.BADemoserror: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service with pid 1999 named com.xx.BADemos.extension was invalidated from this process. UserInfo={NSDebugDescription=The connection to service with pid 1999 named com.xx.BADemos.extension was invalidated from this process.} Dec 30 11:16:02 backgroundassets.user[288] : Cannot message extension for 'com.xx.BADemos' to answer auth challenge, canceling challenge for download: BAManifestDownload (0xd5e839fc0) - com.xx.BADemos.Manifest-B57DC493-0E76-49A0-9429-BB40B439DC22 Dec 30 11:16:02 backgroundassets.user(CFNetwork)[288] : Task <19F9FE6C-0DDE-419A-95F4-B309166FBA71>.<1> auth completion disp=2 cred=0x0 Dec
3
0
1.2k
Dec ’22
appStoreReceiptURL not found in AUv3 app extension
I have an Audio Unit app extension with an in-app purchase. When starting the app and running it as standalone, the in-app purchase's receipt can be verified without problems: NSURL *receiptURL = [[NSBundle mainBundle] appStoreReceiptURL]; NSData *receipt = [NSData dataWithContentsOfURL:receiptURL options:0 error:&readError]; However, when running the audio unit inside a host, receiptURL is file:///private/var/mobile/Containers/Data/PluginKitPlugin/D87B0A4A-2670-41AC-9400-2787A9B9982F/StoreKit/sandboxReceipt and the receipt is nil, probably because the file does not exist or it cannot be accessed from the plug-in running in the host environment. The error is: Error Domain=NSCocoaErrorDomain Code=260 The file “sandboxReceipt” couldn’t be opened because there is no such file. UserInfo={NSFilePath=/private/var/mobile/Containers/Data/PluginKitPlugin/63A457CA-305C-45B5-ABCB-60FEDA70E4FA/StoreKit/sandboxReceipt, NSUnderlyingError=0x28316c450 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or direc
0
0
773
Dec ’22
Can't Run Embedded Pre-Compiled AOT Binary Code-signed with Hardened Runtime from App Bundle
I've got a macOS app (.app) bundle where I am trying to embed a pre-compiled ahead-of-time binary (cli application) into my app bundle but cannot get it to execute when hardened runtime is enabled. I've got a run-script in Builds Phases in xcode (14.1) that looks like this LOCATION=${BUILT_PRODUCTS_DIR}/MyApp.app/Contents/MacOS IDENTITY=${EXPANDED_CODE_SIGN_IDENTITY_NAME} codesign --verbose --force -o runtime --sign $IDENTITY $LOCATION/my_cli The binary is succesfully copied and placed as MyApp/Contents/MacOS/my_cli right along side the main executable binary for the app. The main application is written in Dart with Flutter, while the binary (my_cli) is compiled through a combination of Rust and Dart to a single file executable. I can successfully run my_cli when I omit the -o runtime from my main application using Dart:io Process.run (think of it as a means to execute a program, similar to Swift's Process.run), but this will fail Apple's Notary Service saying that my_cli needs to have been signed with harden
1
0
1.1k
Dec ’22
Having a problem while Testing SKAdnetwork
Hello, I have 3 questions. According to specification, it says to ignore subdomain, but if there is subdomain as follows, does it mean that SKADNetwork did not send postback? ex) test1.example.com. https://developer.apple.com/documentation/bundleresources/information_property_list/nsadvertisingattributionreportendpoint We conducted the test through the SKADNetwork test framework according to specifications, but the postback was not sent to our server. In addition, we tried to check whether SKADNetwork was working properly through advertisements directly on publisher apps and advertiser apps, but postbacks were not sent to our servers. How can I check in this case? Also, there is error log below testing with SKAdTestSession SKANTestabilitySample[14079:188474] [SKAdTestSession] Error fetching remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.storekit.configuration.xpc UserInfo={NSDebugDescription=connection to service named com.apple.storekit.configura
0
0
1.1k
Dec ’22
NSPersistentCloudKitContainer - Import failed with error: Error Domain=NSCocoaErrorDomain Code=4864
The NSPersistentCloudKitContainer synchronization between core data and iCloud was working fine with phone 15.1. Connected a new iPhone iOS 15.5, it gives error: CoreData: debug: CoreData+CloudKit: -[NSCloudKitMirroringDelegate managedObjectContextSaved:](2504): : Observed context save: - 2022-12-05 13:32:28.377000-0600 r2nr[340:6373] [error] error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _importFinishedWithResult:importer:](1245): : Import failed with error: Error Domain=NSCocoaErrorDomain Code=4864 *** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: incomprehensible archive (0x53, 0x6f, 0x6d, 0x65, 0x20, 0x65, 0x78, 0x61) UserInfo={NSDebugDescription=*** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: incomprehensible archive (0x53, 0x6f, 0x6d, 0x65, 0x20, 0x65, 0x78, 0x61)} CoreData: error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _importFinishedWithResult:importer:](1245): : Import failed with error: Error Domain=NSCocoaErrorDomain
2
0
1.1k
Dec ’22