Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Reply to PKProduct Errors when delivering properly signed & validated package via MDM
posting the follow up... The error here is what I also interpreted as the error, but the actual error is up higher in the stack when streaming appstored logs. 2023-01-27 05:30:43.875108-0800 0x6092b Error 0x0 1252 0 appstored: [com.apple.appstored:AppInstall] [MNF16FC110D/16FC110D-D057-42B7-9F7B-6A283991A2D0] Could not create PKProduct: Error Domain=NSCocoaErrorDomain Code=4 The file Distribution doesn't exist. UserInfo={NSFilePath=Distribution} I switched the package from component to distribution and it solved my issue.
Feb ’23
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
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
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
Timeout during initialization of CloudKit schema
Hi everybody, I am having trouble further initializing my CloudKit schema with an NSPersistentCloudKitContainer and store descriptions for booth public and private database scopes. The execution environment is macOS 12.3.1. container.newBackgroundContext().perform { do { print(Starting to initialize CloudKit Schema...) try container.initializeCloudKitSchema(options: []) print(CloudKit Schema succesfully initialized.) } catch { print(error) } } After about 30 seconds, the above code block goes into the catch statement with the following error: Error Domain=NSCocoaErrorDomain Code=134060 A Core Data error occurred. UserInfo={NSLocalizedFailureReason=Failed to initialize CloudKit schema because the requests timed out (a 30s wait failed).} During that 30 seconds of my app trying to init the schema, I noticed that the CloudKit Console was also having trouble communicating correctly with the container: When I reload the CloudKit Console after the init got into the 30s timeout. The Console has no more troub
2
0
1.4k
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
NSPersistentCloudKitContainer - Import failed because applying the accumulated changes hit an unhandled exception
When I use NSPersistentCloudKitContainer to sync data, I receive error Code=134421/134406 Import failed because applying the accumulated changes hit an unhandled exception. iOS/iPadOS 15 beta 5 - iOS/iPadOS 15 beta 7(latest) When this error appears, data can not be import/merged from iCloud. Delete app and reinstall is not working. Same momd on macOS 12(Catalyst, with full data upgrated from macOS 11) works fine. Maybe a system bug? Merge Policy: context.mergePolicy = NSMergeByPropertyObjectTrumpMergePolicy context.automaticallyMergesChangesFromParent = true Console log here: CoreData: error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _requestAbortedNotInitialized:](1826): - Never successfully initialized and cannot execute request ' B7974D4D-C5DA-413E-AE3B-072C88D38D47' due to error: Error Domain=NSCocoaErrorDomain Code=134421 Import failed because applying the accumulated changes hit an unhandled exception. UserInfo={NSLocalizedFailureReason=Import failed because applying the accumulated cha
15
0
7.2k
Dec ’22
NSCloudKitMirroringExportRequest issues
I'm attempting to create a Swift/SwiftUI app that will run on iOS/iPadOS that uses CloudKit to syncronize data between devices. I have created the App in Xcode.In the Apps Signing & Capabilities tab, I have:- Ensured that the Bundle Identifier is valid- Added the iCloud capability - Created the Container and checked it - Validated that the Container was created in the CloudKit Dashbaord- Added the Backgrouind Modes capability - Checked the Remote notifications optionI have modified/validated AppDelegate.swift:- Validated that it is using NSPersistentCloudKitContainer- Added container.viewContext.automaticallyMergesChangesFromParent to true- Added container.viewContext.mergePolicy to NSMergeByPropertyObjectTrumpMergePolicyWhen I load the App, I get a series of errors reported related to CloudKit NSCloudKitMirroringExportRequest. These errors are shown below. I am able to create records, but can see they are only stored locally and do not get synced to the CloudKit Dashboard - interestingly enough, the sche
21
0
14k
Apr ’23
SwiftUI Previews in Xcode 14 failed to run with SettingsError: noExecutablePath(IDESwiftPackageStaticLibraryProductBuildable)
Hello :) My iOS project does not work with SwiftUI Preview in Xcode 14 beta. The project builds and runs fine, but Preview never works. The error message is as follows. HumanReadableSwiftError SettingsError: noExecutablePath(<IDESwiftPackageStaticLibraryProductBuildable:ObjectIdentifier(0x000060002ac3e880):'AppCenterCrashes'>) I do use the AppCenterCrashes dependency in my project. But I'm not sure if this error message is accurate, because sometimes it reports other packages. After I executed Generate Report, I found the following error in SerializationErrors.txt. Error Domain=NSCocoaErrorDomain Code=516 “LogCaffeineIntent.swift” couldn’t be linked to “Intermediates” because an item with the same name already exists. UserInfo={NSSourceFilePathErrorKey=/Users/gong/Library/Developer/Xcode/DerivedData/.../Build/Intermediates.noindex/HiCoffee.build/Debug-iphonesimulator/IntentsExtension.build/DerivedSources/IntentDefinitionGenerated/Intents/LogCaffeineIntent.swift, NSUserStringVariant=( Link ), NS
71
0
29k
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
Error with initialise of persistent storage since 13.2 - The file “xxx” couldn’t be opened.
Hi,we have app in store, that is frequenty updated and currently up to date - build with latest xCode againts latest SDK. However, there started to appear strange bug just after iOS 13.2. This bug never happens on older iOS.We are using pretty standard function to initialize persistent storage: let storeDescription = NSPersistentStoreDescription() storeDescription.url = databaseDirectory.appendingPathComponent((modelName).sqlite) let container = NSPersistentContainer(name: modelName) container.persistentStoreDescriptions = [storeDescription] container.loadPersistentStores(completionHandler: { (storeDescription, error) in if let error = error as NSError? { Check the error message to determine what the actual problem was. */ fatalError(Core Data initialization error (error), (error.userInfo)) } }) return containerThis code, that worked fine now fails to about 10% of customers - with:crash_info_entry_0 Fatal error: Core Data initialization error: Error Domain=NSCocoaErrorDomain Code=256 The file “Geotag
4
0
2.6k
Dec ’22
User’s home folders are not being seen as actual folders
Running a MacOS Intel app from XCode 14.1, trying to access the user’s home folders, in this case, the ~/Downloads folder. I get directoryEnumerator error at file:///Users/maurice/Library/Containers/com.utilitybeltsoftware.icloudstatus2/Data/Downloads/: Error Domain=NSCocoaErrorDomain Code=256 The file “Downloads” couldn’t be opened. UserInfo={NSURL=file:///Users/maurice/Library/Containers/com.utilitybeltsoftware.icloudstatus2/Data/Downloads/, NSFilePath=/Users/maurice/Library/Containers/com.utilitybeltsoftware.icloudstatus2/Data/Downloads, NSUnderlyingError=0x6000011b2880 {Error Domain=NSPOSIXErrorDomain Code=20 Not a directory}} If I cd to this location, I do get access to the ~/Downloads folder, so the error is not telling the truth. Here is my entitlements plist <?xml version=1.0 encoding=UTF-8?> <!DOCTYPE plist PUBLIC -//Apple//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd> <plist version=1.0> <dict> <key>com.apple.security.app-sandbox</key>
3
0
1.7k
Dec ’22
Getting errors when trying to connect to CloudKit using NSPersistentCloudKitContainer
I am trying to build a very basic app using Core Data and CloudKit. I am logged into my CloudKit account on my Mac, and I followed the instructions to run the sample project that Apple provided on their website.Using the sample project as a guide, I tried to build a simpler app using the instructions provided here.However, after building trying to run my sample project, I get the following error stack trace in my console:CoreData: debug: CoreData+CloudKit: -[PFCloudKitOptionsValidator validateOptions:andStoreOptions:error:](35): Validating options: <NSCloudKitMirroringDelegateOptions: 0x60000097f960> containerIdentifier:iCloud.com.cybermedia.CloudKitTest1 initializeSchema:YES ckAssetThresholdBytes:<null> operationMemoryThresholdBytes:<null> useEncryptedStorage:NO automaticallyDownloadFileBackedFutures:NO automaticallyScheduleImportAndExportOperations:YES skipCloudKitSetup:NO preserveLegacyRecordMetadataBehavior:NO useDaemon:YES apsConnectionMachServiceName:<null> containerProvider:<
5
0
7.4k
Nov ’22
Xcode watchOS 9 runtime issue
Hi, I am attempting to run my app in Xcode 14 beta 4. It requires me to download the watchOS 9 runtime in order to build it, with a prompt which states the following: Download Xcode support for watchOS 9.0? This scheme builds an embedded Apple Watch app. watchOS 9.0 must be installed in order to run the scheme. The first time I tried this, it downloaded but then showed an error which I can't remember. However, the main issue is that now I can no longer try it again. Every time I try to build my app, it shows the same prompt, but this time the download of the watchOS 9 runtime fails every time with the same message: Duplicate of 862D055C-0B48-4F10-BAF9-EB4B35F559FA Domain: SimDiskImageErrorDomain Code: 5 User Info: { DVTErrorCreationDateKey = 2022-07-31 14:12:11 +0000; unusableErrorDetail = ; } -- System Information macOS Version 12.4 (Build 21F79) Xcode 14.0 (21322) (Build 14A5284g) Timestamp: 2022-07-31T16:12:11+02:00 As a result, I am unable to build my app. If I run the command xcrun simctl runtime list th
4
0
6.8k
Nov ’22
My app gives error when requesting to use Family Controls individual authorization
2022-06-15 13:19:43.606183-0400 App Name Notification test[594:18404] [UIFocus] TtGC7SwiftUI14_UIHostingViewGVS_15ModifiedContentVS_7AnyViewVS_12RootModifier_ implements focusItemsInRect: - caching for linear focus movement is limited as long as this view is on screen. 2022-06-15 13:19:43.677534-0400 App Name Notification test[594:18436] [xpc] Connection error from Optional(com.apple.FamilyControlsAgent): Couldn’t communicate with a helper application. Attempts remaining: 1 Failed to enroll Luis with error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.FamilyControlsAgent was invalidated: failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDescription=The connection to service named com.apple.FamilyControlsAgent was invalidated: failed at lookup with error 159 - Sandbox restriction.}
3
0
6k
Nov ’22