StoreKitTest Fails on Xcode14 and iOS 14

import StoreKitTest
try SKTestSession(configurationFileNamed: "Configuration")
  • Xcode Version 14.1 (14B47b)
  • iOS14.*
  • Configuration.storekit file created

when running this test code will testing failed, can anyone tell me how to solve this problem? iOS15 and iOS16 is no problem

Failed to load the test bundle. If you believe this error represents a bug, please attach the result bundle
***
Underlying Error: The bundle *** couldn’t be loaded because it is damaged or missing necessary resources. The bundle is damaged or missing necessary resources. Try reinstalling the bundle
***
Reason: Incompatible library version: StoreKitTest requires version 1.0.0 or later, but XCTest provides version 0.0.0))

Replies

I'm running into the same issue but only on CircleCI, can't reproduce locally.

Filed a Radar with a sample project showing this: FB12223404

I have the same issue when running tests on my local machine from the command line. (Xcode 14.3.1)