Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,510 results found

Post

Replies

Boosts

Views

Activity

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
0
0
96
4w
Equatable with two two-dimension array
In Pure Swift environment (no briding to NSArray)Problem: [[1]]==[[1]] //false or ([[1]] as Array)==([[1]] as Array) //false This problem only happens in pure Swift environment.Though [1] == [1], any array of integers is not marked equatable. Programmer cannot mark [Int], [String], …, etc. as Equatable protocol.Thus two [[Int]] cannot be compared using “==“.Solution 1: extension SequenceType: Equatable where Generator.Element: Equatable { }This gramma should be allowed in newer version of Swift.This means a SequenceType with Equatable elements can be marked Equatable.Solution 2:You can make a new mechanism in Swift that automatically binds “Equatable” to any generic type has “==“ operator defined.For example, in Swift Standard Swift Library, you have defined==<T: Equatable>(lhs:[T], rhs:[T])->BoolThus, the special generic type [T] where T:Equatableshould be automatically marked as “Equatable.
2
0
1.1k
Jun ’15
Airplay 2
Haven't been able to test this yet, but does multi room support with Airplay 2 work on two apple TVs running tvOS 11.By this I mean can you use Airplay 2 to play a song on one apple tv and a different song on another?Thanks
0
0
597
Jun ’17
WeatherKit entitlement and key not propagated — WeatherDaemon fails to generate JWT (Code=2)
Hello Apple Developer Support Team, I am the Account Holder of my Apple Developer Program team (Team ID: T2BKUF6E93). My iOS app is using Swift WeatherKit (WeatherService) on device. Although my environment is completely configured, the system WeatherDaemon consistently fails to generate the WeatherKit JWT token. My environment: Team type: Apple Developer Program (paid) Team ID: T2BKUF6E93 Account role: Account Holder Xcode: latest version Device: iPhone (real device) Provisioning Profile: iOS Team Provisioning Profile (auto-managed) Entitlement: com.apple.developer.weatherkit included WeatherKit Key: created successfully (.p8 downloaded) Bundle ID: correct and WeatherKit capability enabled App reinstalled after each configuration change Device rebooted Even after enabling WeatherKit capability and generating a WeatherKit Key, the system still fails to generate JWT: Failed to generate jwt token for: com.apple.weatherkit.authservice Error Domain=WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors Code
0
0
192
Nov ’25
Please Help: Thread 1: EXC_BAD_ACCESS (code=2, address=0x30ecb2ff8)
I have been trying to figure this out for like 5 hours, and I can't seem to see what its happening. My app is trying to get users signIn with using Google or Apple methods. Once they finish the SignUp with any provider, It should take them to another screen (OnboardingViewPart2) to finish the profile setup. However, the issue is that when I finish entering my email on the Google SignUp, the screen closes and the app get stuck for like 10 secs and throws the Bad Access error. My debug takes me that there is something going on with AuthService, but I can't figure out what. Firebase recognizes that the method was used, but doesn't create any Collections or Documents. Please Help :) ContentView.swift OnboardingView.swift AuthService.swift OnboardingViewPart2.swift SignInWithGoogle.swift
3
0
3.1k
Nov ’21
iMessage has merged 2 conversations of 2 different contacts
Hi all,I've 2 separate conversations with 2 different contacts (not the same phone number, nothing in commun).On my MacBook (High Sierra) everything works fine.But on my iPhone X running iOS 12 beta 3 (since beta 2 I've this bug), these 2 conversations are merged.When I write to one or another of these 2 contacts, it displays the 2 conversations in one screen. It merges them.When I try to create a new message, when I enter one of the 2 contacts, I don't know who receive the message, it's not always the same one that receive the message.That's really annoying.Does anyone have this issue too?I filled a bug reporter for that.Regards,Alexandre
23
0
52k
Jul ’18
Reply to Xcode 8 macOS Mojave
You'd better know one thing.Swift 2 to 3 migrator works better on Swift 2 code best fit for Swift 2.For example, old Swift 2.2 compiler suggests you to use `#selector` than using Selector(...). If your Swift 2 code is already fit for such suggestions, Swift 2 to 3 migrator generates better result. If you can run Xcode 7.3.1 or 8.2.1, you should better refine your code as best fit for Swift 2.
Jul ’18
iHate Swift 2
Am I the only one who hates the big changes Apple makes this year? Why can't they make just small changes in Swift???? It's not hard to convert all my Code to Swift 2. It is IMPOSSIBLE. I get 9 errors, even if I could fix them and press the build and run Button I get 20 new errors. Every time. And most of them do really not make any sense. I will never ever switch to Swift 2. And if this means I can't build new Apps one day, that's ok. Even switching to Android is still better than switching from Swift 1 to Swift 2. I will not learn a completely new programming language every year. Because that's what Swift 2 is. Last year it was Swift. Now it's Swift 2. And next year? Will I have to learn Swift 3 which will also be a completely new language? No, thanks.
22
0
3.2k
Aug ’15
Reply to ForEach and HStack
The getValue function returns two different types in the two classes, Thanks for showing your code. And your code revealed that if you define a combined entity, your code all things would be solved.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’21
Two problems in the program compilation of the new version of xcode (the target code is the content filter of the network extension)
I'm trying to debug the official network extension sample code simplefirewall. Although it has been able to run normally and pops up user pop-up windows for the specified filter conditions, there are still two warnings and errors: [Window] Warning: Window NSWindow 0x1007315f0 ordered front from a non-active application and may order beneath the active application's windows. [default] CGSWindowShmemCreateWithPort failed on port 0 For the first warning, I followed the method given in https://developer.apple.com/forums/thread/729496 and added windo.makeKey() and window.orderFrontRegardless(), but this warning didn't go away. As for the second default, I haven't been able to find the corresponding root cause and solution of the problem. I would like to ask, can anyone give me some advice? Xcode:Version 14.3.1 (14E300c)
1
0
1.1k
Aug ’23