Skip to content

Commit d1fca9b

Browse files
fix: Unable to fast sync changes with iOS runtime 4.0.1 and earlier
CLI should be able to execute fast sync on devices and iOS Simulator (single instance) when using older runtime version (4.0.1 and prior). However, currently it just hangs as the promise that should return the port for fast sync, is never resolved. Fix this by resolving the promise in this case.
1 parent e5665f2 commit d1fca9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/services/ios-debugger-port-service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ export class IOSDebuggerPortService implements IIOSDebuggerPortService {
1515
public getPort(data: IIOSDebuggerPortInputData): Promise<number> {
1616
return new Promise((resolve, reject) => {
1717
if (!this.canStartLookingForDebuggerPort()) {
18-
return IOSDebuggerPortService.DEFAULT_PORT;
18+
resolve(IOSDebuggerPortService.DEFAULT_PORT);
19+
return;
1920
}
2021

2122
const key = `${data.deviceId}${data.appId}`;

0 commit comments

Comments
 (0)