Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Reply to Error Domain=NSCocoaErrorDomain Code=4099
Same issue Xcode 13.3.1, IOS 15.3 [8086:326074] [Client] 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.}
May ’22
Reply to CloudKit + NSPersistentCloudKitContainer: CKError "Service Unavailable" (6/2022); "Request failed with http status code 503"
Today I have different errors! CoreData: error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _performSetupRequest:]_block_invoke(1106): : Failed to set up CloudKit integration for store: (URL: file:///var/mobile/Containers/Data/Application/7C41756B-0596-4010-B35D-3F98B27F83A7/Library/Application%20Support/com.grantdavisinteractive.Mimir/cloud-library.sqlite) Error Domain=NSCocoaErrorDomain Code=134060 A Core Data error occurred. UserInfo={NSLocalizedFailureReason=The mirroring delegate could not initialize because it's store was removed from the coordinator.} CoreData: error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate recoverFromError:](2115): - Attempting recovery from error: Error Domain=NSCocoaErrorDomain Code=134060 A Core Data error occurred. UserInfo={NSLocalizedFailureReason=The mirroring delegate could not initialize because it's store was removed from the coordinator.} CoreData: error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate recoverFromError:]_block_invoke(2134)
May ’22
Reply to Debugging and fixing rPaths for GateKeeper?
PS: These are the log entries that seem relevant. The last one is about an unresolved rpath. 2022-05-01 08:48:26.907551+0200 0x12fa3c Default 0x0 694 2 lsd: (LaunchServices) [com.apple.launchservices:default] Non-fatal error enumerating at , continuing: Error Domain=NSCocoaErrorDomain Code=260 The file “PlugIns” couldn’t be opened because there is no such file. UserInfo={NSURL=PlugIns/ -- file:///Volumes/Nodelab/nodelab.app/Contents/, NSFilePath=/Volumes/Nodelab/nodelab.app/Contents/PlugIns, NSUnderlyingError=0x7fdca7184270 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}} 2022-05-01 09:27:56.604669+0200 0x12fa3c Default 0x0 694 2 lsd: (LaunchServices) [com.apple.launchservices:default] Non-fatal error enumerating at , continuing: Error Domain=NSCocoaErrorDomain Code=260 The file “PlugIns” couldn’t be opened because there is no such file. UserInfo={NSURL=PlugIns/ -- file:///Volumes/Nodelab/nodelab.app/Contents/MacOS/PySide6/Qt/lib/QtWebEngineCore.framework/Helpers/QtWebEngi
Topic: Code Signing SubTopic: General Tags:
May ’22
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
Apr ’22
Simulator keeps stopping to work
Hi, I am new to Xcode and just starting to write my first lines of code. When I start my app on the Simulator it works fine the first time. Sometimes one code change also works, but then I always run into problems. The Simulator does not update or run properly anymore. I tried killing all Simulator processes, restarting xCode, stopping most other running apps, nothing worked but to reboot. Anyone an idea what to do? Here are two of the error messages that pop up: Error message 1 Couldn’t communicate with a helper application. Domain: NSCocoaErrorDomain Code: 4099 Recovery Suggestion: Try your operation again. If that fails, quit and relaunch the application and try again. User Info: { DVTErrorCreationDateKey = 2022-04-14 18:58:11 +0000; IDERunOperationFailingWorker = _IDEInstalliPhoneSimulatorWorker; NSDebugDescription = The connection to service named com.apple.l s d.installation was invalidated: failed at lookup with error 32 - Broken pipe.; } -- Analytics Event: com.apple.dt.IDERunOperationWorkerF
4
0
2.9k
Jun ’22
Sandboxed app extensions connecting to not sandboxed XPC service
Hi, I'm developing an macOS app which includes an agent (registered as login item) which is intended to run for entire duration of user's login session. The agent's bundle also includes few application extensions. The application is intended to be distributed outside of App Store. It is not going to be sandboxed but rather notarized, so I'm using hardened runtime. I want to add some application extensions (for example: a file provider etension) to be bundled with the agent. The extensions are sandboxed and belong to the same application group as main application and the agent. Extensions should do some IPC calls on the running agent process. I think the most convenient solution for the IPC would be to use the XPC service, so, in the agent, I'am creating an XPC listener registered to mach service name. Now I want to connect to the XPC service provided by the agent from the app extensions. This, however, fails with the following error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service
3
0
3.6k
Apr ’22
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
SPM - "“resource_bundle_accessor.swift” couldn’t be linked to “Intermediates” because an item with the same name already exists
Hello I'm having a problem with the SwiftUI preview, I created a package, which has resources and I'm trying to run the preview inside the package. But the preview gives the following error: PreviewUpdateTimedOutError: Updating took more than 5 seconds Updating a preview from in XCPreviewAgent.app (6693) took more than 5 seconds. When I generate the diagnosis and see the SerializationErrors.txt it gives the following message: Error Domain=NSCocoaErrorDomain Code=516 “resource_bundle_accessor.swift” couldn’t be linked to “Intermediates” because an item with the same name already exists. UserInfo={NSSourceFilePathErrorKey=/Users/********/Library/Developer/Xcode/DerivedData/********-glsxbeukhhwappbnunipftxmhjvi/Build/Intermediates.noindex/Previews/********/Intermediates.noindex/***** ***.build/Debug-iphonesimulator/********.build/DerivedSources/resource_bundle_accessor.swift, NSUserStringVariant=( Link ), NSDestinationFilePath=/var/folders/xt/s6r881rx7bjfcw_mds72nxyw0000gp/T/previews-diagnostics-2022030
1
0
1.3k
Mar ’22
Error on uploading pdf file to server
I am working on uploading pdf file to server using UIDocumentPicker. It selects the file correctly but while fetching the file content it is throwing this error: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=257 The file “file-sample_150kB.pdf” 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/file-sample_150kB.pdf, NSUnderlyingError=0x28225c5a0 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}} Here my code for uploading file to server. func uploadDocumentRequest(targetVC : UIViewController, args: [String : String], url: URL) { let boundary = generateBoundaryString() var body = Data() for (key, value) in args { body.append(Data(--(boundary)rn.utf8)) body.append(Data(Content-Disposition: form-data; name=(key)rnrn.utf8)) body.append(Data((value)rn.utf8)) } let filePathKey = file let filename = doc_file.pdf let fileData: Data =
1
0
1.3k
Mar ’22
Reply to M1 Xcode 12.5 can't paste clipboard
Am I the only one that's also seeing this issue on device? I started noticing it with iOS 14 and it's continued intermittently on iOS 15 too. Every once in a while my app just stops being able to paste text that was copied from anywhere. Force-quitting the app fixes it so that the app can paste again. I've never gathered a sysdiagnose or anything, but I do have logs from when it's happened in the simulator too. 2022-01-19 22:57:34.052240-0600 Testing[13092:3724690] [scoped] <0x283552940 file:///var/mobile/Library/Caches/com.apple.Pasteboard/eb77e5f8f043896faf63b5041f0fbd121db984dd/e773525714f94678cc813686e707bb53ec1d2285>: internal sandbox error for 2022-01-19 22:57:34.060486-0600 Testing[13092:3724763] [claims] Upload preparation for claim 2B831962-7238-4C74-B05E-396F22C916EA completed with error: Error Domain=NSCocoaErrorDomain Code=257 The file “e773525714f94678cc813686e707bb53ec1d2285” couldn’t be opened because you don’t have permission to view it. UserInfo={NSURL=file:///var/mobile/Libra
Feb ’22
Reply to PHPickerViewController fails to load image
Same problem here. I'm running in a iPhone X with iOS 15.3.1 I have two photos in the same folder. The first fails when result.itemProvider.loadObject(ofClass: UIImage.self) [0] (null) public.jpeg : /private/var/mobile/Containers/Shared/AppGroup/F925A8FA-C8EC-42CB-8990-0370E73A9808/File Provider Storage/photospicker/version=1&uuid=3034711E-F03B-44CD-B180-659775A56EA6&mode=current.jpeg The second is ok. [0] (null) public.jpeg : /private/var/mobile/Containers/Shared/AppGroup/F925A8FA-C8EC-42CB-8990-0370E73A9808/File Provider Storage/photospicker/version=1&uuid=299A6E28-21CC-440E-8C1B-A05F479081C0&mode=current.jpeg I have tried also with result.itemProvider.loadFileRepresentation(forTypeIdentifier: representation), with UTType.jpeg.identifier, and the same error. PHPickerResult(itemProvider: {types = ( public.jpeg )}, assetIdentifier: Optional(3034711E-F03B-44CD-B180-659775A56EA6/L0/001)) 2022-02-24 23:45:49.484182+0100 App[1344:394073] [claims] Upload preparation for claim 8E1CBDF5-66F2-4453-87
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’22
Cannot migrate store in-place: CloudKit integration forbids renaming
Background Core Data driven app, successfully using NSPersistentCloudKitContainer for some time. App is written 100% SwiftUI, currently targeting iOS and macOS targets. Development only, no production release yet. Error... ... Fatal error: Unresolved error Error Domain=NSCocoaErrorDomain Code=134110 An error occurred during persistent store migration. ... reason=Cannot migrate store in-place: CloudKit integration forbids renaming 'foodServes' to 'foodPortions'. Older devices can't process the new relationships. An unusual problem for me... the renaming occurred between version 7 and version 8 of the Core Data model and this is version 13. So if I revert back to version 12, there is no issue. It is only when I add the new Entity in model version 13 that the error occurs. The new entity incudes a relationship back to two other existing entities, but not the Food entity that contains the foodServes -> foodPortions renamingID. To be clear, the error relates to a renamingID that was implemented in the
1
0
2.0k
Feb ’22
Add and setup accessories with payload doesn't work.
Hello. I'm working on application for managing accessories our partner manufactures. I'm developing PoC of WAC provisioning and I chose HomeKit for that. I'm trying to add our accessory using addAndSetuppAccessories with payload(url) I took from accessory QR code. But is doesn't work. On some devices calling method produces nothing in logs, on some I receive log: [default] Failed to deserialize object of classes: {( HMAccessorySetupCompletedInfo )}, from data {length = 135, bytes = 0x62706c69 73743030 d4010203 04050607 ... 00000000 0000005b }, with error: Error Domain=NSCocoaErrorDomain Code=4865 requested key: 'root' UserInfo={NSDebugDescription=requested key: 'root'} Apart of logs my view controller appearance changes as like some modal controller is going to be presented over it. But never happens. There is no information on Apple Developer web site or stackoverflow or any other resource. How can I resolve it? As a developer of iOS app should I have MFi license? Should I include some specific enti
1
0
766
Jan ’22
Reply to PHPickerViewController fails to load image
UPDATE: I tried using loadFileRepresentation instead. itemProvider.loadFileRepresentation(forTypeIdentifier: UTType.jpeg.identifier) { (url, error) in guard let url = url else { print(Failed to load url) return } And this time I get the following error on the console. `Error copying file type public.jpeg. Error: Error Domain=NSItemProviderErrorDomain Code=-1000 Cannot load representation of type public.jpeg UserInfo={NSLocalizedDescription=Cannot load representation of type public.jpeg, NSUnderlyingError=0x600001d26430 {Error Domain=NSCocoaErrorDomain Code=4101 Couldn’t communicate with a helper application. UserInfo={NSUnderlyingError=0x600001dbcb70 {Error Domain=PHAssetExportRequestErrorDomain Code=0 The operation couldn’t be completed. (PHAssetExportRequestErrorDomain error 0.) UserInfo={NSLocalizedDescription=The operation couldn’t be completed. (PHAssetExportRequestErrorDomain error 0.), NSUnderlyingError=0x600001dbca80 {Error Domain=PAMediaConversionServiceErrorDomain Code=2 The operation could
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’22
Reply to JSON DATA CORRUPTED ERROR
ataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: The given data was not valid JSON., underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 Invalid value around line 1, column 0. UserInfo={NSDebugDescription=Invalid value around line 1, column 0., NSJSONSerializationErrorIndex=0}))) dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/eshansingh/Library/Developer/Xcode/DerivedData/EmployeeManagement-bfquzjwgjywziwfrfyygkodtlgop/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’22