Pod相关

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


3.  基于2的优化写法


4.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容