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

Unable to Compile Project After Update to AvailableHapticFeedback Dependency #99

Closed
eborrowman-quativa opened this issue Aug 22, 2023 · 0 comments
Assignees
Labels

Comments

@eborrowman-quativa
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants