Repository navigation
Commit 8967d8c
committed
[in_app_purchase_storekit] Warm up StoreKit Testing before native iOS tests
On iOS 27 simulators, the first process to use SKTestSession on a
never-used simulator gets its StoreKit connection classified as sandbox
before the test configuration has been pushed to the device, so every
StoreKit 2 purchase hangs on an Apple Account sign-in and times out
(Apple FB24651858 / 186670057, listed as a known issue in the iOS 27.3
release notes). Any later process on the same device works, which is
why the tests pass on reused simulators and fail on CI's fresh ones.
Add a Test pre-action to the Runner scheme that runs one non-purchase
test in a throwaway process before the real test host launches. This is
Apple's documented workaround (seed the configuration on the device
first), automated for xcodebuild, which ignores the scheme's StoreKit
configuration setting that makes it work from the IDE.
Fixes flutter/flutter#1954941 parent 832d5f2 commit 8967d8c
1 file changed
Lines changed: 18 additions & 0 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
50 | 68 | | |
51 | 69 | | |
52 | 70 | | |
| |||
0 commit comments