diff --git a/Formula/otx.rb b/Formula/otx.rb index 7db07512d03..255f3583fd4 100644 --- a/Formula/otx.rb +++ b/Formula/otx.rb @@ -7,6 +7,10 @@ class Otx < Formula depends_on :xcode # For working xcodebuild. def install + inreplace 'otx.xcodeproj/project.pbxproj' do |s| + s.gsub! "MacOSX10.6.sdk", "MacOSX#{MacOS.version}.sdk" + end + system 'xcodebuild SYMROOT=build' build = buildpath/'build/Release' bin.install build+"otx"