• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Adding dependencies to projects in a workspace.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding dependencies to projects in a workspace.


  • Subject: Adding dependencies to projects in a workspace.
  • From: Alex Zavatone <email@hidden>
  • Date: Fri, 30 Dec 2016 09:00:23 -0600

Xcode 7.3.1.  iOS.

I've noticed that sometimes it's pretty hard to add dependencies to build phases within projects in a workspace, depending on what you're working with and am looking for a recommendations on an approach to solve this.

Here's my project structure

Workspace
Project A - all crappy non ARC code from 2011 in here and the Subprojects within A
Target iOS app A
Subproject 1
Target static lib 1
Subproject 2
Target static lib 2
Subproject 3
Target static lib 3
Subproject 4
Target static lib 4
Subproject 5
Target static lib 5

Project B
Target B Lovely Framework
Lots of Subprojects

Target iOS app A needs to have all the subprojects' static libs as build dependencies.  I have no problem adding these.
Both static lib of Subproject 2 and Project A need to have the Target B Lovely Framework as dependencies.  This is where I have difficulty adding the dependencies.

According to the lovely link here, http://netsplit.com/xcode-two-apps-with-a-shared-private-framework-in-a-workspace I can see that sometimes to add the dependency, I need to add it not to the Build Phases Dependency section of the target, but to the General settings Embedded Binaries section of the project for the static library.

The problem is that the projects for the static libraries don't have this section.  

What I have works, builds, is magic and sucks less than what I started with (death to Other Linker Flags and Legacy Build Paths), but this is not good enough.

Before I succeed on wasting yet more time, should I stop right here and convert the static libs to frameworks?  These static libs can't link to the new .tdb files anyway.

Looking for guidance on which path to modernize this is recommended.

TY.
Alex Zavatone





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: How to strip Cocoa Touch frameworks
  • Next by Date: Is there a way or a URL that links to a line of code in a class file that I can send to another team member?
  • Previous by thread: Re: Related to the "Not finding libraries" - But within a workspace with a static lib not finding project headers in a framework.
  • Next by thread: Is there a way or a URL that links to a line of code in a class file that I can send to another team member?
  • Index(es):
    • Date
    • Thread