Skip to content

Why a static library cannot be linked to a framework but can be linked to an application? #1540

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

Open
CarlitosDroid opened this issue Apr 10, 2025 · 0 comments

Comments

@CarlitosDroid
Copy link

Background

I have the following structure:

  1. CoreDomain target of type library.static.
  2. MyApplication target of type application.
  3. CoreData target of type framework.

When I link the static library to my MyApplication target with the following code:

dependencies:
      # Internal Dependencies
      - target: CoreDomain

It works fine and I see libCoreDomain.a in the Frameworks, Libraries and Embedded content section.

Problem

However, doing the same as above with CoreData framework, the libCoreDomain.a is not linked.

IMPORTANT

I can add the libCoreDomain.a manually to my framework, but not through xcodegen

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