Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

165,590 results found

Post

Replies

Boosts

Views

Activity

com.apple.arkit.ardisplaylink.0x2832f0840 (37): EXC_BAD_ACCESS (code=2, address=0x1590901710)
com.apple.arkit.ardisplaylink.0x2832f0840 (37): EXC_BAD_ACCESS (code=2, address=0x1590901710) ARKit Face Tracking The above error occurs intermittently within 20 minutes of calling the Arkit Face Tracking. We are developing it by referring to the link below. Github Unity 2021.1.1f1, 2020.3.11f1, 2020.3.2f1, etc The same error is occurring in all versions. Below is the link for similar errors. issuetracker
0
0
590
Jun ’21
In-App Purchase in apple review gives error:SKErrorDomain with code 2
Hi, My app in-app purchase downloading from TestFlight or debug Xcode making purchase works correctly but it reject in apple review because during the test purchase didn’t work and occurred error:SKErrorDomain with code 2. This error in general appear when during the purchase user click Cancel. I have contacted apple board, they said that Your app does not comply with App Store Review Guideline 2.1. So how can i try in production since in TestFlight and debug it works? I really confused how to try solution for it?
2
0
1.6k
Jan ’22
AppTransaction.shared throws StoreKitError code=2 in macOS TestFlight while deviceVerificationID is available
I am implementing device authentication for a macOS app. Our iOS app uses App Attest, but App Attest is not available on macOS, so we are evaluating StoreKit's AppTransaction plus AppStore.deviceVerificationID as the macOS equivalent signal. The issue: in a macOS app installed through TestFlight, AppStore.deviceVerificationID is available, but AppTransaction.shared throws StoreKitError code=2. I reproduced this in a focused standalone macOS test app with no backend and no custom dependencies. Environment: Platform: macOS Distribution: TestFlight App Store Connect app ID: 6769568350 Bundle ID: com.soundcity.AppTransactionProbe App version: 1.0 Build: 1 Observed output from the TestFlight-installed app: Bundle ID: com.soundcity.AppTransactionProbe App version: 1.0 Build: 1 deviceVerificationID available: true deviceVerificationID prefix: CA91ED5D... AppTransaction.shared threw error: StoreKitError; domain=StoreKit.StoreKitError; code=2 The relevant code path is essen
4
0
1k
May ’26
Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"
Hello, My App uses NSURLSession to send network requests. Recently, on the iOS 17.0 system version, I've noticed an increase in ENOENT errors. However, I'm unable to identify the cause from the logs. I would like to inquire if there have been any changes to NSURLSession in this version? Why would this error code occur? Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory UserInfo={NSErrorFailingURLStringKey=https://example.com, NSErrorFailingURLKey=https://example.com, _NSURLErrorRelatedURLSessionTaskErrorKey=( LocalDownloadTask <AC10B665-F59A-469C-876C-F88EEAEC26E1>.<11> ), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDownloadTask <AC10B665-F59A-469C-876C-F88EEAEC26E1>.<11>}, response:<NSHTTPURLResponse: 0x280b8d000> { URL: https://example.com } { Status Code: 200 To add on, according to the online logs, I found that the error occurs when users put the App into the background for a minute, then hot restart the App and bring it to
3
0
2.9k
Sep ’23
Swift Playgrounds Learn to Code 2 "Moving Further Forward" Page
One of the places I have noticed this on my MBP is in the Swift Playgrounds Learn to Code 2 Moving Further Forward Page. After successfully getting the expert to the end of the maze puzzle a box pops up. It talks about defining a function using parameters to make the function more reusable. To make the function work I wrote: let expert = Expert() func move(distance: Int) { for i in 1 ... distance { expert.moveForward() } } If I try to put moveForward() without expert. as a prefix I get an error. That's OK by me. However, the 'success box' after completing the maze says: Now that you've defined move, you'll be able to use is as a method on the Character and Expert types. For example, expert.move(distance: 4) will move the expert instance forward four tiles. I do not see how to define the function so that I can call it this way in Learn to Code 2. Not knowing the correct words to use in a search on the internet makes it difficult to find an answer. I tried querying define a f
4
0
3.6k
Jul ’20
WeatherKit: WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors Code=2 on iOS 26.2 (Simulator & Device)
Hello everyone, I’m experiencing a WeatherKit issue that occurs consistently on both the iOS 26.2 Simulator and a real device running iOS 26.2. Environment: Xcode: latest iOS: 26.2 Occurs on: Simulator AND physical device WeatherKit usage: via WeatherService API (not manual REST) Location Services: authorized (When In Use / Always) Issue: WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors Code=2 The operation couldn’t be completed. Already verified: WeatherKit capability is enabled for the App ID com.apple.developer.weatherkit entitlement is present Bundle ID matches the App ID App is signed with the correct Team ID Behavior is identical on Simulator and physical device Error occurs before any WeatherKit response is returned Questions: Is this a known issue with WeatherKit on iOS 26.2? Are there any known limitations or requirements for WeatherService related to WeatherDaemon validation? Is there a recommended way to diagnose why WeatherDaemon rejects the request with Code=2
3
0
592
Dec ’25
How to fix 2 errors in code that occurred when indexPath and textLabel were put in
import UIKit class MasterViewController: UITableViewController { var objects = [String]() var allWords = [String]() let object = objects[indexPath.row] cell.textLabel!.text = object override func awakeFromNib() { super.awakeFromNib() } override func viewDidLoad() { super.viewDidLoad() func startGame() { allWords.shuffle() title = allWords[0] objects.removeAll(keepCapacity: true) tableView.reloadData() } if let startWordsPath = NSBundle.mainBundle().pathForResource(start, ofType: txt) { if let startWords = NSString(contentsOfFile: startWordsPath, usedEncoding: nil, error: nil) { allWords = startWords.componentsSeparatedByString(n) as! [String] } } else { allWords = [silkworm] } startGame() / self.navigationItem.leftBarButtonItem = self.editButtonItem() } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() / } / override func numberOfSectionsInTableView(tableView: UITableView) -> Int { return 1 } override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> I
3
0
396
Aug ’15
Xcode 13.3 beta 2, code completion error
example: import Vapor struct MainController: RouteCollection { func boot(routes: RoutesBuilder) throws { routes.get(use: index(req:)) // ↑ there // if i typing `index` and chosen from selection picker, it will display `index(req: <#Request#>)` not `index(req:)` // but when i typing `self.index` and chosen from selection picker, it will work normal } } private extension MainController { func index(req: Request) throws -> EventLoopFuture { req.view.render(index, [title: Hi guys~, md_file: /index.md]) } } Environment: Xcode 13.3 beta 2 Intel chip, MacBook Pro (16-inch, 2019), macOS monterey 12.2.1 (21D62)
0
0
470
Feb ’22
Thread 1: EXC_BAD_ACCESS (code=2, address=0x7ff7b3bd5f90)
Greetings! I am making a small application according to the official tutorial from Apple, and I encountered such an error. Please help me solve this problem Error in @main Code import SwiftUI @main struct MeetUpApp: App { @State private var scrums = DailyScrum.sampleData var body: some Scene { WindowGroup { NavigationView { ScrumsView(scrums: $scrums) } } } }
0
0
235
Feb ’23
DeviceActivityReport extension not discovered at runtime (ClientError Code=2)
Hi I am trying to implement a minimal DeviceActivityReport extension. Setup: iOS app with FamilyControls authorization (status = approved) DeviceActivityReport displayed in SwiftUI Report extension embedded in PlugIns Correct NSExtensionPointIdentifier: com.apple.deviceactivityui.report-extension No NSExtensionPrincipalClass or storyboard Entitlements: com.apple.developer.family-controls com.apple.developer.family-controls.app-and-website-usage The app installs and runs correctly. Authorization is granted. However, the extension is never loaded: No logs from the extension (init/body/makeConfiguration never called) Console shows: Failed to discover the client's extension: DeviceActivityReportService... ClientError Code=2 Environment: Xcode 16.2 iOS device running iOS 18.x (latest available) The .appex is correctly embedded and signed. Question: Is there a known issue with DeviceActivityReport extensions not being discovered at runtime with this setup? Is additional configuration required beyo
2
0
501
Apr ’26
Error code: Thread 1: EXC_BAD_ACCESS (code=2, address=0x7ffee3239efc)
I am trying to access a label in a viewcontroller from a model class so that I can change the UILabel text every time there is an error, however, every time I create the viewcontroller object inside the model class this error always appear. If i delete the object declaration then everything will work just fine. Can anyone tell me how to solve this problem? Your comment will be highly appreciate! Model import Foundation import Firebase class SignUp{ let db = Firestore.firestore() var emailTextFieldCopy:UITextField! var passwordTextFieldCopy:UITextField! var fullnameTextFieldCopy:UITextField! var usernameCopy:UITextField! var errorText:String? var eError:String? let sup = SignUpVC() // here what caused the error //MARK: - SignUp func signUp(email:String, fullname:String, username:String, password:String){ Auth.auth().createUser(withEmail: email, password: password) { (authResult, error) in if let error = error { let errorText = error.localizedDescription if errorText == The email address is badly formatted.{ Di
0
0
423
Jul ’20
com.apple.arkit.ardisplaylink.0x2832f0840 (37): EXC_BAD_ACCESS (code=2, address=0x1590901710)
com.apple.arkit.ardisplaylink.0x2832f0840 (37): EXC_BAD_ACCESS (code=2, address=0x1590901710) ARKit Face Tracking The above error occurs intermittently within 20 minutes of calling the Arkit Face Tracking. We are developing it by referring to the link below. Github Unity 2021.1.1f1, 2020.3.11f1, 2020.3.2f1, etc The same error is occurring in all versions. Below is the link for similar errors. issuetracker
Replies
0
Boosts
0
Views
590
Activity
Jun ’21
In-App Purchase in apple review gives error:SKErrorDomain with code 2
Hi, My app in-app purchase downloading from TestFlight or debug Xcode making purchase works correctly but it reject in apple review because during the test purchase didn’t work and occurred error:SKErrorDomain with code 2. This error in general appear when during the purchase user click Cancel. I have contacted apple board, they said that Your app does not comply with App Store Review Guideline 2.1. So how can i try in production since in TestFlight and debug it works? I really confused how to try solution for it?
Replies
2
Boosts
0
Views
1.6k
Activity
Jan ’22
AppTransaction.shared throws StoreKitError code=2 in macOS TestFlight while deviceVerificationID is available
I am implementing device authentication for a macOS app. Our iOS app uses App Attest, but App Attest is not available on macOS, so we are evaluating StoreKit's AppTransaction plus AppStore.deviceVerificationID as the macOS equivalent signal. The issue: in a macOS app installed through TestFlight, AppStore.deviceVerificationID is available, but AppTransaction.shared throws StoreKitError code=2. I reproduced this in a focused standalone macOS test app with no backend and no custom dependencies. Environment: Platform: macOS Distribution: TestFlight App Store Connect app ID: 6769568350 Bundle ID: com.soundcity.AppTransactionProbe App version: 1.0 Build: 1 Observed output from the TestFlight-installed app: Bundle ID: com.soundcity.AppTransactionProbe App version: 1.0 Build: 1 deviceVerificationID available: true deviceVerificationID prefix: CA91ED5D... AppTransaction.shared threw error: StoreKitError; domain=StoreKit.StoreKitError; code=2 The relevant code path is essen
Replies
4
Boosts
0
Views
1k
Activity
May ’26
Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"
Hello, My App uses NSURLSession to send network requests. Recently, on the iOS 17.0 system version, I've noticed an increase in ENOENT errors. However, I'm unable to identify the cause from the logs. I would like to inquire if there have been any changes to NSURLSession in this version? Why would this error code occur? Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory UserInfo={NSErrorFailingURLStringKey=https://example.com, NSErrorFailingURLKey=https://example.com, _NSURLErrorRelatedURLSessionTaskErrorKey=( LocalDownloadTask <AC10B665-F59A-469C-876C-F88EEAEC26E1>.<11> ), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDownloadTask <AC10B665-F59A-469C-876C-F88EEAEC26E1>.<11>}, response:<NSHTTPURLResponse: 0x280b8d000> { URL: https://example.com } { Status Code: 200 To add on, according to the online logs, I found that the error occurs when users put the App into the background for a minute, then hot restart the App and bring it to
Replies
3
Boosts
0
Views
2.9k
Activity
Sep ’23
Swift Playgrounds Learn to Code 2 "Moving Further Forward" Page
One of the places I have noticed this on my MBP is in the Swift Playgrounds Learn to Code 2 Moving Further Forward Page. After successfully getting the expert to the end of the maze puzzle a box pops up. It talks about defining a function using parameters to make the function more reusable. To make the function work I wrote: let expert = Expert() func move(distance: Int) { for i in 1 ... distance { expert.moveForward() } } If I try to put moveForward() without expert. as a prefix I get an error. That's OK by me. However, the 'success box' after completing the maze says: Now that you've defined move, you'll be able to use is as a method on the Character and Expert types. For example, expert.move(distance: 4) will move the expert instance forward four tiles. I do not see how to define the function so that I can call it this way in Learn to Code 2. Not knowing the correct words to use in a search on the internet makes it difficult to find an answer. I tried querying define a f
Replies
4
Boosts
0
Views
3.6k
Activity
Jul ’20
WeatherKit: WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors Code=2 on iOS 26.2 (Simulator & Device)
Hello everyone, I’m experiencing a WeatherKit issue that occurs consistently on both the iOS 26.2 Simulator and a real device running iOS 26.2. Environment: Xcode: latest iOS: 26.2 Occurs on: Simulator AND physical device WeatherKit usage: via WeatherService API (not manual REST) Location Services: authorized (When In Use / Always) Issue: WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors Code=2 The operation couldn’t be completed. Already verified: WeatherKit capability is enabled for the App ID com.apple.developer.weatherkit entitlement is present Bundle ID matches the App ID App is signed with the correct Team ID Behavior is identical on Simulator and physical device Error occurs before any WeatherKit response is returned Questions: Is this a known issue with WeatherKit on iOS 26.2? Are there any known limitations or requirements for WeatherService related to WeatherDaemon validation? Is there a recommended way to diagnose why WeatherDaemon rejects the request with Code=2
Replies
3
Boosts
0
Views
592
Activity
Dec ’25
How to fix 2 errors in code that occurred when indexPath and textLabel were put in
import UIKit class MasterViewController: UITableViewController { var objects = [String]() var allWords = [String]() let object = objects[indexPath.row] cell.textLabel!.text = object override func awakeFromNib() { super.awakeFromNib() } override func viewDidLoad() { super.viewDidLoad() func startGame() { allWords.shuffle() title = allWords[0] objects.removeAll(keepCapacity: true) tableView.reloadData() } if let startWordsPath = NSBundle.mainBundle().pathForResource(start, ofType: txt) { if let startWords = NSString(contentsOfFile: startWordsPath, usedEncoding: nil, error: nil) { allWords = startWords.componentsSeparatedByString(n) as! [String] } } else { allWords = [silkworm] } startGame() / self.navigationItem.leftBarButtonItem = self.editButtonItem() } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() / } / override func numberOfSectionsInTableView(tableView: UITableView) -> Int { return 1 } override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> I
Replies
3
Boosts
0
Views
396
Activity
Aug ’15
Xcode 13.3 beta 2, code completion error
example: import Vapor struct MainController: RouteCollection { func boot(routes: RoutesBuilder) throws { routes.get(use: index(req:)) // ↑ there // if i typing `index` and chosen from selection picker, it will display `index(req: <#Request#>)` not `index(req:)` // but when i typing `self.index` and chosen from selection picker, it will work normal } } private extension MainController { func index(req: Request) throws -> EventLoopFuture { req.view.render(index, [title: Hi guys~, md_file: /index.md]) } } Environment: Xcode 13.3 beta 2 Intel chip, MacBook Pro (16-inch, 2019), macOS monterey 12.2.1 (21D62)
Replies
0
Boosts
0
Views
470
Activity
Feb ’22
Thread 1: EXC_BAD_ACCESS (code=2, address=0x7ff7b3bd5f90)
Greetings! I am making a small application according to the official tutorial from Apple, and I encountered such an error. Please help me solve this problem Error in @main Code import SwiftUI @main struct MeetUpApp: App { @State private var scrums = DailyScrum.sampleData var body: some Scene { WindowGroup { NavigationView { ScrumsView(scrums: $scrums) } } } }
Replies
0
Boosts
0
Views
235
Activity
Feb ’23
DeviceActivityReport extension not discovered at runtime (ClientError Code=2)
Hi I am trying to implement a minimal DeviceActivityReport extension. Setup: iOS app with FamilyControls authorization (status = approved) DeviceActivityReport displayed in SwiftUI Report extension embedded in PlugIns Correct NSExtensionPointIdentifier: com.apple.deviceactivityui.report-extension No NSExtensionPrincipalClass or storyboard Entitlements: com.apple.developer.family-controls com.apple.developer.family-controls.app-and-website-usage The app installs and runs correctly. Authorization is granted. However, the extension is never loaded: No logs from the extension (init/body/makeConfiguration never called) Console shows: Failed to discover the client's extension: DeviceActivityReportService... ClientError Code=2 Environment: Xcode 16.2 iOS device running iOS 18.x (latest available) The .appex is correctly embedded and signed. Question: Is there a known issue with DeviceActivityReport extensions not being discovered at runtime with this setup? Is additional configuration required beyo
Replies
2
Boosts
0
Views
501
Activity
Apr ’26
Error code: Thread 1: EXC_BAD_ACCESS (code=2, address=0x7ffee3239efc)
I am trying to access a label in a viewcontroller from a model class so that I can change the UILabel text every time there is an error, however, every time I create the viewcontroller object inside the model class this error always appear. If i delete the object declaration then everything will work just fine. Can anyone tell me how to solve this problem? Your comment will be highly appreciate! Model import Foundation import Firebase class SignUp{ let db = Firestore.firestore() var emailTextFieldCopy:UITextField! var passwordTextFieldCopy:UITextField! var fullnameTextFieldCopy:UITextField! var usernameCopy:UITextField! var errorText:String? var eError:String? let sup = SignUpVC() // here what caused the error //MARK: - SignUp func signUp(email:String, fullname:String, username:String, password:String){ Auth.auth().createUser(withEmail: email, password: password) { (authResult, error) in if let error = error { let errorText = error.localizedDescription if errorText == The email address is badly formatted.{ Di
Replies
0
Boosts
0
Views
423
Activity
Jul ’20