title: Cocoapods .podspec cannot find include headers
body: <p>I have a Objective-C iOS library that uses and ships a third party static C lib. One of my Objective-C source file imports that library using</p>
  <pre><code>#import &lt;teamspeak/public_errors.h&gt;
  </code></pre>
  <p>but the generated xcode target by Cocoapods cannot find that header.</p>
  <p>This is the simplified structure of my folders</p>
  <p><a href="https://i.stack.imgur.com/r6Fyi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r6Fyi.png" alt="enter image description here" /></a></p>
  <p>and this is my <code>.podspec</code> file</p>
  <pre><code>Pod::Spec.new do |spec|
    spec.name             = 'TSKit'
    spec.version          = '0.1.0'
    spec.summary          = 'An iOS TeamSpeak client'
  
    spec.description      = &lt;&lt;-DESC
    TSKit is a Objective-C wrapper around the C TeamSpeak client library.
                         DESC
  
    spec.homepage         = 'https://github.com/JanC/TSKit'
    spec.license          = { :type =&gt; 'MIT', :file =&gt; 'LICENSE' }
    spec.author           = { 'Jan Chaloupecky' =&gt; 'jan.chaloupecky@gmail.com' }
    spec.source           = { :git =&gt; 'https://github.com/JanC/TSKit.git', :tag =&gt; spec.version.to_s }
    
    spec.ios.deployment_target = '8.0'
  
    spec.frameworks = 'AVFoundation', 'AudioToolbox'
  
    spec.source_files = 'TSKit/Classes/**/*'
    
    spec.ios.vendored_library = 'TSKit/lib/libts3client.a'
    spec.libraries            = &quot;ts3client&quot;, 'c++'
  
    spec.preserve_paths = 'TSKit/include/**' 
    
    # spec.header_dir          = &quot;TSKit/include&quot;
    # spec.header_mappings_dir = 'TSKit/include'
  
    spec.pod_target_xcconfig  =  {&quot;HEADER_SEARCH_PATHS&quot; =&gt; &quot;$(PODS_ROOT)/#{spec.name}/include/**&quot;}
  
  end
  </code></pre>
  <p>As you can see, I tried using both <code>spec.header_dir </code> and <code>spec.header_mappings_dir</code> without any luck.</p>
  <p><code>pod lib lint</code> fails:</p>
  <pre><code> -&gt; TSKit (0.1.0)
      - ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
      - NOTE  | xcodebuild:  note: Using new build system
      - NOTE  | [iOS] xcodebuild:  note: Planning build
      - NOTE  | [iOS] xcodebuild:  note: Constructing build description
      - NOTE  | [iOS] xcodebuild:  warning: Skipping code signing because the target does not have an Info.plist file. (in target 'App')
      - NOTE  | [iOS] xcodebuild:  10:9: fatal error: 'teamspeak/public_errors.h' file not found
  </code></pre>
  <p>You can find a sample project here(be sure to checkoung the <code>so-question</code> branch)</p>
  <p><a href="https://github.com/JanC/TSKit/tree/so-question" rel="nofollow noreferrer">https://github.com/JanC/TSKit/tree/so-question</a></p>