Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[Rakefile] Robustness against different version of xcode.

  • Loading branch information...
commit 224c72efec4e41f19af6f742bd1eada24d9b51b2 1 parent 613dbc4
@fabiopelosin fabiopelosin authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  Rakefile
View
3  Rakefile
@@ -269,9 +269,8 @@ namespace :examples do
command = "xcodebuild -workspace '#{example.basename}.xcworkspace' -scheme '#{example.basename}'"
if (example + 'Podfile').read.include?('platform :ios')
# Specifically build against the simulator SDK so we don't have to deal with code signing.
- root = File.exist?("/Applications/Xcode.app") ? "/Applications/Xcode.app/Contents" : ""
command << " -sdk "
- command << Dir.glob("#{root}/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator*.sdk").last
+ command << Dir.glob("#{`xcode-select -print-path`.chomp}/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator*.sdk").last
end
sh command
end
Please sign in to comment.
Something went wrong with that request. Please try again.