Skip to content

Commit 217bbc6

Browse files
committed
Update constants for Xcode 16.0
1 parent 3157b7c commit 217bbc6

File tree

9 files changed

+20
-20
lines changed

9 files changed

+20
-20
lines changed

lib/xcodeproj/constants.rb

+9-9
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ module Xcodeproj
44
module Constants
55
# @return [String] The last known iOS SDK (stable).
66
#
7-
LAST_KNOWN_IOS_SDK = '14.0'
7+
LAST_KNOWN_IOS_SDK = '18.0'
88

99
# @return [String] The last known OS X SDK (stable).
1010
#
11-
LAST_KNOWN_OSX_SDK = '10.15'
11+
LAST_KNOWN_OSX_SDK = '15.0'
1212

1313
# @return [String] The last known tvOS SDK (stable).
1414
#
15-
LAST_KNOWN_TVOS_SDK = '14.0'
15+
LAST_KNOWN_TVOS_SDK = '18.0'
1616

1717
# @return [String] The last known visionOS SDK (unstable).
1818
#
19-
LAST_KNOWN_VISIONOS_SDK = '1.0'
19+
LAST_KNOWN_VISIONOS_SDK = '2.0'
2020

2121
# @return [String] The last known watchOS SDK (stable).
2222
#
23-
LAST_KNOWN_WATCHOS_SDK = '7.0'
23+
LAST_KNOWN_WATCHOS_SDK = '11.0'
2424

2525
# @return [String] The last known archive version to Xcodeproj.
2626
#
@@ -36,15 +36,15 @@ module Constants
3636

3737
# @return [String] The last known object version to Xcodeproj.
3838
#
39-
LAST_KNOWN_OBJECT_VERSION = 70
39+
LAST_KNOWN_OBJECT_VERSION = 77
4040

4141
# @return [String] The last known Xcode version to Xcodeproj.
4242
#
43-
LAST_UPGRADE_CHECK = '1500'
43+
LAST_UPGRADE_CHECK = '1600'
4444

4545
# @return [String] The last known Xcode version to Xcodeproj.
4646
#
47-
LAST_SWIFT_UPGRADE_CHECK = '1500'
47+
LAST_SWIFT_UPGRADE_CHECK = '1600'
4848

4949
# @return [String] The version of `.xcscheme` files supported by Xcodeproj
5050
#
@@ -132,7 +132,7 @@ module Constants
132132
# @return [Hash] The compatibility version string for different object versions.
133133
#
134134
COMPATIBILITY_VERSION_BY_OBJECT_VERSION = {
135-
70 => 'Xcode 16.0',
135+
77 => 'Xcode 16.0',
136136
63 => 'Xcode 15.3',
137137
60 => 'Xcode 15.0',
138138
56 => 'Xcode 14.0',

lib/xcodeproj/project/object/root_object.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class PBXProject < AbstractObject
5555

5656
# @return [String] preferred project object version
5757
#
58-
attribute :preferred_project_object_version, String, '70'
58+
attribute :preferred_project_object_version, String, Constants::LAST_KNOWN_OBJECT_VERSION.to_s
5959

6060
# @return [PBXGroup] the group containing the references to products of
6161
# the project.

spec/fixtures/Sample Project/Cocoa Application.xcodeproj/xcshareddata/xcschemes/iOS application and static library.xcscheme

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1500"
3+
LastUpgradeVersion = "1600"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

spec/fixtures/Sample Project/Cocoa Application.xcodeproj/xcshareddata/xcschemes/iOS application.xcscheme

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1500"
3+
LastUpgradeVersion = "1600"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

spec/fixtures/Sample Project/Cocoa Application.xcodeproj/xcshareddata/xcschemes/iOS applicationTests Set Build Target For Running.xcscheme

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1500"
3+
LastUpgradeVersion = "1600"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

spec/fixtures/Sample Project/Cocoa Application.xcodeproj/xcshareddata/xcschemes/iOS applicationTests.xcscheme

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1500"
3+
LastUpgradeVersion = "1600"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

spec/project/object/native_target_spec.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ module ProjectSpecs
603603
it 'adds a file reference for a system framework, in a dedicated subgroup of the Frameworks group' do
604604
@target.add_system_framework('QuartzCore')
605605
file = @project['Frameworks/iOS'].files.first
606-
file.path.should == 'Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/QuartzCore.framework'
606+
file.path.should == 'Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk/System/Library/Frameworks/QuartzCore.framework'
607607
file.source_tree.should == 'DEVELOPER_DIR'
608608
end
609609

@@ -625,21 +625,21 @@ module ProjectSpecs
625625
@target.build_configuration_list.set_setting('SDKROOT', 'appletvos')
626626
@target.add_system_framework('TVServices')
627627
file = @project['Frameworks/tvOS'].files.first
628-
file.path.scan(/\d\d\.\d/).first.should == Xcodeproj::Constants::LAST_KNOWN_TVOS_SDK
628+
file.path.scan(/\d+\.\d/).first.should == Xcodeproj::Constants::LAST_KNOWN_TVOS_SDK
629629
end
630630

631631
it 'uses the last known visionOS SDK version if none is specified in the target' do
632632
@target.build_configuration_list.set_setting('SDKROOT', 'xros')
633633
@target.add_system_framework('ARKit')
634634
file = @project['Frameworks/visionOS'].files.first
635-
file.path.scan(/\d\.\d/).first.should == Xcodeproj::Constants::LAST_KNOWN_VISIONOS_SDK
635+
file.path.scan(/\d+.\d/).first.should == Xcodeproj::Constants::LAST_KNOWN_VISIONOS_SDK
636636
end
637637

638638
it 'uses the last known watchOS SDK version if none is specified in the target' do
639639
@target.build_configuration_list.set_setting('SDKROOT', 'watchos')
640640
@target.add_system_framework('WatchConnectivity')
641641
file = @project['Frameworks/watchOS'].files.first
642-
file.path.scan(/\d\.\d/).first.should == Xcodeproj::Constants::LAST_KNOWN_WATCHOS_SDK
642+
file.path.scan(/\d+\.\d/).first.should == Xcodeproj::Constants::LAST_KNOWN_WATCHOS_SDK
643643
end
644644

645645
it "doesn't duplicate references to a frameworks if one already exists" do

spec/project/object/root_object_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module ProjectSpecs
4444
end
4545

4646
it 'returns the preferred project object version' do
47-
@root_object.preferred_project_object_version.should == '70'
47+
@root_object.preferred_project_object_version.should == '77'
4848
end
4949

5050
it 'returns the products group' do

spec/scheme_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ module ProjectSpecs
230230
expected = <<-XML.gsub(/^ {8}/, '')
231231
<?xml version="1.0" encoding="UTF-8"?>
232232
<Scheme
233-
LastUpgradeVersion = "1500"
233+
LastUpgradeVersion = "1600"
234234
version = "1.3">
235235
<BuildAction
236236
parallelizeBuildables = "YES"

0 commit comments

Comments
 (0)