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

Cannot install via SPM, error: Invalid manifest #1137

Open
MrShiY opened this issue Mar 13, 2024 · 7 comments
Open

Cannot install via SPM, error: Invalid manifest #1137

MrShiY opened this issue Mar 13, 2024 · 7 comments

Comments

@MrShiY
Copy link

MrShiY commented Mar 13, 2024

Screenshot 2024-03-13 at 16 05 30 Invalid manifest (compiled with: ["/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc", "-vfsoverlay", "/var/folders/4x/v20vyl2d3fv2p1kgfym1jv0c0000gn/T/TemporaryDirectory.X8kS5e/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", "arm64-apple-macos13.0", "-sdk", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.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.2.sdk", "-package-description-version", "5.0.0", "-Xfrontend", "-serialize-diagnostics-path", "-Xfrontend", "/Users/skt_long/Library/Caches/org.swift.swiftpm/manifests/ManifestLoading/objectmapper.dia", "/Package.swift", "-disallow-use-new-driver", "-o", "/var/folders/4x/v20vyl2d3fv2p1kgfym1jv0c0000gn/T/TemporaryDirectory.9y3swo/objectmapper-manifest"])

XCode version: 15.2
ObjectMapper version: 4.3.0

@RasikBhil
Copy link

RasikBhil commented Mar 13, 2024

++

@MartinMetselaar
Copy link

The current Package.swift is using swift-tools-version:5.0 and my current assumption is that iOS(.v13) was not available during swift 5.0.

You are probably using upToNextMajor, so that is why you are using the latest released 4.3.0 version. If you are pinning on 4.2.0 you will be fine until this is fixed.

@MartinMetselaar
Copy link

I see a PR has already been created to fix the issue: #1136

@MrShiY
Copy link
Author

MrShiY commented Mar 13, 2024

Screenshot 2024-03-13 at 20 46 32

I installed 4.2.0, it works well

@parmar-mehul
Copy link

Hello Friends,

Try this. It works for me. Just need to update swift-tools-version,

.package(url: "https://github.com/elmetal/ObjectMapper", branch: "feature/fix-swift-tools-version"),

Good luck!
You can contact me, In case if you need my help.
[email protected]

Here is link of related issue,
#1136 (comment)

@jmanalang3
Copy link

4.2.0 works thank you!!!

@bogiahatay
Copy link

change to 4.2.0 works for me

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

6 participants