Skip to content

Commit aaa980c

Browse files
Merge pull request #3685 from NativeScript/vladimirov/fix-run-ios-sk
fix: Unable to run app on iOS in Sidekick
2 parents f96bfae + 4f4bbd7 commit aaa980c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class IOSDebuggerPortService implements IIOSDebuggerPortService {
5151
private canStartLookingForDebuggerPort(data: IProjectDir): boolean {
5252
const projectData = this.$projectDataService.getProjectData(data && data.projectDir);
5353
const frameworkVersion = this.$iOSProjectService.getFrameworkVersion(projectData);
54-
return semver.gt(frameworkVersion, IOSDebuggerPortService.MIN_REQUIRED_FRAMEWORK_VERSION);
54+
return !frameworkVersion || semver.gt(frameworkVersion, IOSDebuggerPortService.MIN_REQUIRED_FRAMEWORK_VERSION);
5555
}
5656

5757
@cache()

lib/services/platform-project-service-base.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export abstract class PlatformProjectServiceBase extends EventEmitter implements
1313
}
1414

1515
public getFrameworkVersion(projectData: IProjectData): string {
16-
return this.$projectDataService.getNSValue(projectData.projectDir, this.getPlatformData(projectData).frameworkPackageName).version;
16+
const frameworkData = this.$projectDataService.getNSValue(projectData.projectDir, this.getPlatformData(projectData).frameworkPackageName);
17+
return frameworkData && frameworkData.version;
1718
}
1819

1920
protected getAllNativeLibrariesForPlugin(pluginData: IPluginData, platform: string, filter: (fileName: string, _pluginPlatformsFolderPath: string) => boolean): string[] {

0 commit comments

Comments
 (0)