StoreKit testing in Xcode not work with M1 MBP

Bundle.main.appStoreReceiptURL always returns nil with below error message:

[db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x8ef2fca0 cb757e35 1fb11cc9 d1e458ff ... d9788ba4 1dfbfe07 }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0xd75c7f04 33d0d527 a961c083 c51869b1 ... 5e4b01fe 8ff2f37f }}

Both in Xcode 12.5 and Xcode 13.0 beta (13A5154h). Any help would be appreciated.

Also having the same issue, still. Would love to know a solution on this, as I'd like to migrate to M1s in our CI pipeline but inconsistent tests across architectures is a major blocker.

StoreKit testing in Xcode not work with M1 MBP
 
 
Q