• 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
Re: Workspace and adding a dependency to a target. HOW THE HELL DO YOU DO THIS?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Workspace and adding a dependency to a target. HOW THE HELL DO YOU DO THIS?


  • Subject: Re: Workspace and adding a dependency to a target. HOW THE HELL DO YOU DO THIS?
  • From: Alex Zavatone <email@hidden>
  • Date: Thu, 05 Jan 2017 15:12:47 -0600

Tried that. Same thing.

When I said I "dragged" something. I dragged the output product built framework from the left hand pane.

Why doesn't the FW show up as an option when I try to add it to the Build Phases???

Sent from my iPhone

On Jan 5, 2017, at 2:24 PM, Quincey Morris <email@hidden> wrote:

On Jan 5, 2017, at 12:05 , Alex Zavatone <email@hidden> wrote:

Dragging the framework from the projects output into the Dependencies section will not work.  Xcode refuses to accept the framework as a dependency, no matter what I do.

You should be able to go to the app project target’s Info pane (select the project entry in the navigator list, choose the leftmost tab) and down the bottom there’s a list of frameworks to link against (and to embed, if that’s what you want to do). Click the “+” button and it should show the framework project target as one of your choices.

Regarding the procedure for doing this “manually”, it’s not clear what you tried to drag. Dragging the actual framework from the Finder won’t work. I believe you need to expand the Products group at the bottom of the navigator, and drag the framework product into the app list. But I’m not exactly sure any more, because the above technique is easier.

It’s also possible that you may be mis-expecting what a dependency does. Xcode has dependencies that tell it to create one target before another, though it’s usually capable of deciding how to do this without being told. But with a framework, you want to *link* one target against another, and that’s a different thing. I’m guessing you were trying to link against your framework, but trying to use the dependency mechanism to do that, which it won’t.

 _______________________________________________
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

References: 
 >Workspace and adding a dependency to a target. HOW THE HELL DO YOU DO THIS? (From: Alex Zavatone <email@hidden>)
 >Re: Workspace and adding a dependency to a target. HOW THE HELL DO YOU DO THIS? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Workspace and adding a dependency to a target. HOW THE HELL DO YOU DO THIS?
  • Next by Date: Re: Workspace and adding a dependency to a target. HOW THE HELL DO YOU DO THIS?
  • Previous by thread: Re: Workspace and adding a dependency to a target. HOW THE HELL DO YOU DO THIS?
  • Next by thread: Re: Workspace and adding a dependency to a target. HOW THE HELL DO YOU DO THIS?
  • Index(es):
    • Date
    • Thread