Permalink
Browse files

[Examples] Use the highest available SDK.

  • Loading branch information...
1 parent 7363084 commit efc05d1250430c000d3aa1ecf58ef2377023874c @fabiopelosin fabiopelosin committed May 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Rakefile
View
@@ -190,9 +190,9 @@ 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 << "/Applications/Xcode.app/Contents" if File.exist?("/Applications/Xcode.app")
- command << "/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk"
+ command << Dir.glob("#{root}/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator*.sdk").last
end
sh command
end

0 comments on commit efc05d1

Please sign in to comment.