As of iOS 10, keychain access from framework test bundles is broken in the simulator, returning error -34018 for every request. By using an (empty) iOS app as a bundle loader, the test gains the app's access to the keychain and can run successfully.