title: AFNetworking with cocoapods link error when using Xcode 6
body: <p>I got an error when migrating my project from Xcode 5 to 6.</p>
  
  <pre><code>Undefined symbols for architecture i386:
    "_OBJC_CLASS_$_AFHTTPRequestOperationManager", referenced from:
        objc-class-ref in QCRoomListControllerViewController.o
        objc-class-ref in libQCBase.a(QCHttpRequestAdapter.o)
        objc-class-ref in libQCBase.a(QCHttpApi.o)
    "_OBJC_CLASS_$_AFHTTPResponseSerializer", referenced from:
        objc-class-ref in QCRoomListControllerViewController.o
    "_OBJC_CLASS_$_AFJSONResponseSerializer", referenced from:
        objc-class-ref in libQCBase.a(QCHttpApi.o)
  ld: symbol(s) not found for architecture i386
  </code></pre>
  
  <p>I choose cocoapods as package manager, and the project structure is like below:
  <img src="https://i.stack.imgur.com/bAEph.png" alt="enter image description here"></p>
  
  <p>both major project and BaseLib are using some pods, at the same time project is using BaseLib.a.</p>
  
  <p>I've try combinations like Xcode 5 with iOS 7.1 SDK(which is the only working one), Xcode 6 with iOS 7.1 SDK and Xcode 6 with iOS 8.0 SDK.
  My current conclusion is whenever Xcode 6 is involved, links will fail, no matter which version of iOS SDK I choosed.</p>
  
  <p>Relevant settings are described below.</p>
  
  <p>The xcconfig file are correctly set on both project and BaseLib:
  <img src="https://i.stack.imgur.com/1rxH5.png" alt="enter image description here"></p>
  
  <p>Architectures setting:
  <img src="https://i.stack.imgur.com/EzeAs.png" alt="enter image description here"></p>
  
  <p>My Podfile content:</p>
  
  <pre><code>#platform :ios, "6.0"
  source 'https://github.com/CocoaPods/Specs.git'
  
  workspace 'QiChengWS.xcworkspace'
  xcodeproj 'QiChengNew/QiChengNew.xcodeproj'
  xcodeproj 'QCBase/QCBase.xcodeproj'
  
  
  target :QiChengNew do
      pod 'JSONModel'
      pod 'SDWebImage', '~&gt;3.6'
      pod 'AutoNSCoding', '~&gt; 0.1.3'
  
      platform :ios, '7.0'
  
      pod 'ProtocolBuffers', '~&gt; 1.9'
      pod 'CocoaAsyncSocket', '~&gt; 7.3'
  
      pod 'GBInfiniteScrollView', '~&gt; 1.6'
      pod 'GBInfiniteScrollView/PageControl'
  
      pod 'UMengAnalytics', '~&gt; 3.1.2'
  
      platform :ios, '7'
      pod 'MWPhotoBrowser', '1.4.0'
  
      xcodeproj 'QiChengNew/QiChengNew.xcodeproj'
  end
  
  
  target :QCBase do
      platform :ios, '7.0'
      pod "AFNetworking", "~&gt; 2.0"
  
      pod 'SVPullToRefresh', :head
  
      pod 'Toast', '~&gt; 2.3'
  
      xcodeproj 'QCBase/QCBase.xcodeproj'
  end
  </code></pre>