Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Reply to UIFontPickerViewController screen font is broken or black screen issue
When this error message appears, the app also dies. 2 = Error acquiring assertion: (501) personaAttributesForPersonaType for type:0 failed with error Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.mobile.usermanagerd.xpc was invalidated: failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDescription=The connection to service named com.apple.mobile.usermanagerd.xpc was invalidated: failed at lookup with error 159 - Sandbox restriction.} Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 Client not entitled UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, RBSPermanent=false} elapsedCPUTimeForFrontBoard couldn't generate a task port Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 Client not entitled UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedF
Topic: UI Frameworks SubTopic: UIKit Tags:
Mar ’24
Reply to Passkey from my macOS Credential Provider Extension is not being offered by AutoFill
Thanks so much for getting back to me @garrett-davidson . I've filed a request through the Feedback Assistant, and I hope you don't mind that I also ask you a little bit more in this thread. Firstly, the passkey logs via the terminal didn't yield anything very informative (I've pasted the logs all the way at the bottom). Secondly, I realized that in my original post I didn't mention that there is a potentially relevant error that appears in the system console when I attempt to authenticate using the newly created passkey: error 15:12:15.084213+0100 AuthenticationServicesAgent 0 No matched credentials are found in the platform attached authenticator. Here is the error in the context of the surrounding console errors (just in case any of these other errors reveal something that I'm not picking up on): error 15:12:15.082058+0100 nfcd 0 Logging -[_NFHardwareManager listener:shouldAcceptNewConnection:]:84 PID 1573 () missing entitlement: com.apple.nfcd.hwmanager error 15:12:15.082315+0100 AuthenticationServicesAg
Topic: App & System Services SubTopic: Core OS Tags:
Mar ’24
Reply to Be careful changing a widget's "kind" configuration
We are experiencing the same issue with our app. However, for us, it's not caused by changing the kind, but only after an app update in which there were no changes regarding the widget. Just after it updated, the widget turns black in some cases. It also appears black in the widget gallery. Removing and adding it again did not work in this case, only after an iOS restart it works fine again. I am seeing a similar error in console: Content load failed: unable to find or unarchive file for key: [my.bundle.id::my.bundle.id.widget:MyWidget:systemSmall::158.00/158.00/21.60:(null)] on no host. The session may still produce one shortly. Error: Using url `file:///private/var/mobile/Containers/Data/PluginKitPlugin/A1582067-2483-4B92-B1E4-A35F5BBA0DF7/SystemData/com.apple.chrono/placeholders/MyWidget/systemSmall----158.00w--158.00h--21.60r--0f--0.00t-0.00l-0.00b0.00t.chrono-timeline` ... Error Domain=NSCocoaErrorDomain Code=4 Die Datei „systemSmall----158.00w--158.00h--21.60r--0f--0.00t-0.00l-0.00b0.00t.chrono
Topic: App & System Services SubTopic: General Tags:
Mar ’24
SwiftData fatal error SwiftData.SwiftDataError._Error.loadIssueModelContainer)
Hello everyone, i'm working on an app to make my family life easier. it's was working fine with simple features but now I have added some feature but it's not working on the simulator or on my iPhone. The live preview is working fine... error message is Thread 1: Fatal error: Could not create ModelContainer: SwiftDataError(_error: SwiftData.SwiftDataError._Error.loadIssueModelContainer) nothing is very clear in the message except: Error Domain=NSCocoaErrorDomain Code=134110 An error occurred during persistent store migration. UserInfo={entity=Recette, attribute=isApero, reason=Validation error missing attribute values on mandatory destination attribute}}} issue looks to come from my variable var isApero: Bool. Unfortunately I can't see the problem. below my model: import SwiftData @Model final class Recette { // @Attribute(.unique) var creationDate: Date var name: String var type: String var ingredient1: String var ingredient2: String var imageName: String var people1: Bool var people2: Bool var peop
1
0
1.2k
Mar ’24
App doesn't have permission to open files
Here's how my app used to work: On one device, generate a text file with a custom extension. Send it via AirDrop or in Messages to another device. Open the file in another copy of my app. The app processes the data correctly the way I want. Now, when I try to do this, I get this: Error Domain=NSCocoaErrorDomain Code=257 The file “Shopping List.sld” couldn’t be opened because you don’t have permission to view it. UserInfo={NSFilePath=/private/var/mobile/Library/Mobile Documents/com~apple~CloudDocs/Downloads/Shopping List.sld, NSUnderlyingError=0x282280a50 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}} file:///private/var/mobile/Library/Mobile%20Documents/com~apple~CloudDocs/Downloads/Shopping%20List.sld I think this broke with the iOS 17 upgrade. What permissions or capabilities do I need to add to my app to do that, and how do I go about adding them? I am quite new to xCode and iOS developement, but I had this working before.
1
0
1.8k
Mar ’24
[RealityKit] Cannot OpenImmersiveView
I was developing my project just like HappyBeam, having a mechanism that after playing a small game round, a main menu pops up letting player to play again or back to main menu. When I start my first game after installing it on my vision pro, it works fine, which was basically like HappyBeam, counting from 3 to 1 then await openImmersiveView(id: xxx) to entering my game. After finish the round, I call await dismissImmersiveView() and reset my game ready for the next move. Letting player to choose play again or back to menu to continue my game. However, this time, when my counter counting 3 to 1, the immersive view didn't show up and the visionOS menu showed up instead (I guess it's because immersive view cannot be open). Some error showed in my logger are below scene request failed to return scene with error response : ------------------------------------------------ Unable to present an Immersive Space for id 'ImmersiveSpace': Error Domain=FBSWorkspaceErrorDomain Code=1 scene invalidated before create comp
1
0
942
Feb ’24
Reply to Setup LaunchAgent in Xcode
Hey @eskimo :) Thanks for this clarification about notarisation :) Did it crash? Did that generate a crash report? No at all. When I try to run the application I saw these logs: Unable to register Error Domain=SMAppServiceErrorDomain Code=1 Operation not permitted UserInfo={NSLocalizedFailureReason=Operation not permitted} Received XPC error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named W4MF6H9XZ6.com.tonygo.NetworkMonitorApp.group.agent was invalidated: failed at lookup with error 3 - No such process. UserInfo={NSDebugDescription=The connection to service named W4MF6H9XZ6.com.tonygo.NetworkMonitorApp.group.agent was invalidated: failed at lookup with error 3 - No such process.} That makes totaly sense as the agent never starts ... I checked with the Console application like I usually did, but I see no messages. I put all my last changed on this branch: https://github.com/tony-go/NetworkMonitor/tree/sma-app-service
Feb ’24
Error Domain=NSCocoaErrorDomain Code=257
Hello, I have created a documentspicker to select a PDF file and then upload it to storage, but I am getting this error only on my device; it works correctly on the simulator. This is my code: @Binding var alertShow:Bool var detailpet:String = func makeCoordinator() -> Coordinator { return DocumentPicker.Coordinator(parent1: self) } func makeUIViewController(context: UIViewControllerRepresentableContext) -> UIDocumentPickerViewController { let picker = UIDocumentPickerViewController(forOpeningContentTypes: [.pdf]) picker.allowsMultipleSelection = false picker.delegate = context.coordinator return picker } func updateUIViewController(_ uiViewController: UIDocumentPickerViewController, context: UIViewControllerRepresentableContext) { } class Coordinator : NSObject, UIDocumentPickerDelegate { var parent:DocumentPicker init(parent1: DocumentPicker){ parent = parent1 } func documentPicker(_ controller: UIDocumentPickerViewController, didPickDocumentsAt urls:[URL]) { let bucket = Storage.storage().reference(
1
0
706
Feb ’24
Safari Web Extension - runtime.sendNativeMessage() failed with error 4099
Hey, I am developing Safari Web Extension and trying to communicate with the swift handler (SafariWebExtensionHandler) using runtime.sendNativeMessage api (as describe here - https://developer.apple.com/documentation/safariservices/safari_web_extensions/messaging_between_the_app_and_javascript_in_a_safari_web_extension). I'm getting the following error when calling it - calling runtime.sendNativeMessage(): Error Domain=NSCocoaErrorDomain Code=4099 Couldn’t communicate with a helper application. I have no Idea what is missing and couldn't find any meaningful error message anywhere. I do have nativeMessaging permission in my manifest.json. Assist will be appreciated.
0
0
736
Feb ’24
DNS Proxy extension not launching
Hello! I created a simple DNS filter application for iOS but the extension is not launching. I am getting this log message in the console. Failed to start extension edu.stanford.stilakid.testDnsFilter.DNSFiltering: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named edu.stanford.stilakid.testDnsFilter.DNSFiltering.apple-extension-service UserInfo={NSDebugDescription=connection to service named edu.stanford.stilakid.testDnsFilter.DNSFiltering.apple-extension-service} For another project with the same code for dns filtering but different bundleID, I also got the following log message. Failed to start extension edu.stanford.sml.rdahlke.controlShift.DNSProxy: Error Domain=PlugInKit Code=4 RBSLaunchRequest error trying to launch plugin edu.stanford.sml.rdahlke.controlShift.DNSProxy(D26CD63C-4656-4A30-99A0-7C867265DD75): Error Domain=RBSRequestErrorDomain Code=5 Launch failed. UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0xc62b8c0d0 {Error Domain=NSPOSIXErrorDomain
5
0
1.1k
Feb ’24
Errors when running devicectl to extract diagnostic information from iPhone
I have Xcode 15.1 and iPhone 14 with iOS 17.3. Developer mode is enabled on the iPhone. I am executing the command xcrun devicectl diagnose -k -v I encounter errors when the command is executed (Truncated some output without any errors to be within 7000 char limit) Using verbose logging. Collecting diagnostics from this machine and all nearby devices. You can restrict the list of targeted devices using --devices. This may take several minutes. 5413D57C-7CBD-4F75-94AF-E8AE7CDF2C8C: Adding device results entry for 'iPhone-7675 (iPhone 14)' iPhone-7675 (iPhone 14): Fetch DDI metadata iPhone-7675 (iPhone 14): Starting operation 'Fetch DDI metadata' iPhone-7675 (iPhone 14): Finished 'Fetch DDI metadata'. Results at /private/var/folders/zf/3p2mcxsx6tj36w19yfthy81jxrfr_j/T/TemporaryItems/NSIRD_devicectl_Hohg2i/devicectl_diagnose_2024_02_20.14-44-05/5413D57C-7CBD-4F75-94AF-E8AE7CDF2C8C/DDIMetadata.json iPhone-7675 (Connected, iOS 17.3 21D50, 5413D57C-7CBD-4F75-94AF-E8AE7CDF2C8C): Collecting diagnostics iPhone-7675 (i
0
0
1.3k
Feb ’24
Unit test SwiftData migrations
I'm trying to write a unit test for a SwiftData migration. In the teardown function I delete the SQLite container files, but then the underlying sqlite library complains. There must be a way to gracefully terminate the SwiftData container before I delete the files, but I don't see how. Simplying nil-ifying the references doesn't work. I don't see any obvious close functions, so I hope someone knows a non-obvious function. override func tearDownWithError() throws { // Cleanup resources // -- DOES NOT CLOSE UNDERLYING SQLITE ACCESS -- self.container = nil self.context = nil // Delete database do { try FileManager.default.removeItem(at: self.url) } catch { // Ignore file not found, report everything else. let nserror = error as NSError if nserror.domain != NSCocoaErrorDomain && nserror.code == 4 { throw error } } try? FileManager.default.removeItem(at: self.url.deletingPathExtension().appendingPathExtension(store-shm)) try? FileManager.default.removeItem(at: self.url.deletingPathExtension().appe
1
0
1k
Feb ’24
Something wrong with SwiftData
I have made the following code to basically play around with haptics: LibraryView.swift import SwiftUI import SwiftData struct LibraryView: View { @Environment(.modelContext) var modelContext @Query/*(sort: CustomHaptic.dateMade)*/ var customHapticArray: [CustomHaptic] @Query/*(sort: DefaultHaptic.dateMade)*/ var defaultHapticArray: [DefaultHaptic] @State private var showingAddCustomHaptic = false @State private var showingAddDefaultHaptic = false var body: some View { NavigationStack { VStack { List { ForEach(customHapticArray) { customHaptic in HStack { VStack { Text((customHaptic.sharpness)) Text() Text((customHaptic.intensity)) } Spacer() VStack { Text((customHaptic.repeats)) } } } } } .sheet(isPresented: $showingAddCustomHaptic, content: { NewCustomHaptic() }) .toolbar { Button(New Custom Haptic, systemImage: plus) { showingAddCustomHaptic = true } } .navigationTitle(Haptikiser) } } } And NewCustomHaptic.swift, which is a sheet to add a new class CustomHaptic: @Model class CustomHaptic: Identifiable { va
0
0
645
Feb ’24
Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 for for share button
Hello, I have very simple code for share button ============================================= @IBAction func shareButtonTapped() { let textToShare = some text here let cafeURL = URL(string: https://example.com)! let activityViewController = UIActivityViewController(activityItems: [textToShare, cafeURL], applicationActivities: nil) // for iPad if let popoverController = activityViewController.popoverPresentationController { popoverController.sourceView = self.view } DispatchQueue.main.async { self.present(activityViewController, animated: true, completion: nil) } } ========================================== but after tapping on that button I have this logs in console Error acquiring assertion: (501) personaAttributesForPersonaType for type:0 failed with error Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.mobile.usermanagerd.xpc was invalidated: failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDescription=The connection to service named com.
0
0
2.1k
Feb ’24