1. NSInvalidArgumentException', reason: '-[AFHTTPSessionManager POST:parameters:constructingBodyWithBlock:progress:success:failure:]: unrecognized selector sent to instance 0x1703c0960'
解决方法:1.资源库/Developer/Xcode/DerivedDate/项目名/build 删除这个build ;
2. 删除Pods 以及 Podfile.lock ,然后pod install 就可以了。
pod删除方法:rm -rf Pods Podfile.lock
2. 多个target协作时使用pod,应该将每个target都在podFile中展示出来
eg:
# Uncomment this line to define a global platform for your project
platform :ios,'8.0'
target 'target1' do
pod'CocoaSecurity','~> 1.2.4'
target 'target2' do
pod'Masonry','~> 1.0.2'
end
end