Skip to content

Commit f723e5a

Browse files
JonyFangmeta-codesync[bot]
authored andcommitted
Downgrade swift-tools-version to 6.0 for broader compatibility (#3)
Summary: This PR makes QuickLayout accessible to developers using stable Xcode versions by downgrading the Swift tools version requirement. ## Changes - Downgrade `swift-tools-version` from 6.2 to 6.0 - Update `swift-syntax` dependency from 602.0.0 to 600.0.0 - Fix Demo project iOS deployment target from 26.0 to 15.0 ## Rationale - **Swift 6.2 requires Xcode 16.5 Beta**, which most developers don't have access to. Swift 6.0 (Xcode 16.0+) is widely available. - **swift-syntax version must match the Swift tools version** (600.x for Swift 6.0). - **iOS 26.0 does not exist** - this was a configuration error. Changed to 15.0 to match the `platforms` declaration in Package.swift. ## Verification - [x] `swift package resolve` succeeds - [x] `xcodebuild -scheme QuickLayout -destination 'platform=iOS Simulator,name=iPhone 16' build` succeeds - [x] Demo project builds successfully Pull Request resolved: #3 Reviewed By: tumtumtum Differential Revision: D88010997 Pulled By: constantine-fry fbshipit-source-id: 751cfb12ccdae289dae222a383aeff3962e14bb2
1 parent ae0d031 commit f723e5a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Demo/Demo.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
200200
GCC_WARN_UNUSED_FUNCTION = YES;
201201
GCC_WARN_UNUSED_VARIABLE = YES;
202-
IPHONEOS_DEPLOYMENT_TARGET = 26.0;
202+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
203203
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
204204
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
205205
MTL_FAST_MATH = YES;
@@ -256,7 +256,7 @@
256256
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
257257
GCC_WARN_UNUSED_FUNCTION = YES;
258258
GCC_WARN_UNUSED_VARIABLE = YES;
259-
IPHONEOS_DEPLOYMENT_TARGET = 26.0;
259+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
260260
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
261261
MTL_ENABLE_DEBUG_INFO = NO;
262262
MTL_FAST_MATH = YES;

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 6.2
1+
// swift-tools-version: 6.0
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33
/*
44
* Copyright (c) Meta Platforms, Inc. and affiliates.
@@ -35,7 +35,7 @@ let package = Package(
3535
),
3636
],
3737
dependencies: [
38-
.package(url: "https://github.com/apple/swift-syntax.git", from: "602.0.0")
38+
.package(url: "https://github.com/apple/swift-syntax.git", from: "600.0.0")
3939
],
4040
targets: [
4141
.target(

0 commit comments

Comments
 (0)