Skip to content

[Only on 26.3/26.4][in_app_purchase_storekit] iOS native tests failing with timeouts, SKInternalErrorDomain, and crashes #184678

Closed

Description

@okorohelijah

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

Build: https://ci.chromium.org/ui/p/flutter/builders/try/Mac_arm64%20ios_platform_tests_shard_3%20master/28092/overview

log: https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8685252380336092417/+/u/Run_package_tests/native_test/stdout?format=raw

Activity

  1. added
    P1High-priority issues at the top of the work list
    team-iosOwned by iOS platform team
    on Apr 6, 2026
  2. okorohelijah commented on Apr 6, 2026

    @okorohelijah
    ContributorAuthor

    friendly ping @LouiseHsu do you have any insights?

  3. LouiseHsu commented on Apr 6, 2026

    @LouiseHsu
    Contributor

    Has this been happening for a while or just recently?

  4. okorohelijah commented on Apr 6, 2026

    @okorohelijah
    ContributorAuthor

    @LouiseHsu yes, I think it started with the 26.4. I didn't encounter this with 26.2

  5. LouiseHsu commented on Apr 6, 2026

    @LouiseHsu
    Contributor

    https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-26_5-release-notes#StoreKitTest

    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.
    
  6. self-assigned this
    on Apr 8, 2026
  7. added
    P3Issues that are less important to the Flutter project
    triaged-iosTriaged by iOS platform team
    and removed
    P1High-priority issues at the top of the work list
    on Apr 9, 2026
  8. 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
  9. kpacholak commented on May 25, 2026

    @kpacholak

    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

    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 ❌

    Anyone similar issues?

    EDIT: I found a fresh thread: https://developer.apple.com/forums/thread/826971
    Issue is not resolved.

  10. added
    ⏳Bot is counting down the days until it unassigns the issue
    on Aug 14, 2026
  11. flutter-triage-bot commented on Aug 14, 2026

    @flutter-triage-bot

    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!

  12. vashworth commented on Sep 28, 2026

    @vashworth
    Contributor

    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.

  13. github-actions commented on Oct 12, 2026

    @github-actions

    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.

  14. locked as resolved and limited conversation to collaborators on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

⏳Bot is counting down the days until it unassigns the issueP3Issues that are less important to the Flutter projectp: in_app_purchasePlugin for in-app purchaseteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions