Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Passkeys in AppClip shows intermittently "Couldn't communicate with a helper application."
I have a demo AppClip which does Passkey registration and assertion in a wizard style page collection. Very often, the assertion would fail with the error Couldn't communicate with a helper application. Retrying it few times will eventually work. Full error: Connection to agent service interrupted with error: Error Domain=NSCocoaErrorDomain Code=4097 Couldn’t communicate with a helper application. I don't know exactly what's causing this and how to prevent it? It only seems to happen during assertion, not registration.
1
0
783
Feb ’24
SwiftData Migration Error: Missing Attribute Values on Mandatory Relationship
I'm currently working on a data model migration in Swift using a custom schema migration plan. My project involves migrating settings from one schema version to another (SchemaV1 to SchemaV2). Both schema versions include a class named FSViz, but with slightly different properties. In the newer schema, SchemaV2, I introduced a new property named textSettings of type TextSetting, replacing the textColor property from SchemaV1. Here's a simplified version of my migration code and class definitions: Model: extension SchemaV1 { @Model public final class FSViz { @Attribute(.unique) public let id: UUID public var textColor: TextColor init(textColor: TextColor) { self.id = UUID() self.textColor = textColor } } } extension SchemaV2 { @Model public final class FSViz { @Attribute(.unique) public let id: UUID public var textSettings: TextSetting init(textSettings: TextSetting) { self.id = UUID() self.textSettings = textSettings } } } initMyApp: public struct InitMyApp { static func makeInitialFSViz() -> FSViz? { FSVi
1
0
2.4k
Feb ’24
Be careful changing a widget's "kind" configuration
I'll preface this to say that I'm not 100% sure this is all accurate, but I wanted to share this problem I was seeing developing a widget for a SwiftUI app in case it helps someone else get to a solution faster. Two weeks ago I released a version of an app which contained a brand new widget. For the kind property of the widget's configuration I just used something generic: AppWidget. Last week we wanted to add an additional widget into the app and I realized that I ought to make the kind be a little more specific. So I renamed the first kind from AppWidget to DailyPromptWidget ... and made the second widget use a kind named DailyCheckInWidget. Then, we started seeing issues where the widget wasn't responding to taps and would eventually go blank. I could add in a new widget to the home screen and that'd work fine. Searching the Internet for ideas yielded nothing. I connected my iPhone to my Mac and launched the Console app and then started tapping on the non-responsive widget. I discovered a few output messag
5
0
2.6k
Feb ’24
Permission issue accessing Reminders through EventKit in MacOS app
Hello, I have an app that I would like to have read and write access to Reminders using EventKit, but on MacOS 14 (14.2.1) when I call requestFullAccessToReminders I get error = nil, success = false (even when access is granted) and there is no permission prompt to use user when access has not yet been granted. Note this is not an issue in iOS. Here's a stripped down example of what I'm talking about import EventKit struct ContentView: View { let store = EKEventStore() @State var permissionState = Ready to Request var body: some View { VStack { Text(permissionState).font(.title) Button(Request Access) { requestFullAccessToEvents() }.padding() } .padding() } func requestFullAccessToEvents() { store.requestFullAccessToReminders { (granted, error) in if let foundError = error { permissionState = Error: + foundError.localizedDescription } else if granted { permissionState = Permission Granted } else { permissionState = Permission Denied } } } } then the plist NSRemindersFullAccessUsageDescription something me
1
0
1.1k
Feb ’24
Sharelink is bronken in ios 17.3
block of code used in aditionl to the errors shown below i cant not share an image along a message to whatsapp, it will only take the message, for it to take the picture the messahe must be removed. ShareLink(Share Status as image, item: renderedImage, subject:Text((itemDue.customerName) your order is ready), // message: Text(mesaage), // , preview: SharePreview(Order status, image: renderedImage) ) .foregroundStyle(.white) .padding(5) .frame(maxWidth: .infinity) .background( RoundedRectangle(cornerRadius: 15) .stroke(Color.white, lineWidth: 2) ) when sharelink is being use i get the errors must current ios version and xcode: 2024-02-01 17:27:48.792287-0500 Tailored[4866:1376699] [ProcessSuspension] 0x11d0218c0 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebProcess NearSuspended Assertion' for process with PID=4876, error: Error Domain=RBSServiceErrorDomain Code=1 target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit UserInfo={NSLocalizedFailureReason=
1
0
1.8k
Feb ’24
Json Data Corrupted Error After Updating macOS to 14.2.1 and Xcode to 15.2 with ixguard Toolchain
After updating my macOS to version 14.2.1 and Xcode to version 15.2, I am encountering an issue when attempting to run my iOS app on a physical iPhone device. The app runs successfully in the simulator, but when deploying to the iPhone, I receive the following error: dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: The given data was not valid JSON., underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 Unexpected character 'i' around line 1, column 2. UserInfo={NSJSONSerializationErrorIndex=1, NSDebugDescription=Unexpected character 'i' around line 1, column 2.})))
0
0
691
Jan ’24
Reply to Cannot download simulator list for Xcode
Me too. Here's the details: Domain: DVTDownloadableErrorDomain Code: -1 User Info: { DVTErrorCreationDateKey = 2024-01-30 21:45:16 +0000; } -- Unable to deserialize downloadables index request data. Domain: DVTDownloadableErrorDomain Code: 6 User Info: { URL = https://devimages-cdn.apple.com/downloads/xcode/simulators/index2.dvtdownloadableindex; } -- The data couldn’t be read because it isn’t in the correct format. Domain: NSCocoaErrorDomain Code: 3840 Failure Reason: The data is not in the correct format. User Info: { NSDebugDescription = Cannot parse a NULL or zero-length data; } -- System Information macOS Version 14.3 (Build 23D56) Xcode 15.2 (22503) (Build 15C500b) Timestamp: 2024-01-30T18:45:16-03:00
Jan ’24
Share Extension can access files from the Photos app but not the Files app
Share Extension can access files from the Photos app but not the Files app. In case of the Photos app the file url is something like file:///var/mobile/... In case of the Files app the url stars with file:///private/var/mobile/... The following error is thrown in case of the Files app Error Domain=NSCocoaErrorDomain Code=260 The file “file.pdf” couldn’t be opened because there is no such file. However the file is there, it was selected via the Files app and the share button was used to launch the Share Extension. Also the access to the file is within the following block url.startAccessingSecurityScopedResource() ... url.stopAccessingSecurityScopedResource() Another issue is that the Share Extension does not appear in the Settings / Privacy / Files and Folders. Here are the apps which have the Applications that have requested access to files and folders will appear here. What is the solution to allow the Share extension access the files from the Files app ?
0
0
728
Jan ’24
Reply to Error Domain=NSCocoaErrorDomain Code=4099
UPDATE: I think it has something to do with the simulator used. Do not exactly know what the issue is but I am not getting the log errors when running the app in a physical device. I am facing similar issue with same error codes. Did you manage to solve it by any chance? I have not even used firebaseMessaging API, so not sure why I am getting errors related to that. I am using XCode Version 15.1 (15C65). The OS is Sonoma 14.0. If it helps, the following is my errors: Updating selectors failed with: 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.} Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.commcenter.coretelephony
Jan ’24
Reply to Understanding Sandbox Violations for system services
Adding to above, both for posterity and hoping that someone will pick it up and poke someone internally at Apple :-) I went jumping through all the hoops necessary (disabling SIP, remounting, clicking through warning messages about insecure setup etc) to modify sandbox-profiles for system services (i.e. those in /System/Library/Sandbox/Profiles/). Adding explicit allow of mach-lookup for com.apple.contactsd.persistence to com.apple.imagent.sb (assuming this should alter the process sandbox for imagent), com.apple.coredatad.sb (Family-process ought to stem from there?) and searchpartyuseragent.sb (for process searchpartyuseragent) alter their behaviour, but the Family Framework seems to be in such a bad state without SIP et al enabled I don't really know if it actually fixes the issue. Anyhow, I want to explicitly note that neither com.apple.imagent.sb, com.apple.coredatad.sb nor searchpartyuseragent.sb seems to include an allow of mach-lookups for com.apple.contactsd.persistence (however, some of them allow l
Topic: Privacy & Security SubTopic: General Tags:
Jan ’24
Previews Crash on CoreData model using 'Parent Entity'
I have a CoreData model with two entities, 'User' and 'Player', that both use 'Person' as their 'Parent Entity'. While the App appears to work correctly in the simulator, including with CloudKit via NSPersistentCloudKitContainer, I get a crash in Xcode Previews: libswiftCore.dylib [ AGScoringModel/Persistence.swift:183: Fatal error: #init(inMemory:): Failed to load persistent stores:Error Domain=NSCocoaErrorDomain Code=134110 An error occurred during persistent store migration. UserInfo={sourceURL=file:///Users/ebg/Library/Developer/.../CoreDataStores/private/database.sqlite, reason=Cannot migrate store in-place: Cannot merge multiple root entity source tables into one destination entity root table, destinationURL=file:///Users/ebg/Library/Developer/.../CoreDataStores/private/database.sqlite, NSUnderlyingError=0x600000ce02a0 {Error Domain=NSCocoaErrorDomain Code=134110 An error occurred during persistent store migration. UserInfo={message=Cannot merge multiple root entity source tables into
2
0
1.1k
Jan ’24
Reply to Understanding Sandbox Violations for system services
Adding some additional information. It seems like Family, imagent and searchpartyuseragent each do eight (8) tries to interface via XPC (CoreData: XPC: sendMessage: failed #5 up to #7 starting from #0) and then giving up and initiating a round of Diagnostic reporter after that. Example of a failure: default 23:23:45.419364+0100 Family [0x130e0eb70] activating connection: mach=true listener=false peer=false name=com.apple.contactsd.persistence error 23:23:45.419593+0100 kernel Sandbox: Family(1316) deny(1) mach-lookup com.apple.contactsd.persistence default 23:23:45.419765+0100 Family [0x130e0eb70] failed to do a bootstrap look-up: xpc_error=[159: Unknown error: 159] default 23:23:45.419812+0100 Family [0x130e0eb70] invalidated after a failed init error 23:23:45.419970+0100 Family Persistent store service connection invalidated: failed at lookup with error 159 - Sandbox restriction error 23:23:45.420160+0100 Family Error communicating with persistent store service proxy: Error Domain=NSCocoaErrorDomain
Topic: Privacy & Security SubTopic: General Tags:
Jan ’24
Reply to SwiftData and command line
import Foundation import SwiftData @Model class Person { var name: String init(name: String) { self.name = name } } func main() { print(Bundle.main.bundleIdentifier ?? ) // com.northbronson.DataDemo print(Bundle.main.object(forInfoDictionaryKey: CFBundleName) ?? ) // DataDemo let configuration = ModelConfiguration( isStoredInMemoryOnly: true, allowsSave: false ) print(configuration.url) // file:///dev/null // let _ = configuration.url.startAccessingSecurityScopedResource() do { let _ = try ModelContainer( for: Person.self, configurations: configuration ) } catch { // configuration.url.stopAccessingSecurityScopedResource() print(error) } } main() // com.northbronson.DataDemo // DataDemo // file:///dev/null // error: addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (257) // CoreData: error: addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (257) // error: userInfo: // CoreData: error: userInfo: // error: N
Jan ’24
SwiftData+CloudKit,AppGroups Error
I use SwiftData, CloudKit, and App Groups. An error occurs on the first run, but it works on the second run. error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate tearDown:]_block_invoke(792): : Told to tear down with reason: Store Removed error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _performSetupRequest:]_block_invoke(1192): : Failed to set up CloudKit integration for store: (null) Error Domain=NSCocoaErrorDomain Code=134060 UserInfo={NSLocalizedFailureReason=The mirroring delegate could not initialize because it's store was removed from the coordinator.} I don't know why store path is null in error message. I passed the store url and CloudKit database name in ModelConfiguration. static var release: ModelContainer = { do { let schema = Schema(versionedSchema: ModelSchema.self) let appGroupURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: group-identifier) let databaseURL = appGroupURL?.appending(path: Database.sqlite) let databaseName = Database let configur
2
0
862
Jan ’24
SwiftData Crashes When Using Custom Migration.
I have 2 vesrion schema and Migration plan. Version 2: Add new properties and Property renamed. static let release: ModelContainer = { do { let schema = Schema(versionedSchema: V2Schema.self) let appGroupURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: ***) let databaseURL = appGroupURL?.appending(path: Models.sqlite) let databaseName = Models let configuration = ModelConfiguration(databaseName, schema: schema, url: databaseURL!, cloudKitDatabase: .automatic) return try ModelContainer(for: schema, migrationPlan: ModelMigrationPlan.self, configurations: [configuration]) } catch { fatalError(error.localizedDescription) } }() enum ModelMigrationPlan: SchemaMigrationPlan { static var schemas: [VersionedSchema.Type] { [V1Schema.self, V2Schema.self] } static var stages: [MigrationStage] { [v1ToV2MigrationStage] } } When I test migration in UnitTest, It works fine. But In running in device, error is occurred. error: Store failed to load. (type: SQLite, url: file:///private/var/mobile/Co
4
0
1.2k
Jan ’24