Skip to content

Commit

Permalink
Update to Swift 6
Browse files Browse the repository at this point in the history
  • Loading branch information
jdisho committed Jan 17, 2025
1 parent 97aad47 commit bf919b9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
20 changes: 10 additions & 10 deletions LLMonFHIR.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 1340;
LastUpgradeCheck = 1530;
LastUpgradeCheck = 1620;
TargetAttributes = {
653A254C283387FE005D4D48 = {
CreatedOnToolsVersion = 13.4;
Expand Down Expand Up @@ -769,7 +769,7 @@
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES;
"SWIFT_ELicenseRef-LLMonFHIR_LOC_STRINGS" = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
SWIFT_VERSION = 6.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Test;
Expand All @@ -787,7 +787,7 @@
PRODUCT_BUNDLE_IDENTIFIER = edu.stanford.bdhg.llmonfhir.tests;
PRODUCT_NAME = "$(TARGET_NAME)";
"SWIFT_ELicenseRef-LLMonFHIR_LOC_STRINGS" = NO;
SWIFT_VERSION = 5.0;
SWIFT_VERSION = 6.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LLMonFHIR.app/LLMonFHIR";
};
Expand All @@ -805,7 +805,7 @@
PRODUCT_BUNDLE_IDENTIFIER = edu.stanford.bdhg.llmonfhiruitests;
PRODUCT_NAME = "$(TARGET_NAME)";
"SWIFT_ELicenseRef-LLMonFHIR_LOC_STRINGS" = NO;
SWIFT_VERSION = 5.0;
SWIFT_VERSION = 6.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_TARGET_NAME = LLMonFHIR;
};
Expand Down Expand Up @@ -972,7 +972,7 @@
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES;
"SWIFT_ELicenseRef-LLMonFHIR_LOC_STRINGS" = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
SWIFT_VERSION = 6.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand Down Expand Up @@ -1021,7 +1021,7 @@
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES;
"SWIFT_ELicenseRef-LLMonFHIR_LOC_STRINGS" = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
SWIFT_VERSION = 6.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand All @@ -1039,7 +1039,7 @@
PRODUCT_BUNDLE_IDENTIFIER = edu.stanford.bdhg.llmonfhir.tests;
PRODUCT_NAME = "$(TARGET_NAME)";
"SWIFT_ELicenseRef-LLMonFHIR_LOC_STRINGS" = NO;
SWIFT_VERSION = 5.0;
SWIFT_VERSION = 6.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LLMonFHIR.app/LLMonFHIR";
};
Expand All @@ -1058,7 +1058,7 @@
PRODUCT_BUNDLE_IDENTIFIER = edu.stanford.bdhg.llmonfhir.tests;
PRODUCT_NAME = "$(TARGET_NAME)";
"SWIFT_ELicenseRef-LLMonFHIR_LOC_STRINGS" = NO;
SWIFT_VERSION = 5.0;
SWIFT_VERSION = 6.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LLMonFHIR.app/LLMonFHIR";
};
Expand All @@ -1076,7 +1076,7 @@
PRODUCT_BUNDLE_IDENTIFIER = edu.stanford.bdhg.llmonfhiruitests;
PRODUCT_NAME = "$(TARGET_NAME)";
"SWIFT_ELicenseRef-LLMonFHIR_LOC_STRINGS" = NO;
SWIFT_VERSION = 5.0;
SWIFT_VERSION = 6.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_TARGET_NAME = LLMonFHIR;
};
Expand All @@ -1094,7 +1094,7 @@
PRODUCT_BUNDLE_IDENTIFIER = edu.stanford.bdhg.llmonfhiruitests;
PRODUCT_NAME = "$(TARGET_NAME)";
"SWIFT_ELicenseRef-LLMonFHIR_LOC_STRINGS" = NO;
SWIFT_VERSION = 5.0;
SWIFT_VERSION = 6.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_TARGET_NAME = LLMonFHIR;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1530"
LastUpgradeVersion = "1620"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
5 changes: 5 additions & 0 deletions LLMonFHIR/Settings/ResourceSelection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,8 @@ struct ResourceSelection: View {
}
}
}

/// Necessary `Sendable` conformance for Swift 6 language mode.
/// This allows the type to be used in concurrent contexts while acknowledging that we take
/// responsibility for ensuring thread safety, rather than relying on the compiler's verification.
extension ModelsR4.Bundle: @retroactive @unchecked Sendable {}

0 comments on commit bf919b9

Please sign in to comment.