title: How to publish new official pod version?
body: <h1>Updating pod version fails</h1>
  
  <p><strong>I am using Xcode 8.2.1 and CocoaPods v1.1.1 and my code is Swift 3</strong></p>
  
  <p>My issue is with publishing new version of my pod or updating existing version, which fails on pod spec lint. </p>
  
  <p>I've created a <a href="https://github.com/LudaFuxPlaybuzz/playbuzz-ios-sdk" rel="noreferrer">PlaybuzzSDK pod</a> and I would like to update it's code. 
  I commit and push the new code through GitHub client, but the changes are not reflected on the pod class, only on the Example project.</p>
  
  <h2>What did I do?</h2>
  
  <p>I've created new tag and tried to push it, but didn't pass validation: </p>
  
  <pre><code>git tag 0.1.1 (successful)
  git push origin 0.1.1 (successful)
  pod spec lint PlaybuzzSDK.podspec (unsuccessful with error below)
  pod trunk push PlaybuzzSDK.podspec  (unsuccessful with error below) 
  </code></pre>
  
  <blockquote>
    <p>-> PlaybuzzSDK (0.1.1) - ERROR | [iOS] unknown: Encountered an unknown error ([!] /usr/bin/git clone <a href="https://github.com/LudaFuxPlaybuzz/playbuzz-ios-sdk.git" rel="noreferrer">https://github.com/LudaFuxPlaybuzz/playbuzz-ios-sdk.git</a> /var/folders/h0/knhpn8z16n3cz6tkny5rmtn00000gn/T/d20161228-47834-nli8c4 --template= --single-branch --depth 1 --branch v0.1.1</p>
    
    <p>Cloning into '/var/folders/h0/knhpn8z16n3cz6tkny5rmtn00000gn/T/d20161228-47834-nli8c4'... warning: Could not find remote branch v0.1.0 to clone. fatal: Remote branch v0.1.0 not found in upstream origin ) during validation.</p>
    
    <p>[!] The spec did not pass validation, due to 1 error. [!] The validator for Swift projects uses Swift 3.0 by default, if you are using a different version of swift you can use a .swift-version file to set the version for your Pod. For example to use Swift 2.3, run:  echo "2.3" > .swift-version.</p>
  </blockquote>
  
  <p>Additional things I've tried:</p>
  
  <ul>
  <li>I removed the project from my comp and cloned it again</li>
  <li>I've cleaned cache of CocoaPods 
  <code>
  rm -rf ~/Library/Caches/Cocoapods
  rm -rf ~/.cocoapods/repos
  </code></li>
  <li>I've tried to create a new branch and tried to pod lint the branch.</li>
  </ul>
  
  <p>But I get this error every time. </p>
  
  <h2>What did I expect to happen</h2>
  
  <p>I expected that from now on, if somebody adds </p>
  
  <pre><code>pod 'PlaybuzzSDK' 
  </code></pre>
  
  <p>and will update their pods, they'll get the new version </p>
  
  <p>New version means that reloadItem will have the following signature: </p>
  
  <pre><code>public func reloadItem(_ itemAlias:String,
                           companyDomain: String,
                           showItemInfo:Bool)
  </code></pre>
  
  <h2>What happened instead</h2>
  
  <p>I can't get through the pod lint. 
  And when I update pod from example project, the function reloadItem gets back to </p>
  
  <pre><code>public func reloadItem(_ userID: String,
                      itemAlias:String,
                      showRecommendations: Bool,
                      showShareButton: Bool,
                      showFacebookComments: Bool,
                      showItemInfo: Bool,
                      companyDomain: String)
  </code></pre>
  
  <h2>Project that demonstrates the issue</h2>
  
  <p><a href="https://github.com/LudaFuxPlaybuzz/playbuzz-ios-sdk" rel="noreferrer">https://github.com/LudaFuxPlaybuzz/playbuzz-ios-sdk</a></p>