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

Xcode 13 / Swift 5.5 configuration failing #20

Closed
minuscorp opened this issue Sep 27, 2021 · 1 comment · Fixed by #21
Closed

Xcode 13 / Swift 5.5 configuration failing #20

minuscorp opened this issue Sep 27, 2021 · 1 comment · Fixed by #21
Labels
enhancement New feature or request good first issue Good for newcomers You can do this

Comments

@minuscorp
Copy link
Collaborator

Greetings.

I'd be using this library through Komondor without any issue until the last Swift 5.5 release, where PackageConfig no longer is able to compile nor generate the JSON config files needed for the other tools to work. This is the whole build:

CMD: /usr/bin/xcrun --find swiftc
Using SPM version: /Applications/Xcode-13.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/pm/libPackagePlugin.dylib
CMD: /Applications/Xcode-13.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc --driver-mode=swift -L /Applications/Xcode-13.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/pm/libPackagePlugin.dylib -I /Applications/Xcode-13.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/pm/libPackagePlugin.dylib -lPackageDescription -package-description-version 5.5 -L .build/debug -I .build/debug -lPackageConfig -suppress-warnings Package.swift
Package.swift:4:8: error: no such module 'PackageDescription'
import PackageDescription
       ^
Finished launching swiftc
Error(reason: "Could not find a file at /var/folders/x6/dpg51cd946x8w__7znsbz5x00000gq/T/example.config.json - something went wrong with compilation step probably")
@orta orta added enhancement New feature or request good first issue Good for newcomers You can do this labels Sep 27, 2021
@orta
Copy link
Member

orta commented Sep 27, 2021

Cool, maybe swiftc changed their CLI args at a guess - https://github.com/shibapm/PackageConfig#how-to-see-the-json-from-a-packageswift-file should offer some help for debugging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers You can do this
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants