Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

SwiftData: Unable to find a configuration named 'default' in the specified managed object model
I have a SwiftUI + SwiftData (with iCloud) app. The setup code is standard, with schema migrations (mostly lightweight, one custom). Everything works correctly except in one scenario. When I run a newer version of the app (with an updated schema adding one field + migration) on a device with the previous data container (the usual app version update through TestFlight), I encounter an issue on the first launch. The app crashes on the first cold start but runs successfully on subsequent launches. The error I receive on the first run is: addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (134060) NSLocalizedFailureReason : Unable to find a configuration named 'default' in the specified managed object model. What might be a problem and how to resolve it?
2
0
711
Jul ’24
Ionic NFC Support is NOT available on IOS
Hello, I have a big problem with the NFC (I use Ionic & Capacitor), indeed despite having uninstalled and reinstalled it still gives me the same error when I compile it on an IOS emulator: [CoreNFC] 00000002 822651e0 -[NFCHardwareManager areFeaturesSupported:outError:]:154 XPC Error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 named com.apple.nfcd.service.corenfc was invalidated from this process. UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.nfcd.service.corenfc was invalidated from this process. I don't understand this error, I correctly add the right line on Info.plist to say that I am using NFC. I use the phonegap plugin made for ionic 5. **Ionic v5.33.1 Angular v12.1.0 Capacitor v1.2.0**
1
0
3.6k
Jun ’21
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
iOS15 show you don’t have permission to access “Caches” with Newstand download
my app is newsstand app. it is success download issue in my app with iOS14 & iOS15 simulate. when i try on real device, it fail to download. log Error Domain=NSCocoaErrorDomain Code=513 “1318303744724624100” couldn’t be moved because you don’t have permission to access “Caches”. UserInfo={NSSourceFilePathErrorKey=/var/mobile/Media/Downloads/7803184277104936561/1318303744724624100, NSUserStringVariant=( Move ), NSDestinationFilePath=/private/var/mobile/Containers/Data/Application/1C6FE6AF-1670-48ED-BE04-2806C8AECC65/Library/Caches/bgdl-4119-6c4a7ac1c9c0c671.xzip, NSFilePath=/var/mobile/Media/Downloads/7803184277104936561/1318303744724624100, NSUnderlyingError=0x282aa3d80 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}} i have set Privacy - Downloads Folder Usage Description in info.plist please help
9
0
3.7k
Oct ’21
Test iOS On-Demand Resources on M1 mac(Designed for iPad) fail
I create a new project just for testing on-demand resources and it works properly on real devices and iOS simulators but no luck on Mac(Designed for iPad). The project is very simple like bellow: NSBundleResourceRequest* request = [[NSBundleResourceRequest alloc] initWithTags:[NSSet setWithArray:@[@A]]]; [request beginAccessingResourcesWithCompletionHandler:^(NSError* error){ if (error != nil) { NSLog(@%@, error.description); } }]; The error I encounter on my M1 Mac is consistently: Error Domain=NSCocoaErrorDomain Code=-1 (null). However, I'm unsure about what steps to take to resolve this issue. Just wondering can we test on-demand resources on apple silicon macs directly by 'Designed for iPad', or we can only test on real devices and simulators? I have read many documentations and websites but it seems like no one addresses about this.
0
0
547
Dec ’23
Reply to Hello world safari app extension automatically quit after seconds when debugging
2019-06-10 16:41:42.742732+0800 Safari[44375:923094] [SQLiteStore] Failed to acquire database store coordination lock at /Users/ftqa/Library/Safari/Favicon Cache/favicons.db-lock: [35: Resource temporarily unavailable]2019-06-10 16:41:42.821446+0800 Safari[44375:923094] [SQLiteStore] Failed to acquire exclusive access to database at file:///Users/ftqa/Library/Safari/Favicon%20Cache/favicons.db.2019-06-10 16:41:42.849217+0800 Safari[44375:923150] [SQLiteStore] Failed to acquire database store coordination lock at /Users/ftqa/Library/Caches/com.apple.Safari/TabSnapshots/Metadata.db-lock: [35: Resource temporarily unavailable]2019-06-10 16:41:42.850986+0800 Safari[44375:923150] [SQLiteStore] Failed to acquire exclusive access to database at file:///Users/ftqa/Library/Caches/com.apple.Safari/TabSnapshots/Metadata.db.2019-06-10 16:41:42.867615+0800 Safari[44375:923143] [SQLiteStore] Failed to acquire database store coordination lock at /Users/ftqa/Library/Safari/Favicon Cache/favicons.db-lock: [35: Resource tempor
Topic: Safari & Web SubTopic: General Tags:
Jun ’19
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
Jun ’22
How to use Family Controls in Mac Catalyst? Sandbox restriction
Hey, I am trying to use Family Controls in Mac Catalyst. On the iOS app it works fine. On macOs using Mac Catalyst it builds fine but I get following console output. Failed to get service proxy: 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.}` When i try to open the FamilyActivityPicker on the macOs app following error is displayed in the GUI. The operation could not be completed. (FamilyControls.ActivityPickerRemoteView Error error 2.) Do I need a familyControls capability for macOs? If yes, I only find it for iOS. Thanks for hints and help :)
1
0
1.4k
Apr ’24
CoreData error: attempt to recursively call -save: on the context aborted
I am getting this error when the app attempt to save change to local store:*** ERROR *** Unresolved error ErrorDomain=NSCocoaErrorDomain Code=132001 (null) UserInfo={message=attempt to recursively call -save: on the context aborted, stack trace=( 0 CoreData -[NSManagedObjectContext save:]The syntax used:NSError *error; if (![managedObjectContext save:&error]) { // Commit the change. NSLog(@*** ERROR *** Unresolved error %@, %@, error, [error userInfo]); }Although Xcode shows stack trace as if the program crashed, it didn't and the program continue to execute as expected. The changes are made to the local store as well. Other the error and the stack trace there is no really any evident that there is any problem.This happens only in Xcode 8 Beta (currently using beta 5).Any idea why I am getting this error?
4
0
5.2k
Aug ’16
Reply to Sandboxed app extensions connecting to not sandboxed XPC service
Thanks for your answer, Quinn. Yes, I'm using SMLoginItemSetEnabled to register the agent. When debugging, I run the agent direcly from Xcode instead of relying upon it to be started by launch services. I have tried to follow your advice, but apparently I am still doing something wrong, because NSXPCConnection.remoteObjectProxyWithErrorHandler() calls made in app extension do fail with: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named S1J6DZ9E7U.com.myapp.agent.srv2 was invalidated: failed at lookup with error 159 - Sandbox restriction. Looking at the application bundle I think I am using the correct application group % codesign -dv --entitlements - agent.app/Contents/MacOS/agent Executable=/Users/user/Library/Developer/Xcode/DerivedData/MyApp-eylcetoqyczzehhcpvnjldtuqcay/Build/Products/Debug/agent.app/Contents/MacOS/agent Identifier=com.myapp.agent Format=app bundle with Mach-O thin (x86_64) CodeDirectory v=20500 size=114401 flags=0x10000(runtime) hashes=3564+7 location=embe
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’22
Client-server TVML App Sample Code crashes
Hi there, I just downloaded the Sample Code provided by de developer documentation in order to run a simple Client-Server app with TVML Kit for tvOS. https://developer.apple.com/documentation/tvmljs/creating_a_client-server_tvml_app I'm following the docs step by step and after running the server in the terminal. I would go and open the project in Xcode and hit the build button. It would lauch the simulator but I get the following error in the simulator: This operation couldn't be completed (TVMLKitErrorDomain error 3.) And in my console I would get this: CreateTVMLApp[82816:2094742] [Image] _TVAssetGroup failed to purge cache path: Shared Asset Group, Error Domain=NSCocoaErrorDomain Code=4 “SharedImageCache” couldn’t be removed. UserInfo={NSUserStringVariant=( Remove ), NSFilePath=/Users/aeum3893/Library/Developer/CoreSimulator/Devices/A976E6FD-6B0D-4C24-BB4C-DDA1F31B0F01/data/Containers/Data/Application/9AC60995-C9EB-4051-803B-334E1A06F9DC/Library/Caches/com.example.apple-samplecode.creating-a-basi
2
0
1.8k
Feb ’21
Error when running a binary from containing app
I am running a Safari Web extension and looking to launch a shell script from the containing app. Error in process Error Domain=NSCocoaErrorDomain Code=4 The file “test.command” doesn’t exist. I get the above error when I try to access the binary. I use NSOpenPanel to allow the user to give permission to access the file system. The program works perfectly without the sandbox and so that ensures there is no file path error. I have the following entitlements: com.apple.security.scripting-targets com.apple.security.files.user-selected.executable com.apple.security.files.user-selected.read-write let task = Process() task.launchPath = /Users/test/test.command let openPanel = NSOpenPanel() openPanel.prompt = Choose openPanel.canChooseFiles = false openPanel.canChooseDirectories = true do{ try task.run() }catch{ os_log(.error,Error in process) print( (error)) } What could be the issue ?
8
0
1.2k
Mar ’21
Getting "No valid file provider found with identifier"
I am currently developing an app based on a file provider extension and intermittently encounter the error: No valid file provider found with identifier. Usually, I can mount (addDomain) successfully after building the app, but occasionally this error appears and then disappears after 10-15 minutes I see these errors from log stream: 2024-07-28 01:01:46.644401+0530 0x1abf0 Default 0x0 6654 0 fileproviderd: (FileProviderDaemon) [com.apple.FileProvider:default] [WARNING] No provider found with identifier (null) for calling bundle on second attempt. 2024-07-28 01:01:47.099043+0530 0x1aac7 Error 0x0 6926 0 mdbulkimport: (FileProvider) [com.apple.FileProvider:default] [ERROR] Cannot query for providers. Error: NSError: Cocoa 4099 2024-07-28 01:01:47.099203+0530 0x1aac7 Error 0x0 6926 0 mdbulkimport: (FileProvider) [com.apple.FileProvider:default] [ERROR] received an error when listing providers, attempting again: Error Domain=NSCocoaErrorDomain Code=4099 UserInfo={NSDebugDescription=} (count: 3) 2024-07
2
0
1k
Jul ’24
UIImagePickerController crash on iOS10
Hi everyone.I develop application and I have strange crash when I try to use photo library. I receive crash and this log message when try to present modally UIImagePickerController:2016-09-26 18:45:11.876042 AAA[936:62863] [error] error: -addPersistentStoreWithType:SQLite configuration:(null) URL:file:///var/mobile/Media/PhotoData/Photos.sqlite?readonly_shm=1 options:{ NSPersistentStoreFileProtectionKey = NSFileProtectionCompleteUntilFirstUserAuthentication; NSReadOnlyPersistentStoreOption = 1; NSSQLitePersistWALOption = 1; NSSQLitePragmasOption = { journal_mode = WAL; };} ... returned error Error Domain=NSCocoaErrorDomain Code=256 The file couldn’t be opened. UserInfo={reason=Failed to access file: 1} with userInfo dictionary { reason = Failed to access file: 1;}2016-09-26 18:45:11.876327 AAA[936:62863] [Migration] Unexpected error opening persistent store <private>, cannot attempt migration <private>)2016-09-26 18:45:11.876605 AAA[936:62863] [Migration] Failed to open store <private&
Topic: UI Frameworks SubTopic: UIKit Tags:
4
0
1k
Sep ’16
VPN (PacketTunnelProvider extension) won't connect after App Store upgrade
Some users are unable to connect our PacketTunnelProvider-based VPN after upgrading our app from the Mac App Store. It might be related to whether or not you're connected at the time of the upgrade (or if our extension is loaded). Without TestFlight on the Mac it's tough to repro - we only get one shot per machine. After the upgrade our app launches, but hitting the connect button doesn't do anything, and it generates neagent and nesessionmanager console errors. We've found that killing our extension process fixes the issue in at least some cases, as does rebooting the Mac (which would also kill the process). I see appstoreagent killing our app, and it looks like nehelper is getting the message that the VPN profiles are now associated with the new app: default 14:28:32.154902-0700 nehelper App for configuration 65.154.227.166 (com.netmotionwireless.MobilityOSX) changed After the app restarts and the user tries to connect there are errors: error 14:28:39.323170-0700 neagent [u 7A49BFF0-7089-4B8D-BD2E-397E65517
1
0
830
Jul ’20