title: CocoaPod - ERROR | [iOS] unknown: Encountered an unknown error
body: <p>I created a simple basic cocoaPod trying to get the hang of making one. </p>
  
  <p>I followed the tutorial on raywnderlich </p>
  
  <p>this is my pod spec file</p>
  
  <pre><code>    Pod::Spec.new do |s|
  
        s.platform     = :ios, "9.0"
        s.ios.deployment_target = "9.0"
        s.name         = "StringyImage"
        s.summary      = "This Lib create an Image out of text fitting the rectangle that is passed"
        s.requires_arc = false
  
        s.version      = "1.0.3"
  
        s.license      = { :type =&gt; "#########", :file =&gt; "LICENSE" }
  
        s.author       = { "#### ###" =&gt; "###@###.com" }
  
        s.homepage     = "http://myGitRepoAtHome/iOS/StringyImage"
  
        s.source       = { :git =&gt; "http://LOGIN_INFO@myGitRepoAtHome/iOS/StringyImage.git", :tag =&gt; "#{s.version}" }
  
        s.framework  = "Fondation"
  
        s.source_files  = "StringyImage", "StringyImage/**/*.{swift}"
  
      s.description  = &lt;&lt;-DESC
      This Lib create an Image out of text fitting the rectangle that is passed. This will use a font that is veter base so we can resize it at will and keep the image clean
                         DESC
  end
  </code></pre>
  
  <p>and when I run lint on it I get this error. </p>
  
  <pre><code>-&gt; StringyImage (1.0.3)
      - ERROR | [iOS] unknown: Encountered an unknown error (No such file or directory @ rb_file_s_rename - (/private/var/folders/bv/0pq17ll10bjff4kfp3p8p6000000gr/T/CocoaPods/Lint/Pods/Pods.xcodeproj/xcuserdata/pascale.xcuserdatad/xcschemes/StringyImage.xcscheme, /private/var/folders/bv/0pq17ll10bjff4kfp3p8p6000000gr/T/CocoaPods/Lint/Pods/Pods.xcodeproj/xcshareddata/xcschemes/StringyImage.xcscheme))
  </code></pre>
  
  <p>So I wonder what is wrong with my podSpec ??</p>
  
  <p>EDIT 1 : I was missing the "end" tag in the podspec here. but this was actually already in the actual podspec file.  </p>
  
  <p>Edit 2: </p>
  
  <pre><code>  StringyImage (1.0.3) - Analyzing on iOS 9.0 platform.
    Preparing
  
  Analyzing dependencies
  
  Inspecting targets to integrate
    Using `ARCHS` setting to build architectures of target `Pods-App`: (``)
  
  Fetching external sources
  -&gt; Fetching podspec for `StringyImage` from `/Users/###/Documents/Libraries/StringyImage/StringyImage.podspec`
  
  Resolving dependencies of 
  
  Comparing resolved specification to the sandbox manifest
    A StringyImage
  
  Downloading dependencies
  
  -&gt; Installing StringyImage (1.0.3)
   &gt; Git download
   &gt; Git download
       $ /usr/bin/git clone http://####@myGitRepoAtHome/iOS/StringyImage.git /var/folders/bv/0pq17ll10bjff4kfp3p8p6000000gr/T/d20170404-18617-l6esrk --template= --single-branch --depth 1 --branch
       1.0.3
       Cloning into '/var/folders/bv/0pq17ll10bjff4kfp3p8p6000000gr/T/d20170404-18617-l6esrk'...
       Note: checking out 'f75b7e574be6e39ce590b85b1c3181d82c7d1a48'.
  
       You are in 'detached HEAD' state. You can look around, make experimental
       changes and commit them, and you can discard any commits you make in this
       state without impacting any branches by performing another checkout.
  
       If you want to create a new branch to retain commits you create, you may
       do so (now or later) by using -b with the checkout command again. Example:
  
         git checkout -b &lt;new-branch-name&gt;
  
    &gt; Copying StringyImage from `/Users/###/Library/Caches/CocoaPods/Pods/External/StringyImage/32a989f5e9af15edc8e48b268e67bcf3-1053f` to
    `../../../../../private/var/folders/bv/0pq17ll10bjff4kfp3p8p6000000gr/T/CocoaPods/Lint/Pods/StringyImage`
    - Running pre install hooks
  
  Generating Pods project
    - Creating Pods project
    - Adding source files to Pods project
    - Adding frameworks to Pods project
    - Adding libraries to Pods project
    - Adding resources to Pods project
    - Linking headers
    - Installing targets
      - Installing target `Pods-App` iOS 9.0
        - Generating Info.plist file at `../../../../../private/var/folders/bv/0pq17ll10bjff4kfp3p8p6000000gr/T/CocoaPods/Lint/Pods/Target Support Files/Pods-App/Info.plist`
        - Generating module map file at `../../../../../private/var/folders/bv/0pq17ll10bjff4kfp3p8p6000000gr/T/CocoaPods/Lint/Pods/Target Support Files/Pods-App/Pods-App.modulemap`
        - Generating umbrella header at `../../../../../private/var/folders/bv/0pq17ll10bjff4kfp3p8p6000000gr/T/CocoaPods/Lint/Pods/Target Support Files/Pods-App/Pods-App-umbrella.h`
    - Running post install hooks
    - Writing Xcode project file to `../../../../../private/var/folders/bv/0pq17ll10bjff4kfp3p8p6000000gr/T/CocoaPods/Lint/Pods/Pods.xcodeproj`
    - Writing Lockfile in `../../../../../var/folders/bv/0pq17ll10bjff4kfp3p8p6000000gr/T/CocoaPods/Lint/Podfile.lock`
    - Writing Manifest in `../../../../../private/var/folders/bv/0pq17ll10bjff4kfp3p8p6000000gr/T/CocoaPods/Lint/Pods/Manifest.lock`
  
  Integrating client project
  
  [!] Please close any current Xcode sessions and use `App.xcworkspace` for this project from now on.
  
  Integrating target `Pods-App` (`../../../../../var/folders/bv/0pq17ll10bjff4kfp3p8p6000000gr/T/CocoaPods/Lint/App.xcodeproj` project)
    Adding Build Phase '[CP] Embed Pods Frameworks' to project.
    Adding Build Phase '[CP] Copy Pods Resources' to project.
    Adding Build Phase '[CP] Check Pods Manifest.lock' to project.
    - Running post install hooks
  
  -&gt; Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
   -&gt; StringyImage (1.0.3)
      - ERROR | [iOS] unknown: Encountered an unknown error (No such file or directory @ rb_file_s_rename - (/private/var/folders/bv/0pq17ll10bjff4kfp3p8p6000000gr/T/CocoaPods/Lint/Pods/Pods.xcodeproj/xcuserdata/pascale.xcuserdatad/xcschemes/StringyImage.xcscheme, /private/var/folders/bv/0pq17ll10bjff4kfp3p8p6000000gr/T/CocoaPods/Lint/Pods/Pods.xcodeproj/xcshareddata/xcschemes/StringyImage.xcscheme)
  /usr/local/Cellar/ruby/2.4.0/lib/ruby/2.4.0/fileutils.rb:462:in `rename'
  /usr/local/Cellar/ruby/2.4.0/lib/ruby/2.4.0/fileutils.rb:462:in `block in mv'
  /usr/local/Cellar/ruby/2.4.0/lib/ruby/2.4.0/fileutils.rb:1454:in `block in fu_each_src_dest'
  /usr/local/Cellar/ruby/2.4.0/lib/ruby/2.4.0/fileutils.rb:1470:in `fu_each_src_dest0'
  /usr/local/Cellar/ruby/2.4.0/lib/ruby/2.4.0/fileutils.rb:1452:in `fu_each_src_dest'
  /usr/local/Cellar/ruby/2.4.0/lib/ruby/2.4.0/fileutils.rb:451:in `mv'
  /usr/local/lib/ruby/gems/2.4.0/gems/xcodeproj-1.4.2/lib/xcodeproj/scheme.rb:244:in `share_scheme'
  /usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.2.1.beta.1/lib/cocoapods/validator.rb:431:in `add_app_project_import'
  /usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.2.1.beta.1/lib/cocoapods/validator.rb:307:in `block in perform_extensive_analysis'
  /usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.2.1.beta.1/lib/cocoapods/validator.rb:298:in `each'
  /usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.2.1.beta.1/lib/cocoapods/validator.rb:298:in `perform_extensive_analysis'
  /usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.2.1.beta.1/lib/cocoapods/validator.rb:79:in `validate'
  /usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.2.1.beta.1/lib/cocoapods/command/spec/lint.rb:67:in `block in run'
  /usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.2.1.beta.1/lib/cocoapods/command/spec/lint.rb:55:in `each'
  /usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.2.1.beta.1/lib/cocoapods/command/spec/lint.rb:55:in `run'
  /usr/local/lib/ruby/gems/2.4.0/gems/claide-1.0.1/lib/claide/command.rb:334:in `run'
  /usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.2.1.beta.1/lib/cocoapods/command.rb:52:in `run'
  /usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.2.1.beta.1/bin/pod:55:in `&lt;top (required)&gt;'
  /usr/local/bin/pod:22:in `load'
  /usr/local/bin/pod:22:in `&lt;main&gt;'
  ) during validation.
  
  Analyzed 1 podspec.
  
  [!] The spec did not pass validation, due to 1 error.
  
  /usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.2.1.beta.1/lib/cocoapods/command/spec/lint.rb:84:in `run'
  /usr/local/lib/ruby/gems/2.4.0/gems/claide-1.0.1/lib/claide/command.rb:334:in `run'
  /usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.2.1.beta.1/lib/cocoapods/command.rb:52:in `run'
  /usr/local/lib/ruby/gems/2.4.0/gems/cocoapods-1.2.1.beta.1/bin/pod:55:in `&lt;top (required)&gt;'
  /usr/local/bin/pod:22:in `load'
  /usr/local/bin/pod:22:in `&lt;main&gt;'
  </code></pre>
  
  <p>There is that part talking about detached head.. But I did check my git repo and it good. it has its head on strait ;) </p>