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

SwiftLint above 0.56.0 isn't compilable with Xcode 16 #5853

Closed
AF-cgi opened this issue Nov 15, 2024 · 9 comments
Closed

SwiftLint above 0.56.0 isn't compilable with Xcode 16 #5853

AF-cgi opened this issue Nov 15, 2024 · 9 comments
Labels
help Questions or user problems that require more explanation rather than code changes.

Comments

@AF-cgi
Copy link

AF-cgi commented Nov 15, 2024

Bug Description

I use mint to install SwiftLint. The version 0.55.1 works fine and it's possible to install this version with Xcode 16 command line tool. But version 0.56.0 and above it's not possible to install SwiftLint anymore. I get the following error: Failed to resolve SwiftLint 0.57.0 with SPM.

@SimplyDanny
Copy link
Collaborator

Please provide a more detailed error. "Failed to resolve SwiftLint 0.57.0 with SPM" could mean a lot.

@SimplyDanny SimplyDanny added the help Questions or user problems that require more explanation rather than code changes. label Nov 15, 2024
@AF-cgi
Copy link
Author

AF-cgi commented Nov 19, 2024

I get the following issue:

Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
error: Couldn’t get the list of tags:
    fatal: cannot use bare repository '/private/var/folders/x4/pm13mqns0kl1wr_1z5m5zcw40000gn/T/mint/github.com_realm_SwiftLint/.build/repositories/CryptoSwift-02302490' (safe.bareRepository is 'explicit')
🌱 Encountered error during "swift package resolve". Use --verbose to see full output

I get the same issue, when I've opened the Package.swift file in Xcode directly.
I'm not sure, if CryptoSwift is the main issue. When I execute the open PR #5852 I get the following issue:

Computing version for https://github.com/apple/swift-crypto.git
error: Couldn’t get the list of tags:
    fatal: cannot use bare repository '/private/var/folders/x4/pm13mqns0kl1wr_1z5m5zcw40000gn/T/mint/github.com_kabiroberai_SwiftLint/.build/repositories/swift-crypto-7e0614ea' (safe.bareRepository is 'explicit')
🌱 Encountered error during "swift package resolve". Use --verbose to see full output

@SimplyDanny
Copy link
Collaborator

This rather looks like a Mint issue. Did you try cleaning the temporary directory and start over with the installation?

@AF-cgi
Copy link
Author

AF-cgi commented Nov 19, 2024

If I open the Package.swift with Xcode 16 I get the same issue. It's related to Xcode 16 Command Line. I've updated my macOS to Sequoia. With macOS Sequoia it's not possible to install Xcode 15 anymore. That's my point.

@SimplyDanny
Copy link
Collaborator

I'm on Sequoia with Xcode 16.1 as well and 0.57.0 resolves and builds just fine. I really suspect an issue with this temporary directory.

@irangareddy
Copy link

Hi. I also face same issue.

swiftlint
SourceKittenFramework/library_wrapper.swift:58: Fatal error: Loading sourcekitdInProc.framework/Versions/A/sourcekitdInProc failed
[1] 3908 trace trap swiftlint

@SimplyDanny
Copy link
Collaborator

Hi. I also face same issue.

swiftlint SourceKittenFramework/library_wrapper.swift:58: Fatal error: Loading sourcekitdInProc.framework/Versions/A/sourcekitdInProc failed [1] 3908 trace trap swiftlint

There are a few issues addressing this problem. Please search for sourcekitdInProc in all issues. I bet you will find a solution.

@AF-cgi
Copy link
Author

AF-cgi commented Nov 20, 2024

Hi, I figured out the related issue. This issue is based on an issue with the settings of the gloabel .gitconfig (see here).

@AF-cgi AF-cgi closed this as completed Nov 20, 2024
@SimplyDanny
Copy link
Collaborator

Hi, I figured out the related issue. This issue is based on an issue with the settings of the gloabel .gitconfig (see here).

That's good news. Thanks for letting us know. This will probably come up again. 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help Questions or user problems that require more explanation rather than code changes.
Projects
None yet
Development

No branches or pull requests

3 participants