Post

Replies

Boosts

Views

Activity

XcodeCommandPlugin not showing any local Swift Package dependencies
I've got an Xcode 15 Project with an iOS App that has local Swift Package dependencies, and also an Xcode Command Plugin. The package libraries are statically linked to the App from the project General tab 'Framework, Libraries, and embedded content'. The problem is when running the Command Plugin against the Xcode project, the XcodePluginContext does not show that the App has any dependencies to the to local Swift packages. extension FooCommandPlugin: XcodeCommandPlugin { func performCommand(context: XcodeProjectPlugin.XcodePluginContext, arguments: [String]) throws { print("plugin context: \(context)") results in: XcodePluginContext(xcodeProject: XcodeProjectPlugin.XcodeProject(id: "0", displayName: "Foo", directory: ..., filePaths: PackagePlugin.PathList(paths: [...]), targets: [XcodeProjectPlugin.XcodeTarget(id: "0", displayName: "Foo", product: Optional(XcodeProjectPlugin.XcodeProduct(name: "Foo", kind: XcodeProjectPlugin.XcodeProduct.Kind.application)), dependencies: [], inputFiles:... The expectation was that dependncies: [] would be populated with the local package libraries.
0
0
414
Oct ’23