diff --git a/desktop/flipper-server-core/src/devices/ios/iOSCertificateProvider.tsx b/desktop/flipper-server-core/src/devices/ios/iOSCertificateProvider.tsx index c62184c54..e3d8dc48f 100644 --- a/desktop/flipper-server-core/src/devices/ios/iOSCertificateProvider.tsx +++ b/desktop/flipper-server-core/src/devices/ios/iOSCertificateProvider.tsx @@ -32,7 +32,7 @@ export default class iOSCertificateProvider extends CertificateProvider { appDirectory: string, csr: string, ): Promise { - const matches = /\/Devices\/([^/]+)\//.exec(appName); + const matches = /\/Devices\/([^/]+)\//.exec(appDirectory); if (matches && matches.length == 2) { // It's a simulator, the deviceId is in the filepath. return matches[1];