Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

165,590 results found

Post

Replies

Boosts

Views

Activity

WeatherKit WeatherService fails to generate JWT with WDSJWTAuthenticator Code=2 despite valid entitlement/profile
Hi Apple Developer Support / WeatherKit team, I’m trying to use native iOS WeatherKit through WeatherService.shared in a SwiftUI app. Every request fails before weather data is returned because WeatherDaemon cannot generate the WeatherKit JWT. I am not using the REST API or manually generating a JWT. This is the native Swift WeatherKit API. import WeatherKit import CoreLocation let current = try await WeatherService.shared.weather( for: CLLocation(latitude: 25.76, longitude: -80.19), including: .current ) I also tested the same pattern used in Apple’s sample project, “Fetching weather forecasts with WeatherKit,” which calls: WeatherService.shared.weather(for: location, including: .current) The error I get is: Failed to generate jwt token for: com.apple.weatherkit.authservice with error: Error Domain=WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors Code=2 (null) Encountered an error when fetching weather data subset; error=WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors 2
3
0
401
May ’26
iOS 17, NSURLSession, NSURLSessionDownloadTask, 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 // session NSURLSessionConfiguration *config = [NSURLSessionConfiguration defaultSessionConfiguration]; NSOperationQueue *operati
6
0
1.7k
Sep ’23
Xcode 7.1 Debug Area showing code message from 2 separate classes
So I created a seperate storyboard and classes for iPad RETINA's a few months ago. And Now I just added a seperate class and storyboard again but this time for iPad PRO. (I don't use size classes and auto layout for this project) In iPad PRO storyboard I went to identity inspector and under Custom Class I connected my PRO class. So now when the iPad PRO simulator plays the debug area shows code messages from PRO classes but for some reason it also included code from my RETINA classes. I don't understand why that happens. I didn't connect RETINA classes in any way to iPad PRO storyboar,What can be causing this, what do I have to fix?
0
0
197
Nov ’15
Two different edit views in my code and one doesn't update the parent on dismiss
I have a simple app I'm working on. There is a data model which is stored in an environment object. The app has an array of people, and each person has an array of events associated with them. So, I have a Person Detail view with an edit button which presents a Person Edit view via a navigation link. The edit view has a save button which updates the environment object model and dismisses the view. This works. On the Person Detail view there is a list of events. Tapping on an event takes you to an Event Detail view. With almost exactly the same code, there is a Edit Event Detail view that is triggered by an Edit button in the same manner as above. The model is updated in the same way and the view is dismissed. B Here's the pain point - when you go from a Person Edit view to Person Detail view, it updates the information on the Person Detail View. On the Event side, after a save, the Event Detail view is not updated. You can go back up the stack and re-enter the Event Detail view and the data is update
4
0
495
Jul ’20
Merge two 2 applications into 1
Hi, we are having this case: We have 2 different applications from 2 different accounts: App1 and App2 The end goal is merging 2 apps into 1 app only, say merge App2 into App2 We want to create a smooth experiences for users: for App2's user it will be an update and from that update App2 will update to App1 with App1's ID Assume that all others migration problems are solved Is this doable? And if yes, what is our next step? Thanks in advance
1
0
637
Apr ’22
Is anyone using HTTP/2?
The only things I can find about sending HTTP/2 push notifications show using libcurl inside of PHP. That will work, but the docs pretty clearly say to keep a connection open, and using curl like this does not do that. The Apple documents are ridiculously lacking in how to make an HTTP/2 connection.Has anybody figured out how to upgrade their server side code to deal with HTTP/2 properly?
4
0
519
May ’16
StoreKit 2: Delayed Transaction and Entitlement Updates After Promo Code Subscription Redemption
I’m implementing a subscription purchase flow using promo code redemption via an external App Store URL. Flow: User taps “Purchase” in the app (spinner shown) App opens the promo redemption URL (apps.apple.com/redeem) User completes redemption in the App Store User returns to the app The app must determine whether the subscription was purchased within a reasonable time window The app listens to Transaction.updates and also checks Transaction.currentEntitlements when the app returns to the foreground. Issue: After redeeming a subscription promo code via the App Store and returning to the app, the app cannot reliably determine whether the subscription was successfully purchased within a short, user-acceptable time window. In many cases, neither Transaction.updates nor Transaction.currentEntitlements reflects the newly redeemed subscription immediately after returning to the app. The entitlement may appear only after a significant delay, or not within a 60-second timeout at all, even though the
1
0
294
Dec ’25
How to fix Thread 1: EXC_BAD_ACCESS (code=2, address=0x16d467fe0)
I dont know why it is doing it but it makes my app crash? func locationAuthCheck() { if CLLocationManager.authorizationStatus() == .authorizedWhenInUse { // Get the location from the device currentLocation = locationManager.location the thread1 error is on if CLLocationManager.authorizationStatus() == .authorizedWhenInUse
Replies
1
Boosts
0
Views
616
Activity
Jun ’20
WeatherKit WeatherService fails to generate JWT with WDSJWTAuthenticator Code=2 despite valid entitlement/profile
Hi Apple Developer Support / WeatherKit team, I’m trying to use native iOS WeatherKit through WeatherService.shared in a SwiftUI app. Every request fails before weather data is returned because WeatherDaemon cannot generate the WeatherKit JWT. I am not using the REST API or manually generating a JWT. This is the native Swift WeatherKit API. import WeatherKit import CoreLocation let current = try await WeatherService.shared.weather( for: CLLocation(latitude: 25.76, longitude: -80.19), including: .current ) I also tested the same pattern used in Apple’s sample project, “Fetching weather forecasts with WeatherKit,” which calls: WeatherService.shared.weather(for: location, including: .current) The error I get is: Failed to generate jwt token for: com.apple.weatherkit.authservice with error: Error Domain=WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors Code=2 (null) Encountered an error when fetching weather data subset; error=WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors 2
Replies
3
Boosts
0
Views
401
Activity
May ’26
iOS 17, NSURLSession, NSURLSessionDownloadTask, 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 // session NSURLSessionConfiguration *config = [NSURLSessionConfiguration defaultSessionConfiguration]; NSOperationQueue *operati
Replies
6
Boosts
0
Views
1.7k
Activity
Sep ’23
Xcode 7.1 Debug Area showing code message from 2 separate classes
So I created a seperate storyboard and classes for iPad RETINA's a few months ago. And Now I just added a seperate class and storyboard again but this time for iPad PRO. (I don't use size classes and auto layout for this project) In iPad PRO storyboard I went to identity inspector and under Custom Class I connected my PRO class. So now when the iPad PRO simulator plays the debug area shows code messages from PRO classes but for some reason it also included code from my RETINA classes. I don't understand why that happens. I didn't connect RETINA classes in any way to iPad PRO storyboar,What can be causing this, what do I have to fix?
Replies
0
Boosts
0
Views
197
Activity
Nov ’15
Two different edit views in my code and one doesn't update the parent on dismiss
I have a simple app I'm working on. There is a data model which is stored in an environment object. The app has an array of people, and each person has an array of events associated with them. So, I have a Person Detail view with an edit button which presents a Person Edit view via a navigation link. The edit view has a save button which updates the environment object model and dismisses the view. This works. On the Person Detail view there is a list of events. Tapping on an event takes you to an Event Detail view. With almost exactly the same code, there is a Edit Event Detail view that is triggered by an Edit button in the same manner as above. The model is updated in the same way and the view is dismissed. B Here's the pain point - when you go from a Person Edit view to Person Detail view, it updates the information on the Person Detail View. On the Event side, after a save, the Event Detail view is not updated. You can go back up the stack and re-enter the Event Detail view and the data is update
Replies
4
Boosts
0
Views
495
Activity
Jul ’20
Merge two 2 applications into 1
Hi, we are having this case: We have 2 different applications from 2 different accounts: App1 and App2 The end goal is merging 2 apps into 1 app only, say merge App2 into App2 We want to create a smooth experiences for users: for App2's user it will be an update and from that update App2 will update to App1 with App1's ID Assume that all others migration problems are solved Is this doable? And if yes, what is our next step? Thanks in advance
Replies
1
Boosts
0
Views
637
Activity
Apr ’22
Can we have two prices for two business plan?
Hi everyone I was wondering if we can have two prices for our app on AppStore? For example, 10/month for individual users and 50/month for a family plan. Sth like what Spotify is doing outside the app store. The second question is that in case Apple doesn't allow two plans, can we move the family subscription outside AppStore? Cheers
Replies
0
Boosts
0
Views
376
Activity
May ’21
Is anyone using HTTP/2?
The only things I can find about sending HTTP/2 push notifications show using libcurl inside of PHP. That will work, but the docs pretty clearly say to keep a connection open, and using curl like this does not do that. The Apple documents are ridiculously lacking in how to make an HTTP/2 connection.Has anybody figured out how to upgrade their server side code to deal with HTTP/2 properly?
Replies
4
Boosts
0
Views
519
Activity
May ’16
StoreKit 2: Delayed Transaction and Entitlement Updates After Promo Code Subscription Redemption
I’m implementing a subscription purchase flow using promo code redemption via an external App Store URL. Flow: User taps “Purchase” in the app (spinner shown) App opens the promo redemption URL (apps.apple.com/redeem) User completes redemption in the App Store User returns to the app The app must determine whether the subscription was purchased within a reasonable time window The app listens to Transaction.updates and also checks Transaction.currentEntitlements when the app returns to the foreground. Issue: After redeeming a subscription promo code via the App Store and returning to the app, the app cannot reliably determine whether the subscription was successfully purchased within a short, user-acceptable time window. In many cases, neither Transaction.updates nor Transaction.currentEntitlements reflects the newly redeemed subscription immediately after returning to the app. The entitlement may appear only after a significant delay, or not within a 60-second timeout at all, even though the
Replies
1
Boosts
0
Views
294
Activity
Dec ’25
Concatenate two textfield
Hello i have this problem, I have to concatenate two textfield in this , so you getEmail=pippo@gmail.com&Password=3844893I used this code but does not worklet postString = Email= +Email.text+&Password=+Password.textCan you help me?
Replies
14
Boosts
0
Views
1.9k
Activity
Jan ’16