yonat / MultiSlider

UISlider clone with multiple thumbs and values, range highlight, optional snap intervals, optional value labels, either vertical or horizontal.
MIT License
494 stars 113 forks source link

Unable to Compile Project After Update to AvailableHapticFeedback Dependency #99

Closed eborrowman-quativa closed 1 year ago

eborrowman-quativa commented 1 year ago

Description of the problem: When attempting to build our app that is referencing version 1.11.2 and up of the package, we got a compiler issue trying to add the AvailableHapticFeedback dependency. Builds were working without issue last week, so it looks like it may be related to the 1.0.3 release of the AvailableHapticFeedback package.

Here is the error generated during the build process:

Invalid manifest (compiled with: ["/Applications/Xcode-14.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc", "-vfsoverlay", "/var/folders/69/qgnyrbkx23dbp0p6p_b6bc9m0000gn/T/TemporaryDirectory.Z6ZB3T/vfs.yaml", "-L", "/Applications/Xcode-14.3.1.app/Contents/PlugIns/IDESwiftPackageCore.framework/Versions/A/Frameworks/SwiftPM.framework/SharedSupport/ManifestAPI", "-lPackageDescription", "-Xlinker", "-rpath", "-Xlinker", "/Applications/Xcode-14.3.1.app/Contents/PlugIns/IDESwiftPackageCore.framework/Versions/A/Frameworks/SwiftPM.framework/SharedSupport/ManifestAPI", "-target", "arm64-apple-macos12.0", "-sdk", "/Applications/Xcode-14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk", "-swift-version", "5", "-I", "/Applications/Xcode-14.3.1.app/Contents/PlugIns/IDESwiftPackageCore.framework/Versions/A/Frameworks/SwiftPM.framework/SharedSupport/ManifestAPI", "-sdk", "/Applications/Xcode-14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk", "-package-description-version", "5.1.0", "-Xfrontend", "-serialize-diagnostics-path", "-Xfrontend", "/Users/[REDACTED]/Library/Caches/org.swift.swiftpm/manifests/ManifestLoading/availablehapticfeedback.dia", "/Package.swift", "-disallow-use-new-driver", "-o", "/var/folders/69/qgnyrbkx23dbp0p6p_b6bc9m0000gn/T/TemporaryDirectory.Nb0pUy/availablehapticfeedback-manifest"])

:0: warning: legacy driver is now deprecated; consider avoiding specifying '-disallow-use-new-driver' /Package.swift:16:10: error: 'target(name:dependencies:path:exclude:sources:resources:publicHeadersPath:cSettings:cxxSettings:swiftSettings:linkerSettings:)' is unavailable .target(name: "AvailableHapticFeedback", dependencies: [], path: "Sources", resources: [.copy("PrivacyInfo.xcprivacy")]), ^~~~~~ PackageDescription.Target:59:24: note: 'target(name:dependencies:path:exclude:sources:resources:publicHeadersPath:cSettings:cxxSettings:swiftSettings:linkerSettings:)' was introduced in PackageDescription 5.3 public static func target(name: String, dependencies: [PackageDescription.Target.Dependency] = [], path: String? = nil, exclude: [String] = [], sources: [String]? = nil, resources: [PackageDescription.Resource]? = nil, publicHeadersPath: String? = nil, cSettings: [PackageDescription.CSetting]? = nil, cxxSettings: [PackageDescription.CXXSetting]? = nil, swiftSettings: [PackageDescription.SwiftSetting]? = nil, linkerSettings: [PackageDescription.LinkerSetting]? = nil) -> PackageDescription.Target ^ in https://github.com/yonat/AvailableHapticFeedback **Minimal project that reproduces the problem (so I'll be able to figure out how to fix it):** I tried to create a blank new project in Xcode to reproduce the issue, but when I tried to add in the MultiSlider package, I was unable to do so. ![image](https://github.com/yonat/MultiSlider/assets/112408126/521ff6b4-7369-422f-91a6-ea2ddff43dde)