Search results for

NSCocoaErrorDomain Error Code 4

170,045 results found

Post

Replies

Boosts

Views

Activity

Reply to How do I use a Thread Network API in IOS
It works in iOS 17.1 using asynchronous code let extPanIdHex = yourExtPanId if let extPadIdData = Data(hexString: extPanIdHex) { let thClient = THClient() Task { let credentials = try await thClient.credentials(forExtendedPANID: extPadIdData) } } Sinchronous code still has some problems This one doesn't work let thClient = THClient() thClient.retrieveCredentials(forExtendedPANID: extPadIdData) { credentials, error in NSLog() } Returned error Client: -[THClient retrievePreferredCredentials:]_block_invoke - Error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service with pid 396 named com.apple.ThreadNetwork.xpc was invalidated from this process. UserInfo={NSDebugDescription=The connection to service with pid 396 named com.apple.ThreadNetwork.xpc was invalidated from this process.} But this one oddly works let thClient = THClient() thClient.retrieveCredentials(forExtendedPANID: extPadIdData) { credentials, error in l
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’23
Refresh Playgrounds 4 code evaluation
It happens a lot that code evaluation in Playgrounds (the labels that say you have compile bugs or warnings in your code) gets stuck. So in order to fix them I sometimes must force quit the whole Playgrounds app. Sometimes I even have to completely restart iPadOS. I know triggering Build in Xcode usually fixes those problems in Xcode... so I wonder: is there, or, why isn’t there… a Playgrounds alternative to Xcode’s Build command? (Using Playgrounds 4.0.2 on iPadOS 15.4.1 running on the M1 iPad Pro)
1
0
1.2k
Apr ’22
Reply to File transfer issue from iPhone to Watch after iOS 17.5 & WatchOS 10.5 update
Also having the very same problem here with my app: -[WCFileStorage persistOutgoingFileTransfer:] error serializing file transfer , transferring: YES> due to Error Domain=NSCocoaErrorDomain Code=4866 Caught exception during archival: This object may only be encoded by an NSXPCCoder. The file arrives at the phone but the didFinishFileTransfer on watch's delegate never gets called. Because of this, the files are kept in queue and keep being synced to phone app repeatedly consuming watch battery. Also happens on simulator. iOS 17.5.1 watchOS 10.5.
Topic: App & System Services SubTopic: General Tags:
Jul ’24
Reply to I want to access twitter filter search v2 endpoint in ios app
Ok, I tried this: static func callFilterSearch() { let Url = String(format: https://api.twitter.com/2/tweets/search/stream?place.fields=contained_within&user.fields=location&tweet.fields=geo) guard let serviceUrl = URL(string: Url) else { return } let parameterDictionary = [:] var request = URLRequest(url: serviceUrl) request.httpMethod = POST request.setValue(Bearer token, forHTTPHeaderField: Authorization) request.setValue(Application/json, forHTTPHeaderField: Content-Type) guard let httpBody = try? JSONSerialization.data(withJSONObject: parameterDictionary, options: []) else { return } request.httpBody = httpBody let session = URLSession.shared session.dataTask(with: request) { (data, response, error) in if let response = response { print(response) } if let data = data { do { let json = try JSONSerialization.jsonObject(with: data, options: []) print(json) } catch { print(error) } } }.resume() } But got this error: Error Domain=NSCocoaErrorDomain Code
Topic: App & System Services SubTopic: General Tags:
Sep ’21
Reply to Can't generate live photo in iOS 15.1
@tpian928 did you get this functioning in the end? I see no real difference between your code and mine (although obviously more code is needed to generate a live photo), but it's still not functioning on iOS 15.1. On attempting to add the paired video and photo to the library we get a non-nil assetPlaceholder but the completion handler is not called by [[PHPhotoLibrary sharedPhotoLibrary] performChanges:completionHandler:] and we see errors like this in the log: 2021-11-09 13:54:48.122501+0000 REDACTED[480:23929] [error] error: XPC: synchronousRemoteObjectProxyWithErrorHandler encountered error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service created from an endpoint was invalidated: failed to check-in, peer may have been unloaded: mach_error=10000003. UserInfo={NSDebugDescription=The connection to service created from an endpoint was invalidated: failed to check-in, peer may have been unloaded: mach_error=100
Nov ’21
Reply to FailedToAnalyzeBuiltTargetDescription: Could not analyze the built target description for Views to create the preview.
I am experiencing the same issue on Xcode 16.1 (16B40), when merged binary is enabled, erroring (redacted my library name with <>): | ================================== | | | CouldNotParseInput | | | | ================================== | | | | | FailedParsingMachObjectFile | | | | | | MachO data could not be parsed for: <> | | | Reason: Underlying failure reading data | | | Data header bytes: [] | | | Data header ASCII: | | | | | | ================================== | | | | | | | NSError.NSCocoaErrorDomain.260: The file “<>” couldn’t be opened because there is no such file. | | | | | | | | NSCocoaErrorDomain (260): | | | | ==NSURL: <> -- file:/// | | | | ==NSFilePath: /<> | | | | | | | | ================================== | | | | | | | | | NSError | | | | | | | | | | NSError: Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory
Nov ’24
Reply to Core Data CloudKit stops syncing after incomprehensible archive error
as requested, I've created another feedback issue: FB15652576 on FB10392936, the error message is in the followup comments. here is the error from that issue - also an incomprehensible archive error. on that issue yes I had to lower the CloudKit operation rate to complete the upload - it took a month or 2 - it would be great if there was some mechanism for bulk uploads that bypass the throttles. But throttles shouldn't also corrupt the CloudKit database. not only would it throttle, but it would corrupt the database - the only way to recover was to reset the database and reload the schema and start from scratch- not possible in production. > [error] error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _importFinishedWithResult:importer:](1306): : Import failed with error: Error Domain=NSCocoaErrorDomain Code=4864 *** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: incomprehensible archive (0x53, 0x
Nov ’24
Error Domain=FamilyControls.FamilyControlsError Code=2 "(null)"
An error was reported when requesting permissions on devices with iOS 16.2 16.3. It is not an emulator. Through the log records, the following Error message appears Error Domain=FamilyControls.FamilyControlsError Code=3 (null) Error Domain=FamilyControls.FamilyControlsError Code=4 (null) Error Domain=FamilyControls.FamilyControlsError Code=5 (null) func requestScreenTime() async -> Bool { do { try await AuthorizationCenter.shared.requestAuthorization(for: .individual) return AuthorizationCenter.shared.authorizationStatus == .approved } catch { print((error)) return false } }
1
0
89
May ’25
code signing error
We are encountering a persistent code signing error with in-app purchase capabilities in our iOS app. Despite having the com.apple.developer.in-app-purchase entitlement properly configured in the app's entitlements file and the In-App Purchase capability enabled in both Xcode and the App ID configuration in the Apple Developer Portal, we continue to receive the error: The provisioning profile 'iOS Team Provisioning Profile: does not include the com.apple.developer.in-app-purchase entitlement. We have attempted multiple solutions including: Regenerating provisioning profiles Cleaning and rebuilding the project Switching between automatic and manual signing Removing and re-adding the in-app purchase capability Verifying all entitlements and capabilities configurations The error persists despite the entitlement being correctly set in the entitlements file and the capability being enabled in the App ID. This appears to be an issue with how the provisioning profile is being gene
1
0
260
Feb ’25
Reply to Simulator issues with AUv3 Example code
I had this same error, in case I am compiling for watchOS.2017-07-07 18:18:19.403968-0300 TestingAV WatchKit Extension[7368:2935401] [audiocomp] 178: registration server connection invalidated2017-07-07 18:18:19.404003-0300 TestingAV WatchKit Extension[7368:2928791] [audiocomp] 170: registration server proxy error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.audio.AudioComponentRegistrar was invalidated. UserInfo={NSDebugDescription=The connection to service named com.apple.audio.AudioComponentRegistrar was invalidated.}
Topic: Media Technologies SubTopic: Audio Tags:
Jul ’17
An error occurred on the xpc connection to setup the background session: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.nsurlsessiond was invalidated from this process." UserInfo={NSDebugDescription=The conne
I am facing this issue when trying to access AWS S3 through AWS Cognito and Amplify on XCUITest build, iOS 13.0 Simulator. IT works on simulators with
0
0
890
Sep ’20
Reply to SwiftData iCloud sync breaks after disabling and re-enabling iCloud
Thanks for the suggestion, @DTS Engineer, I saved the sysdiagnose and filtered it to errors. This is using a basic example project from Xcode. I'm running it on iPhone and Mac and when saving items from iPhone I can see them appear in CloudKit database, but they don't get synced to the Mac. And these are 5 errors that are looping when the Mac is trying to sync (I assume): 1 error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _performSetupRequest:]_block_invoke(1242): : Failed to set up CloudKit integration for store: (URL: file:///Users/admin/Library/Containers/ca.maybelater.SequoiaSync2/Data/Library/Application%20Support/default.store) 2 error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate recoverFromError:](2312): - Attempting recovery from error: 3 Error retrieving daemon to get network transfer endpoint: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.cloudd was invalidated: fail
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’24
What is Error Code 36
Good evening, I have several files stored in my iCloud Drive that I am attempting to transfer over to a friends external hard drive. The files consist of a little over 2,000 photos and 30 videos. All of the photos are either .jpg or .png. As for the movies, they are all either a .MOV or .mp4 file type. The issue that I am running into is that each time I attempt to transfer these files from my iCloud Drive and into the external hard I get an error message that reads as follows: The Finder can't complete the operation because some data in file name can't be read or written. (Error code - 36). Has anyone run into this error code before?The interesting thing is that I can open and view the files just fine from my iCloud Drive. The issue only arises when I attempt to transfer the files. The external hard drive that I am attempting to transfer the files to is already being used as a Time Machine Back Up source for another machine. Any feedback or assistance that can be
1
0
422
Jan ’16
NSURL ERROR domain Error code = 999
Please advise. We use this method, and unable to pass the form , and stuck at the error code Domain=NSURLErrorDomain Code=-999 (null) NSURL* URL = [[NSBundle mainBundle] URLForResource:@cameraProxy.html withExtension:nil subdirectory:@www ]; [theWebView loadRequest:[NSURLRequest requestWithURL:URL]]; 2022-08-05 17:51:46.290824+0900 SMSC[35139:1191314] ERROR : Error Domain=NSURLErrorDomain Code=-999 (null) 2022-08-05 17:51:46.295358+0900 SMSC[35139:1191314] MainViewController url = (null) 2022-08-05 17:51:46.295900+0900 SMSC[35139:1191314] 35139: CFNetwork internal error (0xc01a:/Library/Caches/com.apple.xbs/Sources/CFNetwork_Sim/CFNetwork-1327.0.4/Protocol/HTTPProtocol.cpp:274)
4
0
4.9k
Aug ’22