Hello,
I've been struggling with a problem now for quite a while and was hoping for some advice.
I have an Xcode workspace. There are three projects in it: A, B, and C.
A is a Swift project that produces a framework. B relies on A (as well as a system framework, libedit), and produces a framework as well. C is a very simple Objective-C application that depends on the frameworks A and B. (The idea is that A is the primary 'product'; a user could stick the framework in their own app; B and C are for a demo app that shows off A.)
Now, the way I'm setting up these dependencies is that for projects B and C, I go to the project settings --> General tab --> "Linked Frameworks and Libraries" section, and then add my dependencies (frameworks and/or system libraries). This works great as long as I'm at my own computer.
The problem is this: my workspace and projects live in a Git repository. When I check out the repository on a different computer and open the workspace and projects in Xcode, the framework 'links' are broken. If I try building my project, B and C can't find the frameworks they depend upon, even when A builds successfully. I have to go to the project settings, remove them from "Linked Frameworks and Libraries", and re-add them before things will start building again.
This is pretty frustrating for me, since the project is publicly available and I'd like interested people to be able to clone it, open the workspace in Xcode, and just press the Build button and have things work. Am I configuring my projects incorrectly? Is there best practice for how I should be doing this? Any help or tips would be greatly appreciated.
I'm currently using Xcode 8 beta, but this has been a problem with every version of Xcode 7 as well.
Thanks in advance,
Austin