tristanhimmelman / ObjectMapper

Simple JSON Object mapping written in Swift
MIT License
9.15k stars 1.03k forks source link

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

Open fhchina opened 7 months ago

fhchina commented 7 months ago

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 commented 7 months ago

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

fhchina commented 7 months ago

I have created a pull-request https://github.com/tristanhimmelman/ObjectMapper/pull/1141

Shannon-Yang commented 7 months ago

I'm having the same problem, any updates?

ChopinDavid commented 6 months ago

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