Skip to content

Commit ae0ff1c

Browse files
Merge pull request #849 from NativeScript/vladimirov/fix-ios-run
Fix ios commands when platforms dir is removed
2 parents d535be0 + 665d93c commit ae0ff1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/ios-project-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
9898

9999
public createProject(projectRoot: string, frameworkDir: string): IFuture<void> {
100100
return (() => {
101+
this.$fs.ensureDirectoryExists(path.join(projectRoot, IOSProjectService.IOS_PROJECT_NAME_PLACEHOLDER)).wait();
101102
if(this.$options.symlink) {
102-
this.$fs.ensureDirectoryExists(path.join(projectRoot, IOSProjectService.IOS_PROJECT_NAME_PLACEHOLDER)).wait();
103103
let xcodeProjectName = util.format("%s.xcodeproj", IOSProjectService.IOS_PROJECT_NAME_PLACEHOLDER);
104104

105105
shell.cp("-R", path.join(frameworkDir, IOSProjectService.IOS_PROJECT_NAME_PLACEHOLDER, "*"), path.join(projectRoot, IOSProjectService.IOS_PROJECT_NAME_PLACEHOLDER));

0 commit comments

Comments
 (0)