Skip to content

Commit

Permalink
[Rakefile] Robustness against different version of xcode.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed Jun 29, 2012
1 parent 613dbc4 commit 224c72e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Rakefile
Expand Up @@ -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
Expand Down

0 comments on commit 224c72e

Please sign in to comment.