update default xcode recipe to handle all three platforms

This commit is contained in:
Jacob Zaval 2018-04-03 16:53:37 -07:00
Родитель 35bc841b54
Коммит 2feca9dd8d
1 изменённых файлов: 20 добавлений и 2 удалений

Просмотреть файл

@ -1,3 +1,21 @@
xcode node['macos']['xcode']['version'] do
ios_simulators node['macos']['xcode']['simulator']['major_version']
if node['platform_version'].match? Regexp.union '10.13'
execute 'Disable Gatekeeper' do
command ['spctl', '--master-disable']
end
xcode node['macos']['xcode']['version']
elsif node['platform_version'].match? Regexp.union '10.12'
execute 'Disable Gatekeeper' do
command ['spctl', '--master-disable']
end
xcode '9.2' do
ios_simulators %w(11 10)
end
elsif node['platform_version'].match? Regexp.union '10.11'
xcode '8.2.1' do
ios_simulators %w(10 9)
end
end