Skip to content

Commit e5f4ef3

Browse files
thang2162thymikee
andauthored
Fix for 'No iOS devices connected.' (#1407)
* Fix for 'No iOS devices connected.' Changed stderr to stdout to fix 'No iOS devices connected.' when attempting run-ios with XCode 12.5. * Fix for 'No iOS devices connected.' on XCode 12.5. Fix for 'No iOS devices connected.' error when using 'run-ios --device' on XCode 12.5 with backwards compatibility. Will use stdout for 12.5+ and stderr for older versions. * Fix for failing tests ... * Changed line to ternary operator Changed line to ternary to resolve lint errors. * Update packages/platform-ios/src/commands/runIOS/index.ts * Update packages/platform-ios/src/commands/runIOS/index.ts * Fix lint error ... Co-authored-by: Michał Pierzchała <[email protected]>
1 parent 641b21f commit e5f4ef3

File tree

1 file changed

+3
-1
lines changed
  • packages/platform-ios/src/commands/runIOS

1 file changed

+3
-1
lines changed

packages/platform-ios/src/commands/runIOS/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ function runIOS(_: Array<string>, ctx: Config, args: FlagsT) {
8787

8888
let devices;
8989
try {
90+
const out = execa.sync('xcrun', ['xctrace', 'list', 'devices']);
9091
devices = parseXctraceIOSDevicesList(
91-
execa.sync('xcrun', ['xctrace', 'list', 'devices']).stderr,
92+
// Xcode 12.5 introduced a change to output the list to stdout instead of stderr
93+
out.stderr === '' ? out.stdout : out.stderr,
9294
);
9395
} catch (e) {
9496
logger.warn(

0 commit comments

Comments
 (0)