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

// swift-tools-version:5.0 doesn't work under Xcode 15 #1140

Open
fhchina opened this issue Mar 31, 2024 · 4 comments
Open

// swift-tools-version:5.0 doesn't work under Xcode 15 #1140

fhchina opened this issue Mar 31, 2024 · 4 comments

Comments

@fhchina
Copy link

fhchina commented Mar 31, 2024

Fetching from https://github.com/tristanhimmelman/ObjectMapper

Invalid manifest (compiled with: ["/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc", "-vfsoverlay", "/var/folders/04/c4nd13y54pl5mg5wh_m9ymsm0000gn/T/TemporaryDirectory.G0Crts/vfs.yaml", "-L", "/Applications/Xcode.app/Contents/SharedFrameworks/SwiftPM.framework/SharedSupport/ManifestAPI", "-lPackageDescription", "-Xlinker", "-rpath", "-Xlinker", "/Applications/Xcode.app/Contents/SharedFrameworks/SwiftPM.framework/SharedSupport/ManifestAPI", "-target", "x86_64-apple-macos13.0", "-sdk", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk", "-swift-version", "5", "-I", "/Applications/Xcode.app/Contents/SharedFrameworks/SwiftPM.framework/SharedSupport/ManifestAPI", "-sdk", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk", "-package-description-version", "5.0.0", "-Xfrontend", "-serialize-diagnostics-path", "-Xfrontend", "/Users/fanghao/Library/Caches/org.swift.swiftpm/manifests/ManifestLoading/objectmapper.dia", "/Package.swift", "-disallow-use-new-driver", "-o", "/var/folders/04/c4nd13y54pl5mg5wh_m9ymsm0000gn/T/TemporaryDirectory.61nu14/objectmapper-manifest"])
:0: warning: legacy driver is now deprecated; consider avoiding specifying '-disallow-use-new-driver'
/Package.swift:8:41: error: 'v13' is unavailable
.iOS(.v13),
^~~
PackageDescription.SupportedPlatform:71:27: note: 'v13' was introduced in PackageDescription 5.1
public static let v13: PackageDescription.SupportedPlatform.IOSVersion
^ in https://github.com/tristanhimmelman/ObjectMapper

@fhchina
Copy link
Author

fhchina commented Mar 31, 2024

I have change swift-tools-version to // swift-tools-version:5.3 in Package.swift, now it works

@fhchina
Copy link
Author

fhchina commented Mar 31, 2024

I have created a pull-request #1141

@Shannon-Yang
Copy link

I'm having the same problem, any updates?

@ChopinDavid
Copy link

Same issue, fhchina's branch seems to fix the issue.

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

No branches or pull requests

3 participants