yonaskolb / yonaskolb/XcodeGen

Dependencies: dynamic library linkage

Open
#271 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Swift
Stars
8.8k
Forks
908
Avg merge
17d 14h
Merged PRs (30d)
2

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue from the supplied MyFramework YAML specification and inspect the generated Xcode project, especially its Link Frameworks section. Trace how deps/Curl/libcurl.a is represented and investigate the reported “-lcurl not found” link-time failure; done means dynamic library linkage is supported or its limitation is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift, yaml
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.