We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
diff --git a/plugin/ios.vim b/plugin/ios.vim index 5168ab6..0e64256 100644 --- a/plugin/ios.vim +++ b/plugin/ios.vim @@ -10,6 +10,12 @@ if !has('ruby') finish endif
diff --git a/plugin/ios.vim b/plugin/ios.vim
index 5168ab6..0e64256 100644
--- a/plugin/ios.vim
+++ b/plugin/ios.vim
@@ -10,6 +10,12 @@ if !has('ruby')
finish
endif
+if !has('unix') + finish +elseif !(system('uname') =~ 'Darwin') + finish +endif + let s:LibPath = expand('<sfile>:h:h') . '/lib' execute "ruby $:.push('" . s:LibPath . "')" execute "ruby require 'ios/vim'"
+if !has('unix')
+ finish
+elseif !(system('uname') =~ 'Darwin')
+endif
+
let s:LibPath = expand('<sfile>:h:h') . '/lib'
execute "ruby $:.push('" . s:LibPath . "')"
execute "ruby require 'ios/vim'"
The text was updated successfully, but these errors were encountered:
Cool, thanks!
What's the error on non-Mac? Is it that 'xcrun' isn't in the path? If so, I'd rather catch that directly.
Sorry, something went wrong.
yes ~ just because xcrun cannot found
No branches or pull requests
diff --git a/plugin/ios.vim b/plugin/ios.vim
index 5168ab6..0e64256 100644
--- a/plugin/ios.vim
+++ b/plugin/ios.vim
@@ -10,6 +10,12 @@ if !has('ruby')
finish
endif
+if !has('unix')
+ finish
+elseif !(system('uname') =~ 'Darwin')
+ finish
+endif
+
let s:LibPath = expand('<sfile>:h:h') . '/lib'
execute "ruby $:.push('" . s:LibPath . "')"
execute "ruby require 'ios/vim'"
The text was updated successfully, but these errors were encountered: