-
Notifications
You must be signed in to change notification settings - Fork 129
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
Linking CYaml #39
Comments
AFAIK, this is limitation of SwiftPM in Swift 3.x. |
I confirmed that $ swift build -Xlinker -rpath -Xlinker @executable_path
…
$ install_name_tool -change /Users/norio/github/SwagGen/.build/debug/libCYaml.dylib @rpath/libCYaml.dylib .build/debug/SwagGen
$ mkdir test
$ mv .build/debug/SwagGen .build/debug/libCYaml.dylib test
$ test/SwagGen
Must provide a valid spec This allows placing |
I can't identify anything actionable from this issue, so I'm closing it. Please clarify if it should be re-opened and why. Thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
This is not directly an issue with YAMS specifically, but I'm having trouble running a CI tool that depends on this due to CYaml. My Package.swift is here https://github.com/yonaskolb/SwagGen
When it's built with
swift build
I can do.build/debug/SwagGen
and it runs fine. But if I move it out of there, and delete build directory, it will not run as libCYaml.dylib is not present and it's referenced by an absolute path:Do you know a way around this? Bundling up CYaml into the app? linking to a global framework instead relative path? Or another solution?
The text was updated successfully, but these errors were encountered: