Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

Add SDKSource for XcodeKit #262

@navtoj

Description

@navtoj

The XcodeKit framework is located at the following path:

/Applications/Xcode.app/Contents/Developer/Library/Frameworks/XcodeKit.framework

This path is equivalent to $(DEVELOPER_DIR)/Library/Frameworks which is not covered by the current cases.

private func sdkPath(name: String, platform: Platform, type: SDKType, source: SDKSource) throws -> AbsolutePath {
switch source {
case .developer:
let xcodeDeveloperSdkRootPath = platform.xcodeDeveloperSdkRootPath
let sdkRootPath = try AbsolutePath(validating: "/\(xcodeDeveloperSdkRootPath)")
return sdkRootPath
.appending(try RelativePath(validating: "Frameworks"))
.appending(component: name)
case .system:
let sdkRootPath = try AbsolutePath(validating: "/\(platform.xcodeSdkRootPath)")
switch type {
case .framework:
return sdkRootPath
.appending(try RelativePath(validating: "System/Library/Frameworks"))
.appending(component: name)
case .library:
return sdkRootPath
.appending(try RelativePath(validating: "usr/lib"))
.appending(component: name)
case .swiftLibrary:
return sdkRootPath
.appending(components: "usr", "lib", "swift", name)
}
}
}

Related: tuist/tuist#7973

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions