You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Only on 26.3/26.4][in_app_purchase_storekit] iOS native tests failing with timeouts, SKInternalErrorDomain, and crashes #184678
The native iOS tests for the in_app_purchase_storekit package are failing in when testing Xcode 26.4 in CI. The failures shows a mix of StoreKit errors, asynchronous timeouts, and multiple crashes.
// StoreKit session failing to manage configurations
[SKTestSession] Error saving configuration file: Error Domain=SKInternalErrorDomain Code=3 "(null)"
[SKTestSession] Error clearing overrides: Error Domain=SKInternalErrorDomain Code=3 "(null)"
[SKTestSession] Error deleting all transactions: Error Domain=SKInternalErrorDomain Code=3 "(null)"
// Typical test failure due to timeout
/RunnerTests/InAppPurchaseStoreKit2PluginTests.swift:319: error: -[RunnerTests.InAppPurchase2PluginTests testDiscountedProductSuccess] : failed - Purchase should NOT fail.
<unknown>:0: error: -[RunnerTests.InAppPurchase2PluginTests testDiscountedProductSuccess] : Asynchronous wait failed: Exceeded timeout of 10 seconds, with unfulfilled expectations: "Purchase request should succeed".
// Fatal crash in Translator tests
RunnerTests/StoreKit2TranslatorTests.swift:69: Fatal error: Unexpectedly found nil while unwrapping an Optional value
SKTestSession cannot use the selected StoreKit configuration during unit tests, resulting in failed test actions. (172583218) (FB22237318)
Workaround: To use SKTestSession in 26.3 and 26.4, build and run the app on device using the same StoreKit configuration as the test. Then close the app and run the unit test using SKTestSession without changing any configuration settings in the test environment. This allows the configuration to be saved on device before the test begins and maintain your selected configuration settings through the test session.
changed the title [-][in_app_purchase_storekit] iOS native tests failing with timeouts, SKInternalErrorDomain, and crashes[/-][+][Only on 26.3/26.4][in_app_purchase_storekit] iOS native tests failing with timeouts, SKInternalErrorDomain, and crashes[/+]on Apr 9, 2026
Fixed: An issue preventing SKTestSession from using the selected StoreKit configuration during unit tests, resulting in failed test actions. (172583218) (FB22237318)
I still got error when unit test tries to establish a SK session (SKTestSession(contentsOf:). It's not solved from my perspective. 26.2 ✅ 26.5 ❌
This issue is assigned to @LouiseHsu but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
okorohelijah commentedon Apr 6, 2026
friendly ping @LouiseHsu do you have any insights?
LouiseHsu commentedon Apr 6, 2026
Has this been happening for a while or just recently?
okorohelijah commentedon Apr 6, 2026
@LouiseHsu yes, I think it started with the 26.4. I didn't encounter this with 26.2
LouiseHsu commentedon Apr 6, 2026
https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-26_5-release-notes#StoreKitTest
[-][in_app_purchase_storekit] iOS native tests failing with timeouts, SKInternalErrorDomain, and crashes[/-][+][Only on 26.3/26.4][in_app_purchase_storekit] iOS native tests failing with timeouts, SKInternalErrorDomain, and crashes[/+]kpacholak commentedon May 25, 2026
In iOS 26.5 and macOS 26.5 release notes Apple claims that StoreKitTest issue has been resolved
https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-26_5-release-notes#StoreKitTest
https://developer.apple.com/documentation/macos-release-notes/macos-26_5-release-notes#StoreKitTest
I still got error when unit test tries to establish a SK session (
SKTestSession(contentsOf:). It's not solved from my perspective. 26.2 ✅ 26.5 ❌Anyone similar issues?
EDIT: I found a fresh thread: https://developer.apple.com/forums/thread/826971
Issue is not resolved.
Fix the round-3 rejection: price-first paywall, no dead Subscribe button
flutter-triage-bot commentedon Aug 14, 2026
This issue is assigned to @LouiseHsu but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!
[in_app_purchase] Support StoreKit 2 introductory offer eligibility J…
[in_app_purchase] Support StoreKit 2 introductory offer eligibility J…
[in_app_purchase] Support StoreKit 2 introductory offer eligibility J…
vashworth commentedon Sep 28, 2026
Closing this since we decided to use Xcode 26.2 in CI. We can re-open if we see it again with our next Xcode upgrade.
github-actions commentedon Oct 12, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.