I need to add an external project to my Xcode project, the reason for this is I need to add a Target Dependency on that external projects static library.
I can't seem to add it in the way I need, I would like it like this:
However, when I add another project to my actual Xcode project I get the following which doesn't let me explore that project from my one and so I can't add the dependency I need.
Note that these screenshots are from two different projects, and in the one which is showing me what I want to reproduce in my own project, dragging in multiple projects works as expected.
Maybe I have some settings set up wrong in my project ? All I've done is take a template detail-master application from Xcode.
You did it right. The problem is that Xcode cannot have the same project opened twice.
Close Serenity.xcodeproj before reopening your parent project.
Yes, this is possible, it's called a workspace.
In your example:
Open both of your projects
Drag the Serenity project into the Dependant project
I think what you are doing wrong is dragging the Xcodeproj, try opening that project and dragging the project block instead (see pic)
Related
Some files on my Swift project, like circle.yml and .gitignore, aren't shown in the Xcode 9 Navigator. How do I get them so show up?
The Xcode project navigator is not a file browser. Just because something is in your project folder, doesn't mean the project is aware of it. The project isn't magically watching the project folder to see what's put in there. It knows about the stuff that it put in there, of course.
But you want something to be seen by the project, and you yourself put it into the project folder without telling the project that you did so, then just drag it into the project navigator to bring it to Xcode's attention. Note that you should decline Xcode's offer to make this part of the target. You don't want a .gitignore file to be built into your app; you just want the convenience of accessing it thru Xcode and the project window.
The Situation:
Suddednly, one of projects I work with, is seen in a very shorten way in the Project tool window :
.hgignore
.hgtags
External libraries
Those are all visible things in the Project tool window. On the main frame the file I worked with is shown. And all its path is seen in the navigation bar. From the navigation bar I can reach to all folders of the project. (It is a VERY large utility project, containing all static pages, images and things for many usual projects). Naturally, I would like to work normally, using Projects tool window. But there, as you can see, all folders are invisible.
Opening/closing of project tool window, IntelliJ restart or cach invalidate and restart won't help - the picture remains the same.
If I am adding a module to the project, it IS seen. If I am adding a folder to the project, it is NOT seen. All existing inner structure in the project is in folders, not modules.
The Possible Reasons of the broke:
All changes that I had made to the project by hand, is adding an image file. But from TortoiseHg I had made some updates. For other projects. That very project is not even in the Tortoise list of repositories. But as I had loaded the project from repository sometimes, it is known by hg. All other team members see the project normally.
Target:
I would like to see the project back in all its beauty.
I'm getting started with Xcode and a i'm studying the way to play sound. I have implemented a small project that play a sound using AudioToolbox framework. Everything was fine: i could Build and run normally, the application also functioned normal but today when i reopen the project i have this bug " file not found". It's strange, i didn't modify anything in my project, the framework was linked in my project too. Anyone has the same problem like me?
First try to clean your project by going to the menu bar (the very top) under "Product" and click "Clean". If it still doesn't work: go into the Build Phases, delete the frameworks, then re-add them.
If this happens when you take an old project and try to build with a new Xcode version, it could bet due to saving ".framework" files locally within your project. Do check the project folder for such files and remove them, and then use the "Build Phases" tab to link the new frameworks.
I needed to make a project bundle with which has several small projects. When I try to add them into resources I get several errors. dont know where I am going wrong
The feature is called workspaces. You have to create an Xcode workspace (there’s a special command in the File menu for it) and then you can drag other projects into the left project sidebar. I suggest that you google for some Xcode workspace tutorial to walk you through.
I have a couple of projects that I had started under Xcode 3.2.x some time ago. I switched to Xcode 4 a few days ago and want to make use of the Workspace feature as both projects. Basically, my plan is to extract some common features out of the two projects and make them a common library that both projects depend on. However, before I even get to the tricky bit of dependencies I get stuck just adding my two projects to the workspace.
I tried creating a new workspace and selecting "Adding files to " from the context menu; I then select the .xcodeproj file from my first project and it appears in the left-hand side tree browser in my workspace. However, it's just the file, not the project that I get. That is, rather than getting a two-line entry in the tree browser where the first line states the project name and the second line says something like "1 target, iOS SDK 4.3" like in the Apple documentation, I get a single line simply stating the name of the .xcodeproj file including the extension. There is also no triangle on the left to expand the node. It's like I just dragged some file in the workspace, not a project. The same goes for the second project.
I have also created a new Project "Foo" from scratch in Xcode 4 and added it to my workspace, with the same result. I looked at Apple documentation and watched the 16 second video about a dozen times now, but cannot work out what I am doing wrong (if the problem is indeed in the chair and not in the computer).
I had this exact same problem. I think it stems from having another workspace already open referencing the project you want to add. I got it working by:
shutdown xcode completely
double-click the workspace to launch Xcode and open just that workspace
drag and drop the project file from the Finder
Worked fine. I have many workspaces all referencing an openssl project, and it seems to work OK when you only have one workspace open at a time in Xcode.
Actually, I made it work without exiting Xcode.
All you have to do is make sure the projects you want to add are closed, since Xcode is having trouble adding open projects to a workspace.
So:
Close the projects you want to add
In the Workspace window, choose "Add Files to MyWorkspace"
Add the .xcodeproj file of the project you want to add
I had the same problem. SO I just exit xcode, restart it. Then I can see the files under the project.
Exiting Xcode completely and then double-clicking the .xcodeproj file to open the project.
It works but when you add an activity to the project than r.java file is automatically removed and errors are coming.