Xcode 4: How to Add Static Library Target Dependency to Project
I know, this has been asked a few times, but mostly for Xcode 3.x. For the iPad, I have two projects both living in a common workspace
- Foo, a view-based application and
- Foolib, a static Cocoa-Touch library
the former depending on the latter. I seem unable to work out how to add that dependency. It's not well explained in the documentation, so I tried the following:
- Click on the Foo project in the Navigation Area on the left,
- Select Build Phases up the top and expand the Target Dependencies section
- Click the plus button, but the resulting list is empty.
I have also tried to drag/drop the .a file into that section, with little success. Also, the documentation states
If the build product of one project in a workspace is dependent on the build product of another project in the workspace (for example, if one project builds a library used by the other project), Xcode discovers such implicit dependencies and builds in the correct sequence.
I wonder how Xcode discovers those dependencies. Is Apple saying I don't have to add this target dependency at all? But then how would Xcode discover that one is using the other?
Last but not least, I will need to get the .h files from Foolib across to Foo somehow. What is the recommended way of doing that? Obviously, I don't want to just copy them. With frameworks the header files come included, but what do people generally do when working with static libraries that they themselves develop in parallel.
A nudge in the right direction would be much appreciated. Thank you.
I want to add Oomph's MacMapKit as a framework to my Xcode (v4.3.2) project. I've already added a couple of standard Apple frameworks to my project (which was a breeze) but this is new to me and offer
Is there any way to convert a xcode project to static library and use it in other project ? I have a project which reads QRcode it have its own static libraries i want to make the whole project as a s
I have a simple Eclipse C project. Is there a way to add a make install target to the generated makefile? I can't seem to find the right search keywords to find any useful information in the doc or
It appears that we can - theoretically - build a single static library that includes both simulator and iPhone and iPad. However, Apple has no documentation on this that I can find, and Xcode's defaul
I am using xcode to create a static library with C, I seem to get an error Undefined symbols for architecture i386. The static library project, include three files: fun.c, testFun.cpp, testFun.h Here
I created a static library and a project that uses it following the instructions found at http://www.sodeso.nl/?p=822. So far it works fine, with a “minor” exception: the code completion ignores all c
I have an Xcode 4 project which has just one target: a framework. How can I add a framework (in particular, OSAKit) to this project? I know how to add frameworks to apps, but I can't do the same with
Excuse my ignorance, but what is the difference in XCode 4 between the Deployment Target field under Targets and the deployment target under Project? What happens if my project deployment target i
I am developing an IPhone application using XCode4 editor. I have to rename my project.I cant create a new project with new name because i have proceeded too far with my coding and there are too many
If I have project in xcode4 for the iphone, How can I use it as framework for other project ? thanks.
In xcode3 this was easily accomplished by creating a new target and then setting compiler flags to #ifdef LITE_VERSION. But how do you do this in XCode 4? The compiler flags have moved to the project
I have had a generated Gradle project existing of the root project Racer and a few others (Racer-desktop, Racer-core...) Now I wanted to add one, namely Racer-server. This project should, just like th
I am too much of this Static Libary thing in Xcode 4.X Following are the steps that I usually do.. 1)For making a static libary , I open Xcode , new , static libary , and then by adding some classes i
For a plain Java application project, how can I add a dependency or library from Maven? If I right click on Libraries in the projects pane, it only allows me to add local libraries. But if my proj
How do I make a compass show up in my app? There is no compass in the object library that I can just add to my view. So I figured that a compass must be added via code. I have been looking at multiple
I have a project which contains a sub-project to build a 3rd party static library the app depends on. In Xcode 5, when I come to export an .ipa file after doing an Archive build and clicking the Distr
I want to duplicate target of Xcode project with command line, I have searched a lot but not found any solution. I don't have any idea how to write script to duplicate target. Can anyone help me? Than
The Git integration in XCode 4 is very welcome however it seems to be a bit flaky when it comes to dealing with remote repositories. For clarity I'm using OS X version 10.6.7 and XCode 4.0.2 (4A2002a)
1.I have successfully run the ScanTest example project in my xcode4.2.1 2.And then I try to include the ZXingWidget to my project with the ZXing README. I found that the ZXingWidget can not expand. se
I'm trying to create a simple static library and add it into another project. I found several tutorials explaining how to do this, and it seems like each one is a little different. The most recent one
Argggh, I have built a couple Apps in Xcode 4 but I cannot remember/find how to add my live device to my schemes drop down. I have the simulator options, but in the newest project I created I do not h
Say I have 2 projects in an Xcode 4 workspace. Project A is the final product which requires the utility app built from project B. The goal is to have the build process of A automatically build projec
I've renamed a project in xCode 4 by slowly double clicking the project name and then following the directions. I then Build and Run with no errors, but when I select a popover in the app simulator ge
I am fighting with Xcode 4 workspaces. Currently Xcode 4 wins. Thus, my situation: I have the workspace with the iOS app project. There is also static library project iOS app depends on in the this wo
I have a project that I started in xcode 3.x It is using 3 frameworks. Now I need to add an additional framework. The way I found is to go to the Build Phases of the target and add the framework.
I'd like to exclude libThree20UINavigator.a from my build, I did it in Xcode 3 by uncheck it from Target build Do you know how to do it in Xcode 4? There must be something like this but I couldn't
I want to include a local jar resides outside my gradle project, how can I do it? Is it possible to use absolute path of the jar file?
There is a question mark next to a .bundle file in a Xcode 4.3 project: When I try to right-click and select Source Control, the Add menuitem is disabled/dimmed: How can I add the .bundle to source
The Play Managing library dependencies docs explain how to configure SBT to use the Play library. But, how can I add this library to a Maven project? I'm trying to create a Java toJson method. I'd lik
I have two separate projects and one project is used for building Boost library and the other one makes calls from the built boost library. Boost project compiles fine and produces libboost.a file. Wh
I have created a new android project. I want to have a action bar at the top so I downloaded the Action Bar for Android Library because I want to support devices from android 2.1. The description says
I have a library project that depends on a framework. With application target, it's easy: just add it to Linked Frameworks and Libraries in Summary tab. There is no such tab for libraries. I do ha
I can't believe I'm having such a hard time figuring out how to do something so simple. I have an external library (including a .lib and .h file) that I want to add to my project. From what I've read
I am getting confused in adding core plot static library in xcode 4.5. it is different from xcode 3.x versions. I tried many things, it gave header file not found and linker errors. I have followed th
I have a Play project that is intended to be a library that I would like to publish locally during development phase. I can achieve this by running publish-local My question is how to add dependency i
I want to create a Resource Bundle from resource files of my static library via a xcode target. I saw Three20 having a .bundle file one need to import. How can I do that?
I am really new to c++ and am using Netbeans for now. I managed to create a Sign.h and Sign.cpp containing a working class Sign. I added these to a Console Project and it works great: #include <io
I have a project where Xcode 4 stopped indexing. As a consequence neither the complete class browser (symbol navigator) nor code sense work. 0 Classes and Protocols etc. are shown. I restarted indexin
guys, I was using xcode to start a project which links to a static lib project.(I add the project as the child of the target project and add .a to the target) Every time, I run the target, it has to r
I don't have much to go on... XCode 4 is hanging at startup with Loading Project. My build fails but I can't access the errors. This is happening with a project that worked in a previous version of
I have an iOS app that has a static library as a dependency. The static library is setup per Apple's recommendations https://developer.apple.com/library/ios/technotes/iOSStaticLibraries/iOSStaticLibra
I have some externally pre-compiled libraries for iOS some for debug and some for release I can just add new files to the project with the .a files but this is for all configurations. I want some wh
I am trying to add GLM to a project in Xcode 4, but I cannot get it to compile. I have added the glm files to my project through the add files dialog. I get a lexical/preprocessor issue and Xcode cann
I have a project which I need to import into other project as a framework just like how we import Coredata framework, Quartzcore etc..How to achieve that ? How to compile my project into a library or
I'm working in a project that need to have same parts native (cocoa touch) and some parts in cocos2d. I have made the all the native and now I need to integrate cocos2d in the project. My problem is t
I'm trying to condtionally link in. .a static libraries by defines. Is this possible in xcode? Basically trying to wrap library specific code in ifdefs so it can be excluded at compile time by setting
I created a library project in Android Studio (currently 0.5.2) by choosing File > New Project... > Mark this project as a library. I have two other non-library projects that I would like to
I am trying to build a .a static library for my iPhone project. So, I have created a new project, and I used the template Cocoa Touch Static Library. Then, in XCode 4.0, I add my .m and .h files. i ha
(My question has been asked here before but with no working answers that I can see. E.g. Xcode4 Workspace with Static library project & application project) I'm trying to use a library provided by