Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

167,613 results found

Post

Replies

Boosts

Views

Activity

FamilyControlsError Code=2 on Parent's Device
I have tried to use Screen Time API. The problem is that I can't get access to FamilyControl framework on parent's device. What should I do to get access? class AppDelegate: NSObject, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { AuthorizationCenter.shared.requestAuthorization { res in switch res { case .success(): print(===SUCCESS AUTHORIZATION===) case .failure(let error): print(error.localizedDescription) } } return true } }
1
0
1.2k
Oct ’21
EXC_BAD_ACCESS (code=2, address=0x16d003d98)
class Book: Codable { let name: String var author: Author? init(name: String) { self.name = name } deinit { debugPrint(Deinitialized Book) } } class Author: Codable { let name: String let age: Int weak var book: Book? init(name: String, age: Int) { self.name = name self.age = age } deinit { debugPrint(Deinitialized Author) } } let author = Author(name: Ronit, age: 1) let book = Book(name: Ronit Book) book.author = author author.book = book let encode = try? encoder.encode(author) (Why does this line give EXC_BAD_ACCESS error even though by adding weak we have removed any strong references between objects)
0
0
304
Sep ’23
Error Domain=PKPassKitErrorDomain Code=2
This error occurs in Apple Pay Wallet In-App Provisioning Flow for Credit / Debit Cards When the data received from the PNO (Visa) is passed to PKAddPaymentPassRequest this error is seen in addPaymentPassViewController, in the finalize stage. Docs provide no clue as to what could be wrong. iOS 18.2.1 XCode 15.2 Error description mentions unsupportedVersionError Is the pass version not supported? Is the wallet version not supported? Is it an app implementation error or error in the data received from the PNO?
4
0
1.2k
Jan ’25
Error Domain=PKPassKitErrorDomain Code=2
We are getting this error frequently and our customers are getting increasing frustrated when they are unable to add their credit card to Apple Wallet. There is no clear explanation on when this error arises. I sincerely request help to understand the cause of this issue. Device info: Apple iOS 26.6.1.
0
0
133
3w
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
945
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
565
Dec ’25
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
FamilyControlsError Code=2 on Parent's Device
I have tried to use Screen Time API. The problem is that I can't get access to FamilyControl framework on parent's device. What should I do to get access? class AppDelegate: NSObject, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { AuthorizationCenter.shared.requestAuthorization { res in switch res { case .success(): print(===SUCCESS AUTHORIZATION===) case .failure(let error): print(error.localizedDescription) } } return true } }
Replies
1
Boosts
0
Views
1.2k
Activity
Oct ’21
EXC_BAD_ACCESS (code=2, address=0x16d003d98)
class Book: Codable { let name: String var author: Author? init(name: String) { self.name = name } deinit { debugPrint(Deinitialized Book) } } class Author: Codable { let name: String let age: Int weak var book: Book? init(name: String, age: Int) { self.name = name self.age = age } deinit { debugPrint(Deinitialized Author) } } let author = Author(name: Ronit, age: 1) let book = Book(name: Ronit Book) book.author = author author.book = book let encode = try? encoder.encode(author) (Why does this line give EXC_BAD_ACCESS error even though by adding weak we have removed any strong references between objects)
Replies
0
Boosts
0
Views
304
Activity
Sep ’23
Error Domain=PKPassKitErrorDomain Code=2
This error occurs in Apple Pay Wallet In-App Provisioning Flow for Credit / Debit Cards When the data received from the PNO (Visa) is passed to PKAddPaymentPassRequest this error is seen in addPaymentPassViewController, in the finalize stage. Docs provide no clue as to what could be wrong. iOS 18.2.1 XCode 15.2 Error description mentions unsupportedVersionError Is the pass version not supported? Is the wallet version not supported? Is it an app implementation error or error in the data received from the PNO?
Replies
4
Boosts
0
Views
1.2k
Activity
Jan ’25
Learning to Code 2 “There Was A Problem” Error
When opening the first exercise “Keeping Track,” on the 12.9 inch iPad Pro (5th Gen), a pop up appears saying “There Was A Problem During Startup.” Restarting the app/device doesn’t fix the issue.
Replies
0
Boosts
0
Views
626
Activity
Apr ’22
Error Domain=PKPassKitErrorDomain Code=2
We are getting this error frequently and our customers are getting increasing frustrated when they are unable to add their credit card to Apple Wallet. There is no clear explanation on when this error arises. I sincerely request help to understand the cause of this issue. Device info: Apple iOS 26.6.1.
Replies
0
Boosts
0
Views
133
Activity
3w
Update Goal Instruction in Swift-UI Playgrounds Learn to Code 2
In Swift-UI Playgrounds Learn to Code 2 under the Chapter Variables and the exercise Checking for Equal Values, there is no instruction to use the predefined variable numberOfSwitches in the goal instruction.
Replies
0
Boosts
0
Views
1.1k
Activity
Apr ’24
Getting Thread 1: EXC_BAD_ACCESS (code=2, address=0x16cebbfc0) error
I have have table view and then I have another Table View inside each cell of the first table view. Now whats happening is that the code enters in the cellforrow function of the first table view multiple times and then gives this error: Thread 1: EXCBADACCESS (code=2, address=0x16cebbfc0)
Replies
1
Boosts
0
Views
3.4k
Activity
Jul ’20
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
945
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
Learning to Code 1 in Playgrounds not in iOS 10 beta 2
I had Learning to Code 1 on my iPad Air when iOS 10 beta 1 was installed. I installed iOS 10 beta 2 yesterday, and now it is no longer available. Playgrounds says that it's coming soon.Anyone else having this issue?
Replies
2
Boosts
0
Views
292
Activity
Jul ’16
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
565
Activity
Dec ’25
Dive into RealityKit 2 Face Mesh Sample Code
Hello! I was wondering if it would be possible for the developers to post the sample code for the Face Mesh demo that used PencilKit to draw a filter on a user's face.
Replies
2
Boosts
0
Views
1.4k
Activity
Jun ’21
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