title: Cocoapods importing a framework to source code
body: <p>In my cocoapod for iOS, I have a essentially items:</p>
  
  <ol>
  <li>Open-source classes (.m &amp; .h files)</li>
  <li>MyFramework.framework (.framework directory, header files, and .bundle for resources)</li>
  </ol>
  
  <p>One of the open-source classes calls <code>import &lt;MyFramework.MyFramework.h&gt;</code> so it can use the components of MyFramework in its implementation. But because of this, I'm having trouble getting the podspec to pass the spec lint test (<code>pod spec lint MyCocoapod.podspec</code>). When I run the spec lint validation, it says:</p>
  
  <p><code>
  ERROR | [iOS] [xcodebuild]  .../MyFile.h:54:9: fatal error: 'MyFramework/MyFramework.h' file not found
  </code></p>
  
  <p>While investigating, I noticed that the podspec does pass the spec lint validation if I remove that open-source class in the podspec's source_files section, <code>s.source_files = 'MyFiles.{h,m}'</code>. Any idea why my class can't import my custom framework during the spec lint validation?</p>
  
  <p>The relevant code in the podspec looks like this:</p>
  
  <pre><code>s.preserve_paths      = 'myframework/MyFramework.framework'
  s.frameworks          = 'Foundation', 'MyFramework'
  s.xcconfig            = { 'FRAMEWORK_SEARCH_PATHS' =&gt; '$(SRCROOT)/myframework/' }
  s.public_header_files = 'MyFramework.framework/Headers/*.h', 'SourceCode/*.h'
  s.source_files        = 'SourceCode/*.{h,m}'  # Crashes here - Source_file imports MyFramework.h. If I take this out, it passes spec lint validation
  </code></pre>