From 38717550641094291f73d0e6c6bb7337a0ca81a7 Mon Sep 17 00:00:00 2001 From: Andrey Goncharov Date: Thu, 10 Feb 2022 06:51:01 -0800 Subject: [PATCH] Fix extracting device ID from the path for iOS simulators Summary: Changelog: Fix extracting device ID from the path for iOS simulators Reviewed By: lblasa, antonk52 Differential Revision: D34142876 fbshipit-source-id: 57d3bffcda7bb7b4bf88ea837eb9bf2dc8405764 --- .../src/devices/ios/iOSCertificateProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];