Skip to content

Conversation

@owenv
Copy link
Collaborator

@owenv owenv commented Dec 10, 2025

This ensures we don't attempt to apply them when targeting a non-Apple platform.

Closes swiftlang/swift-package-manager#9423

@owenv
Copy link
Collaborator Author

owenv commented Dec 10, 2025

@swift-ci test

@owenv
Copy link
Collaborator Author

owenv commented Dec 11, 2025

@swift-ci test

self.appShortcutStringsMetadataCompilerSpec = workspaceContext.core.specRegistry.getSpec("com.apple.compilers.appshortcutstringsmetadata", domain: domain) as! AppShortcutStringsMetadataCompilerSpec
self.appleScriptCompilerSpec = workspaceContext.core.specRegistry.getSpec("com.apple.compilers.osacompile", domain: domain) as! CommandLineToolSpec
self.appShortcutStringsMetadataCompilerSpec = workspaceContext.core.specRegistry.getSpec("com.apple.compilers.appshortcutstringsmetadata", domain: domain) as? AppShortcutStringsMetadataCompilerSpec
self.appleScriptCompilerSpec = workspaceContext.core.specRegistry.getSpec("com.apple.compilers.osacompile", domain: domain) as? CommandLineToolSpec
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure as? CommandLineToolSpec is correct? Should it be as CommandLineToolSpec?? I forgot how the generics are set up here, but just worth double checking.

e.g. if this was an instance of OtherKindOfSpec I'd expect this to fail rather than return nil.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up just reworking getSpec to take an explicit type parameter so we're not relying on coercions and casting behavior here

@owenv
Copy link
Collaborator Author

owenv commented Dec 11, 2025

@swift-ci test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Parity] error: ExecuteExternalTool xcstringstool compile

3 participants