mirror of
https://github.com/zhigang1992/CocoaPods.git
synced 2026-05-01 02:42:32 +08:00
Make the examples build with older Xcode 4 versions.
This commit is contained in:
4
Rakefile
4
Rakefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user