Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update example so that it builds on Swift 6 #314

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vsarunas
Copy link

Update example Package.swift for dependencies that the command builds on Swift 6 using:

swift run -c release --package-path ./BuildTools xcbeautify

@vsarunas vsarunas requested a review from cpisciotta as a code owner August 30, 2024 12:52
Comment on lines 56 to 64
targets: [
.target(name: "BuildTools", path: "")
.target(
name: "BuildTools",
dependencies: [
.product(name: "xcbeautify", package: "xcbeautify"),
],
path: ""
)
]
Copy link
Owner

Choose a reason for hiding this comment

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

Hey @vsarunas! Thanks for your contribution. Curious, why did you add this dependencies section? xcbeautify is an executable target. Did you mean to show how to use XcbeautifyLib? If so, can you change name to XcbeautifyLib. Otherwise, I think you can delete this part of the change.

Copy link
Owner

Choose a reason for hiding this comment

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

You can see an example here.

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.

2 participants