I'm still wrapping my head around the migration away from NSError. In Xcode 8 Beta 3, here's how I detected a StoreKit error that was not a cancel:// transaction is an SKPaymentTransaction switch transaction.transactionState { case .failed: if let code = transaction.error?.code, code != SKErrorCode.paymentCancelled.rawValue { // handle the error...The above does not compile because the error property is no longer an NSError, which means it has no code property. I haven't been able to figure out how to migrate this code appropriately. Any help would be appreciated.
Search results for
NSCocoaErrorDomain Error Code 4
170,041 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Getting same kind of issue for code coverage report.Please provide the solution.Using Xcode 11.2.1.xccov[4508:118225] Requested but did not find extension point with identifier Xcode.IDEFoundation.IDEResultKitSerializationConverterError: Error Domain=XCCovErrorDomain Code=0 Failed to load coverage report for scheme action 'Testing with scheme' in result bundle UserInfo={NSLocalizedDescription=Failed to load coverage report for scheme action 'Testing with scheme' in result bundle, NSUnderlyingError=0x7fd4f401f3f0 {Error Domain=NSCocoaErrorDomain Code=260 The file “action.xccovreport” couldn’t be opened because there is no such file. UserInfo={NSFilePath=/tmp/action.xccovreport, NSUnderlyingError=0x7fd4f4022980 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}}}}
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
If I change line 7 to:let url = URL(fileURLWithPath: path)I get this new error:Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file “Documentsrezepte.csv” in the folder “7628BDA0-E8BD-4058-B49F-9A3B70F1FC02”. UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/7628BDA0-E8BD-4058-B49F-9A3B70F1FC02/Documentsrezepte.csv, NSUnderlyingError=0x170055c00 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}}
Topic:
Programming Languages
SubTopic:
Swift
Tags:
same for me using google maps foe iOS. maybe a google issue, Burt for sure apple does not help finding what. Google Maps SDK for iOS version: 8.4.0.0 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.}
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Hi! I am trying to Download a Sales Report but getting the following error - You have access to more than one account. Please specify an account number in your properties file or on the command line. To see a list of accounts, run the command getAccounts, any ideas on how to solve this issue? The error code is 214. Thanks in advance, Yaar
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect API
Tags:
App Store Connect API
Hi, I am a new coder and I have 3 code errors in my app that I am making. Which are Value of type 'String' has no member 'frame' : line 174 Cannot infer contextual base in reference to member 'all': line 176 Closure containing a declaration cannot be used with function builder 'ViewBuilder' : line 186 Finally, here is my code: import SwiftUI struct ContentView: View { @State private var currentCount = UserDefaults.standard.integer(forKey: currentCount) @State private var isDecrementOn = false func performsMath(isSubtract: Bool, num: Int) { var result = self.currentCount if isSubtract==true{ result -= num } else { result += num if result = 0 { currentCount = result UserDefaults.standard.set(currentCount, forKey: currentCount) } } } var body: some View { ScrollView { VStack(alignment: .center, spacing: 10) { HStack(alignment: .center, spacing: 20) { Button(action: { self.isDecrementOn.toggle() }) { Image(systemName: isDecrementOn ? minus : plus) .font(.headline) .foregroundColor(.blue
This is my second application that I am uploading to my iPad but I can't Build on it. The error: ode signing is required for product type 'Application' in SDK 'iOS 8.4'. Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) matching the team ID “XXXXXXXXX” were found.This application is RSC Demo that you can download from RedPark SDK Download at www.redpark.com/developers/ What can I do?
If am using that:BOOL test = [pngData writeToURL:[NSURL URLWithString:saveFileName] options:NSDataWritingAtomic error:&myError]; NSLog(@%@,myError); //BOOL test = [pngData writeToURL:[NSURL URLWithString:saveFileName] atomically:YES]; if(test == true){ //NSLog(@Gespeichert); NSLog(@Saved as %@,[saveFileName stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]); }else{ NSLog(@Error request: Failed to save Images %@,myError); }i get this Error:2018-08-23 16:01:00.016 ImageToAsset[779:43332] Absoluter String from NSURL file:///Volumes/UserDisk/users/sven/Desktop/New/Test/iPhone%20Xcode%20Asset2018-08-23 16:01:00.016 ImageToAsset[779:43332] FileName iPhone Xcode Asset2018-08-23 16:01:00.034 ImageToAsset[779:43332] file:///Volumes/UserDisk/users/sven/Desktop/New/Test/iPhone%20Xcode%20Asset20@2x.png2018-08-23 16:01:00.073 ImageToAsset[779:43332] Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file “iPhone Xcode As
Topic:
Developer Tools & Services
SubTopic:
Developer Forums
Tags:
Tanks for the answer, The Logs from Xcode (on the Mac Book Air) are the following: 5 Reentrant message: kDragIPCWithinWindow, current message: kDragIPCWithinWindow ✅ PDF détecté ❌ Échec lors de la copie : Error Domain=NSCocoaErrorDomain Code=4 Le fichier « brochure_nissan_eNV200_evalia-2.pdf » n’existe pas. UserInfo={NSSourceFilePathErrorKey=/Users/jean-philippegreaux/Downloads/brochure_nissan_eNV200_evalia-2.pdf, NSUserStringVariant=( Copy ), NSDestinationFilePath=/Users/jean-philippegreaux/Library/Containers/jgreaux.gestion-de-comptes/Data/Documents/2025/7/justificatif_80.pdf, NSFilePath=/Users/jean-philippegreaux/Downloads/brochure_nissan_eNV200_evalia-2.pdf, NSURL=file:///Users/jean-philippegreaux/Downloads/brochure_nissan_eNV200_evalia-2.pdf, NSUnderlyingError=0x600002a8ab80 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}} ❌ Échec du traitement du fichier 5 Reentrant message: kDragIPCCompleted, current message: kDragIPCLeaveApplicat
Topic:
App & System Services
SubTopic:
Core OS
Tags:
The operation can’t be completed because one or more required items can’t be found.(Error code -43).When does this occur? It occurs when I attempt to drag a file/folder to the trash. However, my I use the desktop trash associated with Path Finder, the code will appear, but the items go into the trash and I can empty the trash successfully.Any advice on this issue?
When signing my app, I'm greeted with a Code Signing 'App Name' Error. It gives me distribution logs, which make no sense to me and Developer Support suggested I asked here IDEDistribution.standard.log IDEDistribution.verbose.log
Ok, it turned out that is was not a bug in AVAudioUnitSampler - running the same code on macOS gave some additional hints... unable to obtain configuration from file:///Library/Preferences/com.apple.ViewBridge.plist due to Error Domain=NSCocoaErrorDomain Code=256 (null) UserInfo={NSFilePath=/Library/Preferences/com.apple.ViewBridge.plist, NSUnderlyingError=0x600003a9e610 {Error Domain=NSPOSIXErrorDomain Code=24 Too many open files}} ...with the second sampler, the app exceeded the soft limit for currently opened files per process (=256). The crashes afterwards were caused by failing file handles in other parts of the app. A workaround can be found at https://stackoverflow.com/a/62074374/1993349 ... done.
Topic:
App & System Services
SubTopic:
Core OS
Tags:
UIImage *image = [UIImage imageNamed:@bg.png]; NSData *imageData = UIImageJPEGRepresentation(image, 1.0); [[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{ PHAssetCreationRequest *request = [PHAssetCreationRequest creationRequestForAsset]; [request addResourceWithType:PHAssetResourceTypePhoto data:imageData options:nil]; } completionHandler:^(BOOL success, NSError *error) { NSLog(@); }];This code works well with iOS 8.x. But its fails with error code -1 in iOS 9.x.The error is NSCocoaErrorDomain Code=-1 ERROR: PLXPCDictionarySetArray unable to serialize array ( { creationOptions = <null>; data = <ffd8ffe0 ………>; fileURL = <null>; type = 1; }) error Error Domain=NSCocoaErrorDomain Code=3851 Property list invalid for format: 200 (property lists cannot contain objects of type 'CFNull') UserInfo={NSDebugDescription=Property list invalid for format: 200 (property lists cannot contain ob
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:
Thanks for this post. I didn't consider that it would return errors in addition to an image. It makes it impossible to know when the thumbnail generator is 'finished' with a request, which harms progress reporting. All in all this API's behavior is poorly documented and I have no idea what to expect from it. There are multiple files in my iCloud Drive that it just decides to not return thumbnails for.I am seeing the same errors you mention:error: Optional(Error Domain=QLThumbnailErrorDomain Code=2 No cached thumbnail) Error Domain=NSCocoaErrorDomain Code=4865 requested key: 'root' UserInfo={NSDebugDescription=requested key: 'root'}However, there are numerous files in my case that do not complete successfully with an image. (Despite being image files)
Topic:
App & System Services
SubTopic:
Core OS
Tags: