Make the examples build with older Xcode 4 versions.

This commit is contained in:
Eloy Duran
2012-03-18 02:44:26 +01:00
parent 33241a366a
commit 14a9efacf9

View File

@@ -144,7 +144,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.
command << " -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk"
command << " -sdk "
command << "/Applications/Xcode.app/Contents" if File.exist?("/Applications/Xcode.app")
command << "/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk"
end
sh command
end