How to use #import <> on a git submodule

I am including two libraries in my project. Since my project is a static library I decided to include the libs via git submodules rather than cocoa pods.

LibraryA has a dependency on LibraryB and imports it via #import <>, which gives me a file not found error.

I added /path/to/folder/with/my/submodules in both the framework and header search paths of my target, but the only way I’ve been able to resolve the error is by changing LibraryA to use #import "".

Is there a proper way to fix this that does not involve forking LibraryA and changing the import statement myself?

  • How to checkin the .framework deletion in SVN
  • iOS + Jenkins + git + Archive
  • Newly created branch on github not showing in Xcode “switch to branch” option
  • How do you prevent Xcode from auto selecting the Team Profile?
  • Cannot change/delete/commit/discard current branch
  • How to use GPG signatures with Xcode source control?
  • How to change code of static library .a file Xcode Project for another Xcode project?
  • Bitbucket + XCode 4.2 + Git
  • One Solution collect form web for “How to use #import <> on a git submodule”

    If your app name is MyApp and your submodule is MySubmodule then go in the build settings for the app target and put this for the “Header Search Paths”:


    Hopefully inside your submodule you have another dir that matches the MySubmodule name but here I’ll just say it is SDKName:

    #include <SDKName/UmbrellaHeader.h>

    What happens is it now searches the root of the MySubmodule path and since the SDKName is a subfolder now you can use the <> syntax.

    Git Baby is a git and github fan, let's start git clone.