Skip to content

Commit 9fb869e

Browse files
authored
Merge pull request #4872 from NativeScript/fatme/fix-ddi-error
fix: fix the behavior when ddi is not installed on iOS device
2 parents ce61e4f + 06f92ac commit 9fb869e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/controllers/run-controller.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ export class RunController extends EventEmitter implements IRunController {
141141
return this.$liveSyncProcessDataService.getDeviceDescriptors(data.projectDir);
142142
}
143143

144-
protected async refreshApplication(projectData: IProjectData, liveSyncResultInfo: ILiveSyncResultInfo, filesChangeEventData: IFilesChangeEventData, deviceDescriptor: ILiveSyncDeviceDescriptor, settings?: IRefreshApplicationSettings): Promise<IRestartApplicationInfo> {
144+
protected async refreshApplication(projectData: IProjectData, liveSyncResultInfo: ILiveSyncResultInfo, filesChangeEventData: IFilesChangeEventData, deviceDescriptor: ILiveSyncDeviceDescriptor): Promise<IRestartApplicationInfo> {
145145
const result = deviceDescriptor.debuggingEnabled ?
146-
await this.refreshApplicationWithDebug(projectData, liveSyncResultInfo, filesChangeEventData, deviceDescriptor, settings) :
147-
await this.refreshApplicationWithoutDebug(projectData, liveSyncResultInfo, filesChangeEventData, deviceDescriptor, settings);
146+
await this.refreshApplicationWithDebug(projectData, liveSyncResultInfo, filesChangeEventData, deviceDescriptor) :
147+
await this.refreshApplicationWithoutDebug(projectData, liveSyncResultInfo, filesChangeEventData, deviceDescriptor);
148148

149149
const device = liveSyncResultInfo.deviceAppData.device;
150150

@@ -159,12 +159,12 @@ export class RunController extends EventEmitter implements IRunController {
159159
return result;
160160
}
161161

162-
protected async refreshApplicationWithDebug(projectData: IProjectData, liveSyncResultInfo: ILiveSyncResultInfo, filesChangeEventData: IFilesChangeEventData, deviceDescriptor: ILiveSyncDeviceDescriptor, settings?: IRefreshApplicationSettings): Promise<IRestartApplicationInfo> {
162+
protected async refreshApplicationWithDebug(projectData: IProjectData, liveSyncResultInfo: ILiveSyncResultInfo, filesChangeEventData: IFilesChangeEventData, deviceDescriptor: ILiveSyncDeviceDescriptor): Promise<IRestartApplicationInfo> {
163163
const debugOptions = deviceDescriptor.debugOptions || {};
164164

165165
liveSyncResultInfo.waitForDebugger = !!debugOptions.debugBrk;
166166

167-
const refreshInfo = await this.refreshApplicationWithoutDebug(projectData, liveSyncResultInfo, filesChangeEventData, deviceDescriptor, settings);
167+
const refreshInfo = await this.refreshApplicationWithoutDebug(projectData, liveSyncResultInfo, filesChangeEventData, deviceDescriptor, { shouldSkipEmitLiveSyncNotification: true, shouldCheckDeveloperDiscImage: true });
168168

169169
// we do not stop the application when debugBrk is false, so we need to attach, instead of launch
170170
// if we try to send the launch request, the debugger port will not be printed and the command will timeout

0 commit comments

Comments
 (0)