Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

my app crash in second launch on iOS 13 and above
my app crash in second launch on iOS 13 and above Need help take a look the log : 2020-08-04 14:33:45.464576+0000 ExMessager[13501:1547907] CFURLSetResourcePropertyForKey failed because it was passed an URL which has no scheme 2020-08-04 14:33:45.695751+0000 ExMessager[13501:1548827] [CoreBluetooth] XPC connection invalid 2020-08-04 14:33:45.842033+0000 ExMessager[13501:1548811] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated. UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.} 2020-08-04 14:33:45.842033+0000 ExMessager[13501:1548827] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated. UserInfo={NSDebugDescription=The connection to service on pid 0
2
0
5k
Aug ’20
"SKDownload encountered a sandboxing error" under iOS 14 only
Hi there, We're tracking an issue both in the sandbox environment and in production whereby download of App Store hosted in-app purchase content is not working properly. This is something that only happens on iOS 14 - all beta versions up to and including beta 3 - and has occurred with no change in our in-app purchase code. Either there is a bug in iOS 14 StoreKit, or something changed which breaks our implementation. In production our logs show that in-app purchase SKPaymentTransaction object flow occurs nominally, with purchased and restored transactions presented and handled as expected. Ultimately we provide content by calling [[SKPaymentQueue defaultQueue] startDownloads:transaction.downloads] with a non-nil transaction whose first downloads array object is non-nil and in the 'Waiting' SKDownload state. Ultimately a 'Finished' download object is returned via updatedDownloads:, but on processing the (supposedly) completed download NSFileManager fails to move the content files into the app directory. Inves
23
0
5.2k
Aug ’20
Reply to Retrieving Logs from a Customer's Device
With iOS 14 beta 4, the error message has changed from Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 named com.apple.OSLogService was invalidated. UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.OSLogService was invalidated.} to Caught error: Error Domain=OSLogErrorDomain Code=9 Client lacks entitlement to perform operation UserInfo={NSLocalizedDescription=Client lacks entitlement to perform operation, _OSLogErrorInternalCode=14} It doesn't appear that my Feedback (FB7868256) has been looked at, but, is this being fixed?
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’20
Reply to HomeKit addAndSetupAccessories always fails in simulator?
Ahh hmm I spoke to soon.. I also get an error using HMAccessoryBrowser and then calling addAccessory on the home, so it seems the issue isn't with discovering accessories but adding them to the home. not sure if these error message are any use, but... [Activity] [-[HMHome _addAccessory:accessoryDescription:password:setupCodeDeferred:progress:completionHandler:], /Library/Caches/com.apple.xbs/Sources/HomeKit_Sim/HomeKit-705.2.0.0.2/Sources/HomeKit/HMHome.m:6645 (B2912D6E-601D-4835-B7BA-4DCFC161FB10)] Thread left active (1): <NSThread: 0x60000128c440>{number = 9, name = main} sendMessageWithDictionary: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 connection to service on pid 0 named com.apple.rtcreportingd UserInfo={NSDebugDescription=connection to service on pid 0 named com.apple.rtcreportingd} sendMessageWithDictionary: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 connection to service on pid 0 named com.apple.rtcreporting
Topic: App & System Services SubTopic: General Tags:
Aug ’20
Reply to Error code question
The supplementary log information for the above question is as follows: 2020-08-17 11:28:19.470871+0800 XXXX[4255:1139139] CoreData: XPC: Unable to connect to server with options { ttNSXPCStoreServerEndpointFactory = <PLXPCPhotoLibraryStoreEndpointFactory: 0x280ce8760>; ttskipModelCheck = 1; } 2020-08-17 11:28:19.479533+0800 XXXX[4255:1139139] CoreData: XPC: Unable to load metadata: Error Domain=NSCocoaErrorDomain Code=134060 关键数据出错。 UserInfo={Problem=Unable to send to server; failed after 8 attempts.} 2020-08-17 11:28:19.483149+0800 XXXXX[4255:1139139] [error] error: addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (134060) CoreData: error: addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (134060) CoreData: annotation: userInfo: CoreData: annotation: Problem : Unable to send to server; failed after 8 attempts. CoreData: annotation: storeType: NSXPCStore CoreData: annotation: configuratio
Aug ’20
App build succeeded but can not run
This project writes with Objective-C, it can build succeeded, but not run. It will show Details The file “Service Reports” couldn’t be opened because you don’t have permission to view it. Domain: NSCocoaErrorDomain Code: 257 Failure Reason: You don’t have permission. Recovery Suggestion: To view or change permissions, select the item in the Finder and choose File > Get Info. User Info: { NSFilePath = /Users/USERNAME/Desktop/ServiceReportApp64Bit/DerivedData/Service Reports/Build/Products/Debug-iphonesimulator/Service Reports.app; }- The operation couldn’t be completed. Permission denied Domain: NSPOSIXErrorDomain Code: 13 Failure Reason: Permission denied-. I checked the FilePath provieded, the .app file displays with a white circle/slash over the icon. And when I double click this file it will show You can't open the application Service Report because it may be damaged or incomplete. Any idea guys? Thanks
2
0
2.4k
Aug ’20
PhotoKit request AddOnly authorization error:Domain=com.apple.photos.error Code=46104
What is Error Domain=com.apple.photos.error Code=46104 mean? This error appears when I try to create an album on iOS14. case: User first gives AddOnly authorization and then gives ReadWrite authorization. After I get the ReadWrite authorization, create an album. code reference: [[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{ PHAssetCollectionChangeRequest *request = [PHAssetCollectionChangeRequest creationRequestForAssetCollectionWithTitle:albumName] albumPlaceholder = [request placeholderForCreatedAssetCollection]; } completionHandler:^(BOOL success, NSError * _Nullable error) { // success is NO, error is Error Domain=com.apple.photos.error Code=46104 }]; The supplementary log information for the above question is as follows: 2020-08-17 11:28:19.470871+0800 XXXX[4255:1139139] CoreData: XPC: Unable to connect to server with options { NSXPCStoreServerEndpointFactory = ; skipModelCheck = 1;} 2020-08-17 11:28:19.479533+0800 XXXX[4255:1139139] CoreData: XPC: Unable to load metadata: Error Domain=NSCocoaErrorDomain
12
0
4.3k
Aug ’20
Will OSLogStore work on iOS without the com.apple.private.logging.admin entitlement?
It seems that OSLogStore allows accessing logs on both macOS (AppKit), macOS (Catalyst) and iOS. Currently it works on both mac variants, but it fails with an entitlement error on iOS. Sample Code: func getLogEntries() throws -> [OSLogEntryLog] { // FB8269189: OSLogStore does not work iOS. let logStore = try OSLogStore(scope: .currentProcessIdentifier) let oneHourAgo = logStore.position(date: Date().addingTimeInterval(-3600)) #if os(macOS) let allEntries = try logStore.getEntries(at: oneHourAgo) #else // FB8518476: The Swift shims for for the entries enumerator are missing. let allEntries = try Array(logStore.__entriesEnumerator(position: oneHourAgo, predicate: nil)) #endif // FB8518539: Using NSPredicate to filter the subsystem doesn't seem to work. return allEntries .compactMap { $0 as? OSLogEntryLog } .filter { $0.subsystem == subsystem } } When running on the iOS Simulator, the following error is thrown: Error Domain=OSLogErrorDomain Code=9 Client lacks entitlement to perform operation UserInfo={NSLoca
3
0
2.6k
Aug ’20
can't run app in Simulator
Details This app could not be installed at this time. Domain: IXUserPresentableErrorDomain Code: 1 Failure Reason: Could not install at this time. Recovery Suggestion: Failed to transfer ownership of path /Users/*/Library/Developer/CoreSimulator/Devices/8F8656F7-F382-4B21-BA73-8B888FDBABFB/data/Containers/Shared/SystemGroup/systemgroup.com.apple.installcoordinationd/Library/InstallCoordination/PromiseStaging/95D8EC37-7329-4083-A192-3C8B5CCA51EA/myapp.app to installd- Failed to transfer ownership of path /Users/*/Library/Developer/CoreSimulator/Devices/8F8656F7-F382-4B21-BA73-8B888FDBABFB/data/Containers/Shared/SystemGroup/systemgroup.com.apple.installcoordinationd/Library/InstallCoordination/PromiseStaging/95D8EC37-7329-4083-A192-3C8B5CCA51EA/myapp.app to installd Domain: MIInstallerErrorDomain Code: 103 User Info: { FunctionName = -[MIInstaller _takeOwnershipOfInstallableContainingSymlink:error:]; SourceFileLine = 162; }- Couldn’t communicate with a helper application. Domain: NSCocoaErrorDomain Cod
3
0
1k
Aug ’20
Reply to Why am i getting an error when trying to load a HEIC photo from PHPickerResult?
Hello! Got it working now by using .itemProvider.loadDataRepresentation(forTypeIdentifier: public.image) and setting configuration.preferredAssetRepresentationMode to .current .itemProvider.loadObject(ofClass: UIImage.self) still does not work as the returned image is always nil for a HEIC file. However, now in beta 6 i don't get the old error message but rather: [claims] Upload preparation for claim 2E4CFF7E-C854-4B56-BBC5-F64CBAE75B5A completed with error: Error Domain=NSCocoaErrorDomain Code=260 The file “version=1&uuid=C6966245-F3C9-4777-8C0B-309FB71EE995&mode=compatible.jpeg” couldn’t be opened because there is no such file. So perhaps related to issue (64630315)? This is only in the simulator as i do not have my beta device with me but will try to verify it later. And yes from what i can see it affects all HEIC images.
Aug ’20
Add custom metadata to HKLiveWorkoutBuilder
I'm trying to sync workouts for which I have to add the HKMetadataKeySyncIdentifier and HKMetadataKeySyncVersion metadata keys to the workouts. I've tried calling the addMetadata method on HKLiveWorkoutBuilder but I receive this cryptic error: HKLiveWorkoutBuilder_DB2D [E6B9]: (#w0) Failed to restart task server after connection invalidation: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 created from an endpoint was invalidated from this process. UserInfo={NSDebugDescription=The connection to service on pid 0 created from an endpoint was invalidated from this process.} Here's my code: backend = try! HKWorkoutSession(healthStore: healthStore, configuration: workoutConfiguration) builder = session?.associatedWorkoutBuilder() let metadata : NSDictionary = [ HKMetadataKeySyncIdentifier : match.syncIdentifier, HKMetadataKeySyncVersion: match.syncVersion ] builder.addMetadata(metadata as! [String : Any]) { (success, error) in ... } session.delegate = self builder.delegate = s
1
0
1.3k
Aug ’20
Strange error when resolving a security-scoped bookmark
I have a strange error when resolving a security-scoped bookmark (SSB) in my screensaver. The code works fine for almost all users (even under Mojave), except for one user under Mojave (10.14.6). Here is the code in question: NSError * error; BOOL isStale = NO; NSURL * dir_location = [NSURL URLByResolvingBookmarkData: bookmark options: NSURLBookmarkResolutionWithSecurityScope relativeToURL: nil bookmarkDataIsStale: & isStale error: & error]; The method returns NULL, and error says: Error Domain=NSCocoaErrorDomain Code=259 The file couldn't be opened because it isn't in the correct format. The SSB points to a directory in the user's home. I can see that in the log, because in my code I do NSDictionary * dict = [NSURL resourceValuesForKeys: [NSArray arrayWithObjects: NSURLPathKey, nil] fromBookmarkData: bookmark ]; and then I output [dict objectForKey: NSURLPathKey] . The user has opened the directory in the previous run, and I am creating and storing an SSB with this code: NSError * systemErro
1
0
915
Aug ’20
Reply to UICloudSharingController won't allow entering the sharing recipient information
When the UICloudSharingController crashes it gives error: 2020-08-31 22:33:46.303978-0500 rpxg[3789:1613179] [CK] Got a connection error for operation 49B9977581013179: Error Domain=NSCocoaErrorDomain Code=4097 connection to service on pid 0 named com.apple.cloudd UserInfo={NSDebugDescription=connection to service on pid 0 named com.apple.cloudd}
Sep ’20
[NSPersistentCloudKitContainer] CloudKit integration forbids renaming 'OldEntityName' to 'NewEntityName'. Older devices can't process the new records. How to proceed?
I used a renaming identifier to rename an Entity Name, but it doesn't seem to work and it causes a crash at start during in-place migration. How to rename an Entity Name when using NSPersistentCloudKitContainer? I get this exception at start: CloudKit integration forbids renaming 'OldEntityName' to 'NewEntityName'. Older devices can't process the new records. Unresolved error Error Domain=NSCocoaErrorDomain Code=134110 An error occurred during persistent store migration. App is not in production, need a way to rename 'OldEntityName' to 'NewEntityName'. How to achieve this?
1
0
918
Sep ’20
Why does my AudioUnit (AUv3) host lose XPC connection immediately after instantiation in iOS 14?
I'm an author of an AudioUnit host for iOS written in Objective C. In iOS 14, it began crashing on instantiation of any AU instrument, but the same AUs work in other hosts. If I put a break in the completion handler for instantiateWithComponentDescription, I immediately see an error as soon as I step out (but not continue), before anything else is called: Error in destroying pipe Error Domain=NSCocoaErrorDomain Code=4099 The connection on anonymousListener or serviceListener from pid 630 was invalidated from this process. UserInfo={NSDebugDescription=The connection on anonymousListener or serviceListener from pid 630 was invalidated from this process.} Sometimes it's a 4097. The next call into the plugin crashes the host, of course. In the log, the only entry that catches my eye is this: default 14:38:47.105386-0700 MPC Pro 2 [u 01E943B9-94B5-4BF2-8926-9E843EB6482D:m (null)] [()] invalidating startup assertion default 14:38:47.106987-0700 runningboardd Invalidating assertion 32-637-996 (target:[xpcse
1
0
1.2k
Sep ’20