Any way to make bundle xcode project to include a static library xcode project?


I have a static library xcode project (.a) and a bundle xcode project (.bundle) I added the (.a) as a sub project of (.bundle) and added to [Target Dependencies] and [Link Binary With Libraries].

After run the bulid the (.bundle) still not contain any binary file inside (.bundle).

It's work if I add the .c and .h files to under (.bundle) directly, but that make me need to handle two project files. Any way can make (.bundle) just build with the (.a) ?

<a href="https://stackoverflow.com/questions/9885569/how-to-organize-c-source-file-previously-compiled-by-gcc-make-and-build-them-int/9902919#9902919" rel="nofollow">This question</a> same as what I asked, I tried to follow his 11 steps without the step 10 because he said lastly no need that step. But the generated (.bundle) still without contain any binary


Finally, I make it work.

The step 10 still important and below is corrected step 10.

<ul><li>create a dummy.c under (.bundle) project and the dummy.c can just totally empty. remove the setting for the library you want to link inside Link Binary With Libraries instead use -Wl,-force_load,$(CONFIGURATION_BUILD_DIR)/libYourLib.a or -all_load to Other Linker Flags</li> </ul>

PS: And also can use sub-project instead of workspace. and use Target Dependencies instead of Edit Scheme to achieve the same effect.

<a href="https://drive.google.com/file/d/0B35_CT-6Bau1bzRILUVPUExhRjg/edit?usp=sharing" rel="nofollow">The testing project</a>


  • Backward compatibility of Python 3.5 for external modules
  • How do I import an existing Grails 3 (3.0.12) project in IntelliJ 15
  • C++ Single function pointer for all template instances
  • Can I have a variable number of URI parameters or key-value pairs in Laravel 4?
  • Hibernate to update table schema
  • Debugging VB6 Code From Visual Studio 2010
  • Sequential (transactional) API calls in angular 4 with state management
  • Diff between two dataframes in pandas
  • Access Android Market through SSH tunnel
  • Abort upload large uploads after reading headers
  • Make VS2015 use angular-cli ng at build time in a .NET project
  • Test if a set exists before trying to drop it
  • MailKit: The IMAP server replied to the 'EXAMINE' command with a 'BAD' response
  • Django rest serializer Breaks when data exists
  • Django: Count of Group Elements
  • How to rebase a series of branches?
  • Installing Hadoop, Java Exception about illegal characters at index 7?
  • Azure Cloud Service Web Role web pages do not load
  • How to add a column to a Pandas dataframe made of arrays of the n-preceding values of another column
  • Convert array of 8 bytes to signed long in C++
  • what is the difference between the asp.net mvc application and asp.net web application
  • How do you troubleshoot character encoding problems?
  • Do create extension work in single-user mode in postgres?
  • R: gsub and capture
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • How do I rollback to a specific git commit
  • Is there a mandatory requirement to switch app.yaml?
  • Comma separated Values
  • Load html files in TinyMce
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • Angular 2 constructor injection vs direct access
  • -fvisibility=hidden not passed by compiler for Debug builds
  • coudnt use logback because of log4j
  • Java static initializers and reflection
  • Android Google Maps API OnLocationChanged only called once
  • Busy indicator not showing up in wpf window [duplicate]
  • UserPrincipal.Current returns apppool on IIS
  • Net Present Value in Excel for Grouped Recurring CF
  • How to load view controller without button in storyboard?