I'm also getting the same error when using a StoreKit Configuration File with an iOS Swift app:
Failed to verify certificate chain due to client recoverable failure:
Error Domain=NSOSStatusErrorDomain Code=-67818 "“StoreKit Testing in Xcode” certificate is expired" UserInfo={NSLocalizedDescription=“StoreKit Testing in Xcode” certificate is expired, NSUnderlyingError=0x10af05830 {Error Domain=NSOSStatusErrorDomain Code=-67818 "Certificate 0 “StoreKit Testing in Xcode” has errors: Certificate is not temporally valid;" UserInfo={NSLocalizedDescription=Certificate 0 “StoreKit Testing in Xcode” has errors: Certificate is not temporally valid;}}}This error only happens on one real device (iPhone). The code works OK on the simulator and when not using a StoreKit Configuration File. Deleting the app on the device and re-running via XCode doesn't resolve the issue. It does look like a root certificate has expired somewhere but can't see how to force it to be re-created.