title: Cocoapod: Why Xcode build process try to find the library which has been already removed from my project
body: <p>Thank you always for all of your knowledge. </p>
  
  <p>I have checked my issue in StackOverflow and found similar issues but could not find my case specifically. Greatly appreciated If some of you could advise my situation.</p>
  
  <p><strong>My environment;</strong></p>
  
  <p>xcode: Version 6.0.1, 
  ios target: IOS 8, 
  code: OBjective-C</p>
  
  <p>I opened my project by Myproject.xcworkspace.</p>
  
  <p><strong>Issue;</strong></p>
  
  <p>I used Cocoapod to install some libraries. Here was the code in podfile.</p>
  
  <pre><code>source 'https://github.com/CocoaPods/Specs.git'
  platform :ios, '6.0'
  pod 'SDWebImage', '~&gt; 3.6'
  pod 'AFNetworking', "~&gt; 2.0"
  pod 'KissXML'
  </code></pre>
  
  <p>Then in terminal.</p>
  
  <pre><code>pod install
  </code></pre>
  
  <p>After all I knew I did not need some of these libraries, then modify podfile like below.</p>
  
  <pre><code>source 'https://github.com/CocoaPods/Specs.git'
  platform :ios, '6.0'
  pod 'SDWebImage', '~&gt; 3.6'
  </code></pre>
  
  <p>Then in terminal.</p>
  
  <pre><code>pod update
  </code></pre>
  
  <p>I found AFNetworking and KissXML are removed from my project.</p>
  
  <p>However when I did Product->Archive in Xcode, the following error occurred.</p>
  
  <p><strong>ld: library not found for -lPods-AFNetworking
  clang: error: linker command failed with exit code 1 (use -v to see invocation)</strong></p>
  
  <p>and</p>
  
  <p><strong>ld: library not found for -lPods-KissXML
  clang: error: linker command failed with exit code 1 (use -v to see invocation)</strong></p>
  
  <p>Just Run went succeeded but Archive came up with those error.</p>
  
  <p>Why build process still try to find libraries which has been already removed? </p>
  
  <p>Thank you always.</p>