Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added fix for project names with spaces #1

Merged
merged 1 commit into from

2 participants

@lukaszraczylo

Works on anything now.

@jerrymarino
Owner

Thanks so much this is great :+1:

@jerrymarino jerrymarino merged commit d62fa4c into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 27, 2014
  1. @lukaszraczylo
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 4 deletions.
  1. +4 −4 plugin/xcodebuild.vim
View
8 plugin/xcodebuild.vim
@@ -54,8 +54,8 @@ endf
fun s:defaultInit()
let s:sdk = "iphonesimulator"
let s:buildConfiguration = "Debug"
- let s:testTarget = s:projectName . "Tests"
- let s:target = s:projectName
+ let s:testTarget = "'". substitute(s:projectName, "\.\/", "", "") ."'" . "Tests"
+ let s:target = "'". substitute(s:projectName, "\.\/", "", "") ."'"
endf
fun g:XCB_SetTarget(target)
@@ -65,7 +65,7 @@ fun g:XCB_SetTarget(target)
return
endif
let s:target = a:target
- echo a:target
+ echo a:target
endf
fun s:targetIsValid(target)
@@ -192,7 +192,7 @@ endf
fun s:findProjectFileName()
let s:projectFile = globpath(expand('.'), '*.xcodeproj')
- return matchstr(s:projectFile, '\w\+\ze.xcodeproj')
+ return matchstr(s:projectFile, '.*\ze.xcodeproj')
endf
fun g:XCB_RunBuildCommand(cmd)
Something went wrong with that request. Please try again.