Skip to content

Commit

Permalink
fix: xcode major version extraction (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
capc0 committed Oct 24, 2023
1 parent 174fa49 commit 24ffe66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ios/utils/device.ts
Expand Up @@ -78,7 +78,8 @@ export async function runOnDevice(
} catch {
// if launching app throws, try with devicectl, but requires Xcode 15
const [xcodeVersion] = getXcodeVersionInfo();
if (Number(xcodeVersion) >= 15) {
const xcodeMajorVersion = Number(xcodeVersion.split('.')[0]);
if (xcodeMajorVersion >= 15) {
const launchResult = spawn('xcrun', [
'devicectl',
'device',
Expand Down

0 comments on commit 24ffe66

Please sign in to comment.