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

Dependencies: dynamic library linkage #271

Open
libe opened this issue Mar 22, 2018 · 2 comments
Open

Dependencies: dynamic library linkage #271

libe opened this issue Mar 22, 2018 · 2 comments
Labels

Comments

@libe
Copy link

libe commented Mar 22, 2018

Hello,

I am having troubles trying to link a dynamic library with the following spec

MyFramework:
  type: framework
  platform: iOS
  deploymentTarget: "11.0"
  dependencies: 
    - framework: deps/Curl/libcurl.a
      embed: true

When I inspect the Xcode project generated I can see that the library appears in the Link Frameworks section but the at link time I get the error -lcurl not found.

Is linking dynamic libraries supported? From the docs it is not explicitly mentioned it seems.

Thanks again for this great tool!

Libe

@yonaskolb
Copy link
Owner

Hi Libe
Does the solution posted in #192 solve your issue, by adding the dependency to FRAMEWORK_SEARCH_PATHS?

@libe
Copy link
Author

libe commented Apr 4, 2018

Hello,

I managed to solve the issue by using the OTHER_LDFLAGS and LIBRARY_SEARCH_PATHS variables to link with the shared libraries. I don't know if FRAMEWORK_SEARCH_PATHS can get the job done in the same way (I only have a precompiled .a library).

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