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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c33a5f9bef
commit
3871755064
@@ -32,7 +32,7 @@ export default class iOSCertificateProvider extends CertificateProvider {
|
||||
appDirectory: string,
|
||||
csr: string,
|
||||
): Promise<string> {
|
||||
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];
|
||||
|
||||
Reference in New Issue
Block a user