Skip to content

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

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

Metadata

Metadata

Assignees

Labels

P3Issues 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
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions