diff --git a/Sources/SWBCore/MacroConfigFileLoader.swift b/Sources/SWBCore/MacroConfigFileLoader.swift index c2dc91b..d532f76 100644 --- a/Sources/SWBCore/MacroConfigFileLoader.swift +++ b/Sources/SWBCore/MacroConfigFileLoader.swift @@ -59,7 +59,7 @@ final class MacroConfigFileLoader: Sendable { return loadSettingsFromConfig(data: data, path: path, namespace: namespace, searchPaths: searchPaths, filesSignature: filesSignature) } - /// Stores data about previosuly visited xcconfig files. + /// Stores data about previously visited xcconfig files. fileprivate final class AncestorInclude { let path: Path let fs: any FSProxy diff --git a/Sources/SWBCore/MacroEvaluationExtensions.swift b/Sources/SWBCore/MacroEvaluationExtensions.swift index edfca81..57fc544 100644 --- a/Sources/SWBCore/MacroEvaluationExtensions.swift +++ b/Sources/SWBCore/MacroEvaluationExtensions.swift @@ -47,7 +47,7 @@ public extension PropertyListItem let parsedString = scope.table.namespace.parseString(string) let result = scope.evaluate(parsedString, lookup: preservingLookup) if anyReferencesWerePreserved { - // If we preserved any refererences, then we need to convert the '\$\(((' in the result back to '$('. + // If we preserved any references, then we need to convert the '\$\(((' in the result back to '$('. return result.replacingOccurrences(of: "\\$\\(((", with: "$(") } return result diff --git a/Sources/SWBCore/OptimizationRemarks.swift b/Sources/SWBCore/OptimizationRemarks.swift index a42dcf1..a07b53d 100644 --- a/Sources/SWBCore/OptimizationRemarks.swift +++ b/Sources/SWBCore/OptimizationRemarks.swift @@ -276,7 +276,7 @@ extension Diagnostic { public init?(_ remark: OptimizationRemark, workingDirectory: Path) { guard let debugLoc = remark.debugLoc else { return nil } // skip if no debug location let path = Path(debugLoc.sourceFilePath) - // Paths can be both asbolute and relative to the working directory. + // Paths can be both absolute and relative to the working directory. let absolutePath = path.makeAbsolute(relativeTo: workingDirectory) ?? path self.init(behavior: .remark, location: .path(absolutePath, line: Int(debugLoc.sourceLine), column: Int(debugLoc.sourceColumn)), data: DiagnosticData(remark.message)) } diff --git a/Sources/SWBCore/PlatformRegistry.swift b/Sources/SWBCore/PlatformRegistry.swift index 329badb..3f1346f 100644 --- a/Sources/SWBCore/PlatformRegistry.swift +++ b/Sources/SWBCore/PlatformRegistry.swift @@ -298,7 +298,7 @@ public final class PlatformRegistry { /// The list of all registered platforms, ordered by identifier. public private(set) var platforms = Array() - /// The map of platforms by identifer. + /// The map of platforms by identifier. @_spi(Testing) public private(set) var platformsByIdentifier = Dictionary() /// The map of platforms by name. diff --git a/Sources/SWBCore/Provisioning.swift b/Sources/SWBCore/Provisioning.swift index 306b03a..aba0c0c 100644 --- a/Sources/SWBCore/Provisioning.swift +++ b/Sources/SWBCore/Provisioning.swift @@ -27,7 +27,7 @@ public func wrappedBundleIdentifier(for bundleIdentifier: String) -> String { public func computeBundleIdentifier(from scope: MacroEvaluationScope, bundleIdentifierFromInfoPlist: MacroStringExpression) -> String { let productBundleIdentifier = scope.evaluate(BuiltinMacros.PRODUCT_BUNDLE_IDENTIFIER) if !productBundleIdentifier.isEmpty { - // When a test bundle is being signed **AND** that test bundle is being hosted in a test runner, then the bundle identifier should actualy match the test runner and **not** the test bundle. + // When a test bundle is being signed **AND** that test bundle is being hosted in a test runner, then the bundle identifier should actually match the test runner and **not** the test bundle. if scope.evaluate(BuiltinMacros.USES_XCTRUNNER) { return wrappedBundleIdentifier(for: productBundleIdentifier) } diff --git a/Sources/SWBCore/SDKRegistry.swift b/Sources/SWBCore/SDKRegistry.swift index 45c338a..af5a8b0 100644 --- a/Sources/SWBCore/SDKRegistry.swift +++ b/Sources/SWBCore/SDKRegistry.swift @@ -1164,7 +1164,7 @@ public final class SDKRegistry: SDKRegistryLookup, CustomStringConvertible, Send } // Iterate through all of the SDKs looking for the best match. - // We sort the values by canoical name in reverse-lexicographic order solely to ensure determinism in any potential weird edge cases someone might accidentally stumble into that we haven't considered. + // We sort the values by canonical name in reverse-lexicographic order solely to ensure determinism in any potential weird edge cases someone might accidentally stumble into that we haven't considered. var matchedSDK: (sdk: SDK, components: SDK.CanonicalNameComponents)? = nil for candidateSDK in sdksByCanonicalName.values.sorted(by: { $0.canonicalName > $1.canonicalName }) { // Get the components for the candidate SDK. diff --git a/Sources/SWBCore/SWBFeatureFlag.swift b/Sources/SWBCore/SWBFeatureFlag.swift index 4d998a2..a8b979e 100644 --- a/Sources/SWBCore/SWBFeatureFlag.swift +++ b/Sources/SWBCore/SWBFeatureFlag.swift @@ -137,7 +137,7 @@ public enum SWBFeatureFlag { public static let generatePrecompiledModulesReport = SWBFeatureFlagProperty("GeneratePrecompiledModulesReport", defaultValue: false) - /// Turn on llbuild's ownership analyis. + /// Turn on llbuild's ownership analysis. /// Remove this feature flag after landing rdar://104894978 (Write "perform-ownership-analysis" = "yes" to build manifest by default) public static let performOwnershipAnalysis = SWBFeatureFlagProperty("PerformOwnershipAnalysis", defaultValue: false)