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

vapor.json build config not loaded #181

Closed
HazAT opened this issue Jun 20, 2017 · 0 comments
Closed

vapor.json build config not loaded #181

HazAT opened this issue Jun 20, 2017 · 0 comments

Comments

@HazAT
Copy link

HazAT commented Jun 20, 2017

I am trying to link libz with my package, taken from this example
https://github.com/vapor/toolbox/blob/master/Tests/VaporToolboxTests/VaporConfigResources/Packages/Example-10.0.1/vapor.json

But the linker ignores it, so it fails to link Sentry, here is the file
https://github.com/getsentry/sentry-cocoa/blob/master/vapor.json
If I run locally swift build -Xlinker -lz it works fine for Sentry.

This is my Package.swift

import PackageDescription

let package = Package(
    name: "test",
    targets: [
        Target(name: "App"),
        Target(name: "Run", dependencies: ["App"]),
    ],
    dependencies: [
        .Package(url: "https://github.com/vapor/vapor.git", majorVersion: 2),
        .Package(url: "https://github.com/vapor/leaf-provider.git", majorVersion: 1),
        .Package(url: "https://github.com/getsentry/sentry-cocoa.git", "3.0.12")
    ],
    exclude: [
        "Config",
        "Database",
        "Public",
        "Resources",
    ]
)
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

1 participant