Can someone please shed some light? I have an app that uses Core Data and CloudKit, up until the last version, I was able to sync data between devices but now after I added two new Entities for some reason it stopped syncing between devices. Here is how I did the change: Created a new Core Data container. Added the new Entities and their Attributes Tested the new Entities locally to be able to send the new schema to CloudKit. Went to CloudKit and made sure that the new Entities and Attributes were reflected on the Developent database. Deploy Schema Cahnges. Went to the Production database to make sure the new schema was deployed; and it was, both databases look the same. Testing: Tested in the simulator and with a real device and everything syncs, even the new Entities. If I download the app from the App Store on two different devices they do NOT sync. Based on the procedure I'm describing above, is there any important step I may have missed when doing the migration? I'm not sure if this is related to the syn
Search results for
NSCocoaErrorDomain
1,063 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi there, Following this tutorial for my own project: https://developer.apple.com/videos/play/wwdc2020/10650/?time=319 I noticed that I cannot mark modifiedAt index as queriable. It doesn't appear in a list, and I heard that it was renamed to modifiedTimestamp (can someone confirm?) Although I've managed to upload records to the public DB, my fetching has been unsuccessful. I'm getting this error: CoreData: warning: CoreData+CloudKit: -[NSCloudKitMirroringDelegate finishedAutomatedRequestWithResult:](3372): Finished request ' 33AA10FE-C31F-44BB-A693-D3DC06604D18' with result: storeIdentifier: 65A47C2C-8591-4404-B39C-44635142C32E success: 0 madeChanges: 0 error: Error Domain=NSCocoaErrorDomain Code=134406 Request '33AA10FE-C31F-44BB-A693-D3DC06604D18' was aborted because the mirroring delegate never successfully initialized due to error: UserInfo={NSLocalizedFailureReason=Request '33AA10FE-C31F-44BB-A693-D3DC06604D18' was aborted because the mirroring delegate never successfully initialized due to e
I've created a new project to see how DeviceActivityReportExtension works. After creating the app, added the extension and also added FamilyControl capability. In the main, I've added only the report view using SwiftUI, but it does not work. This is the error I get: 2023-04-27 18:21:55.980280-0700 TestScreenTime[38540:24995233] [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 process may not map database UserInfo={NSDebugDescription=process may not map database, _LSLine=66, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler} 2023-04-27 18:21:55.980313-0700 TestScreenTime[38540:24995233] [default] Attempt to map database failed: permission was denied. This attempt will not be retried. 2023-04-27 18:21:55.980337-0700 TestScreenTime[38540:24995233] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 process may not map database UserInfo={NSDebugDescription=process may not map database, _LSLine
I am working on a billing implementation in UnityIAP. Recently, when I press the billing button on iOS, I get an Unknown error the first time, I checked the logs and found the following error. : Error in remote proxy while processing transaction: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.storekitd UserInfo={NSDebugDescription=connection to service named com.apple.storekitd} Special conditions, When this is occurring, addTransactionObserver is being called after the purchase order. If addTransactionObserver is called for a paymentQueue during the purchase process, would this error be called? Or if there is any problem on the AppleStore side, I would appreciate it if you could let me know. Thank you in advance.
What's happened to Xcode 14.3 on M1 Macs? Distributing Enterprise and Ad Hoc apps is broken! I can successfully archive an app, as usual, but when I come to distribute it I see an unhelpful error message: The operation couldn’t be completed. (AppThinning.StubError error 1.) Digging around in the logs reveals this in IDEDistribution.verbose.log: 023-04-17 12:16:50 +0000 Output: ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin22] /Applications/Xcode.app/Contents/SharedFrameworks/AppThinning.framework/Resources/ipatool:4135: warning: assigned but unused variable - prev /Library/Ruby/Gems/2.6.0/gems/CFPropertyList-3.0.5/lib/cfpropertylist/rbCFPropertyList.rb:83: warning: assigned but unused variable - temp /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:65:in `require': dlopen(/Library/Ruby/Gems/2.6.0/gems/date-3.2.2/lib/date_core.bundle, 0x0009): tried: '/Library/Ruby/Gems/2.6.0/gems/date-3.2.2/lib/date_core.bundle' (mach-o file, b
On demand resource can be used on external server (not apple host server)? I get error like below: Error Domain=NSCocoaErrorDomain Code=4994 The requested application data doesn’t exist. UserInfo={NSUnderlyingError=0x2814fd3b0 {Error Domain=_NSBundleResourceRequestErrorDomain Code=100 No manifest found for bundle ID xxxxx UserInfo={NSLocalizedFailureReason=No manifest found for bundle ID xxxxx}}} How to solve this? Any advice?
I'm using applicationQueuePlayer in my application. I set Queue for it and it plays music. It was working fine in the app installed on my phone, but after phone was updated to iOS 16.4 it stopped working (see errors below). When I remove app from phone and recompiled and re-installed it to that phone, player started working normally. But when I replaced container via Xcodes Device and Simulators to previously saved - it stopped working again. Re-installing it on top of existing didn't fix it. It was only working if removed from phone completely and then installed from Xcode from scratched. This started happening after phone update to 16.4. When I installed app from scratch - it was working fine, but when 16.4.1 was release couple of days ago and I installed it on a phone, it again broke the applicationQueuePlayer in my app. Same thing - removing app from phone and installing from scratch from Xcode makes it work, but restoring old container via Devices and Simulators breaks it again. I presume it has somethin
I have a MessageFilter app extension embedded in my iOS app and it works great filtering out junk SMS messages. I want to show a local notification whenever a message has moved to the junk folder and I'm trying to do it like so: final class MessageFilterExtension: ILMessageFilterExtension { func handle(_ queryRequest: ILMessageFilterQueryRequest, context: ILMessageFilterExtensionContext, completion: @escaping (ILMessageFilterQueryResponse) -> Void) { let offlineAction = self.offlineAction(for: queryRequest) switch offlineAction { case .allow, .junk, .promotion, .transaction: let response = ILMessageFilterQueryResponse() response.action = offlineAction scheduleLocalNotification(for: keyword) /* -> Here */ completion(response) @unknown default: break } } func scheduleLocalNotification(for keyword: Keyword) { let content = UNMutableNotificationContent() content.title = Test content.body = Test2 content.categoryIdentifier = FILTER_SMS_BLOCKED let trigger = UNTimeIntervalNotificationTrigger(timeInterval: 3,
Can you be more precise about how you came to this conclusion? I tried this here in my office and it worked… well… failed… as I expected. Specifically: On macOS 13.2.1, I put a test.txt file at the root of my iCloud Drive. In Xcode 14.3, I created a new project with App Sandbox enabled. I wired up a button to this code: do { print(will read) let u = URL(fileURLWithPath: /Users/quinn/Library/Mobile Documents/com~apple~CloudDocs/test.text) let s = try String(contentsOf: u, encoding: .utf8) print(did read, contents: (s)) } catch { print(did not read, error: (error)) } I ran the app and clicked the button. The app printed: will read did not read, error: Error Domain=NSCocoaErrorDomain Code=257 The file “test.text” couldn’t be opened because you don’t have permission to view it. UserInfo={NSFilePath=/Users/quinn/Library/Mobile Documents/com~apple~CloudDocs/test.text, NSUnderlyingError=0x6000005f6910 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}} The underlying error, EPERM, is exactly w
Topic:
App & System Services
SubTopic:
Core OS
Tags:
Hi there, Had no issues with Core Data and Cloud Kit syncing. Then, when I updated my macOS to 13.3, I am getting the following error from cloud kit: reason=Can't find or automatically infer mapping model for migration, NSUnderlyingError=0x60000367b330 {Error Domain=NSCocoaErrorDomain Code=134190 (null) UserInfo={entity=Item, property=image, Reason=Unable to use inferred mapping to move external reference into store.}}} The reason I think it's due to the macOS update is because my cloud kit initialization and syncing has no trouble on my phone simulator or physical devices. Also, I didn't change my model in any significant way, and checking out old versions of my code lead to the same error. Has anyone else experienced issues with Core Data migration on macOS 13.3? Or can anyone explain why I might see this issue on macOS specifically?
Hey there, the following error message appears when running xcodebuild test command on a simulator (through ssh): IDETestOperationsObserverDebug: Failure collecting logarchive: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.testmanagerd.control was invalidated: failed at lookup with error 3 - No such process. UserInfo={NSDebugDescription=The connection to service named com.apple.testmanagerd.control was invalidated: failed at lookup with error 3 - No such process.} 2023-03-29 02:09:10.346 xcodebuild[86494:1840011] IDETestOperationsObserverDebug: Failure collecting logarchive: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.testmanagerd.control was invalidated: failed at lookup with error 3 - No such process. UserInfo={NSDebugDescription=The connection to service named com.apple.testmanagerd.control was invalidated: failed at lookup with error 3 - No such process.} 2023-03-29 02:09:15.996 xcodebuild[86494:1839901] [MT] I
launchdata.json: [ { name: Smartcard, imageName: Smartcard, description: A all new way to buy and sell stuff featuring RFID and NFC for touchless transactions and with local server you can pay with your phone., department: Ticki Finance, productid: 1737484, id: 1, creator: The Ticki Team }, { name: Ink pad, imageName: Inkpad, description: A quick and easy way to take fingerprints and stamp stamps:), And with a quick water activation taking only 15 seconds you can setup in no time. Also, refilling the ink chamber is super easy, all you have to do is put ink in the middle hole., department: Ticki Design, productid: 7338388, id: 2, creator: The Ticki Team }, { name: Wallet, imageName: Wallet, description: Ever had issues with your credit cards falling out of your pocket/wallet? Well this fixes any issues. Introducing Ticki Wallet. , department: Ticki Finance, productid: 2444495, id: 3, creator: The Ticki Team }, { name: Pencil Case, imageName: PencilCase, description: I always lose my my pencils. How about you?
I'm still facing the issue (despite earlier comment that it's fixed). macOS is up-to-date (macOS 13.1, 22C65) no system updates are available. I cannot refresh the receipt either. I'm always returned the old receipt from just before I upgraded to Ventura. : Finished refreshing receipt with error: Error Domain=ASDErrorDomain Code=500 Failed to write receipt to URL: file:///Users/jeko/Library/Containers/447F8668-DE02-4E43-8350-6AEED8A3408E/Data/StoreKit/sandboxReceipt UserInfo={NSDebugDescription=Failed to write receipt to URL: file:///Users/jeko/Library/Containers/447F8668-DE02-4E43-8350-6AEED8A3408E/Data/StoreKit/sandboxReceipt, NSUnderlyingError=0x6000026f2490 {Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file “sandboxReceipt” in the folder “StoreKit”. UserInfo={NSFilePath=/Users/jeko/Library/Containers/447F8668-DE02-4E43-8350-6AEED8A3408E/Data/StoreKit/sandboxReceipt, NSUnderlyingError=0x6000026f3720 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}}
Topic:
App & System Services
SubTopic:
StoreKit
Tags:
Hi, after sharing a NSManagedObject, I send the link that CloudKit creates on open it a different device. The function func windowScene(_ windowScene: UIWindowScene, userDidAcceptCloudKitShareWith cloudKitShareMetadata: CKShare.Metadata) is called but when I accept the invitation, CloudKit returns this error: userDidAcceptCloudKitShare(with:): Failed to accept share invitations: Error Domain=NSCocoaErrorDomain Code=134406 Request 'A8FAB7C2-CF35-44E0-A0B9-C359757C248F' was aborted because the mirroring delegate never successfully initialized due to error: }> UserInfo={NSLocalizedFailureReason=Request 'A8FAB7C2-CF35-44E0-A0B9-C359757C248F' was aborted because the mirroring delegate never successfully initialized due to error: }>} Code I use to share the object: UICloudSharingController { self.container.share([unsharedFolder], to: nil) { (objectIDs, share, container, error) in guard error == nil, let share else { Logger.iCloudShare((#function): Failed to share an object: (error!))) completion(sh
I'm testing FamilyControls with Mac Catalyst. Child account signed in. Code: try await AuthorizationCenter.shared.requestAuthorization(for: .child) Target: I had a few obstacles: Passed - App was sandboxed and could not connect to FamilyControlsAgent Sandbox: macOSFamily(1967) deny(1) mach-lookup com.apple.FamilyControlsAgent Violation: deny(1) mach-lookup com.apple.FamilyControlsAgent Passed - Apple Family app was getting errors in Console. Managed to pass this after enabling screen time and a restart (not sure what wah. The connection to service named com.apple.contactsd.persistence was invalidated: failed at lookup with error 159 - Sandbox restriction. Persistent store service connection invalidated: failed at lookup with error 159 - Sandbox restriction Blocking - It seems that the required agent - com.apple.FamilyControlsAgent - is not running/doesn't exist. [authorization] Failed to get service proxy: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.FamilyContr