mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-27 22:41:16 +08:00
fix xcodebuild path
This commit is contained in:
@@ -200,7 +200,7 @@ module Motion; module Project;
|
||||
def sdk_build_version(platform)
|
||||
@sdk_build_version ||= begin
|
||||
sdk_path = sdk(platform)
|
||||
`\"#{xcode_dir}/usr/bin/xcodebuild\" -version -sdk '#{sdk_path}' ProductBuildVersion`.strip
|
||||
`#{locate_binary('xcodebuild')} -version -sdk '#{sdk_path}' ProductBuildVersion`.strip
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -213,7 +213,7 @@ module Motion; module Project;
|
||||
def sdk_build_version(platform)
|
||||
@sdk_build_version ||= begin
|
||||
sdk_path = sdk(platform)
|
||||
`xcodebuild -version -sdk '#{sdk_path}' ProductBuildVersion`.strip
|
||||
`#{locate_binary('xcodebuild')} -version -sdk '#{sdk_path}' ProductBuildVersion`.strip
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user