Skip to content

Commit 925059e

Browse files
authored
fix script (#203)
1 parent dac1d4e commit 925059e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: scripts/install.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ if (_.isExistedDir(latestDir)) {
131131
throw _.chalk.red('Carthage is not existed, please reinstall!');
132132
}
133133

134-
if (/^\s*(iPhone .+?) \(/m.test(shelljs.exec('xcrun simctl list devices', { silent: true }).grep('iPhone').head({ '-n': 1 }).stdout)) {
134+
if (/^\s*(iPhone .+?) \(.{8}-.{4}-.{4}-.{4}-.{12}\)/m.test(shelljs.exec('xcrun simctl list devices', { silent: true }).grep('iPhone').head({ '-n': 1 }).stdout)) {
135135
const name = RegExp.$1;
136136

137137
// execute build of xctestrun file:

0 commit comments

Comments
 (0)