Commit f320981e authored by Fabio Pelosin's avatar Fabio Pelosin

[Rakefile] More examples robustness for future versions of Xcode

parent 72a6acb1
...@@ -335,7 +335,7 @@ namespace :examples do ...@@ -335,7 +335,7 @@ namespace :examples do
major_version = xcode_version.split('.').first.to_i major_version = xcode_version.split('.').first.to_i
destination_flag_supported = major_version > 4 destination_flag_supported = major_version > 4
if destination_flag_supported if destination_flag_supported
command << " -destination 'platform=iOS Simulator,name=iPhone'" command << " -destination 'platform=iOS Simulator,name=iPhone Retina (4-inch)'"
else else
command << " -sdk " command << " -sdk "
command << Dir.glob("#{`xcode-select -print-path`.chomp}/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator*.sdk").last command << Dir.glob("#{`xcode-select -print-path`.chomp}/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator*.sdk").last
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment