Skip to content

Commit

Permalink
fix xcodebuild path
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Sep 1, 2014
1 parent b18c0b1 commit d30a6f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/motion/project/template/ios-extension-config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def supported_sdk_versions(versions)
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

Expand Down
2 changes: 1 addition & 1 deletion lib/motion/project/template/ios-framework/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def supported_sdk_versions(versions)
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
Expand Down

0 comments on commit d30a6f2

Please sign in to comment.