tristanhimmelman / ObjectMapper

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

Current Package.swift config does not work #1147

Open kaulex99 opened 4 months ago

kaulex99 commented 4 months ago

The current Package.swift config is not working. When Xcode tries to resolve the ObjectMapper version 4.4.2 it ends up in following error.

/Package.swift:7:43: error: 'v12' is unavailable
                      platforms: [.macOS(.v12),
                                          ^~~
PackageDescription.SupportedPlatform:21:27: note: 'v12' was introduced in PackageDescription 5.5
        public static let v12: PackageDescription.SupportedPlatform.MacOSVersion
                          ^ in https://github.com/tristanhimmelman/ObjectMapper.git

So the first line of the package file need to be changed to version 5.5

// swift-tools-version:5.5

@tristanhimmelman

kaulex99 commented 4 months ago

PR has been created and needs to be reviewed & merged.