Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Setup change: Making headers public on static lib target #56

@drekka

Description

@drekka

Hi, I have not submitted a pull on this because it's a change to the project file and will trigger a merge conflict.

I'm using both CouchCocoa and TouchDB. The technique I'm using is to include them as XCode sub projects of my main project and do workspace builds. This helps with debugging and makes combined builds easier. However my project would not build because it could not find the CouchCocoa and TouchDB headers.

To fix this I did these changes:

  1. Set the Public Headers Folder Path build setting to be include/$PROJECT_NAME in both projects. Doing this in a workspace build means that the headers from the sub project are visible to other projects via the framework style #import <project/header.h> statement. ie. #import <CouchCocoa/CouchCocoa.h>.
  2. I then selected all header files and added them to the Copy Headers build phases of the iOS LIbrary targets.

The result is that the headers are now accessible to the main project.

I think doing this in both projects doesn't effect your normal builds or targets, but makes it really easy to use them as sub projects and therefore have them built as part of the normal build. This saves me having to go through a manual process of building the frameworks and also helps when debugging.

Could this change be make on both CouchCocoa and TouchDB please?

ciao
Derek

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions