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

Swift Package Manager Issues #19

Open
ChrisChares opened this issue Mar 9, 2016 · 2 comments
Open

Swift Package Manager Issues #19

ChrisChares opened this issue Mar 9, 2016 · 2 comments

Comments

@ChrisChares
Copy link

I'm sure this is somehow a user error on my end but I can't figure it out. Just started using the Swift Package Manager last night.

My Package.swift

import PackageDescription
let package = Package(
        dependencies: [
                .Package(url: "https://github.com/stepanhruda/PostgreSQL-Swift.git", majorVersion: 0)
            ]
)

Steps:

  • brew install postgresql
  • brew tap zewo/tap
  • brew install libvenice
  • swift build

Receive error: ld: library not found for -lvenice for architecture x86_64

What is venice and how did it become a dependency anyway? It's not in my project, it's not a dependency of PostgreSQL-Swift and it's not a dependency of libpq-darwin. Furthermore what architecture would brew even install for if not x86_64.

@ChrisChares
Copy link
Author

Resolved this with the help of everyone over in the Zewo slack team. Seems there's an issue with the Swift Package Manager in the 2/8 snapshot. Instead of swift build, you have to build with swift build -Xswiftc -I/usr/local/include -Xlinker -L/usr/local/lib in order to explicitly set search paths.

More on the issue:
swiftlang/swift-package-manager#165

@stepanhruda
Copy link
Owner

Yep, will add a convenient command to Makefile, we already have one in an upstream project.

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

2 participants