swift中使用cocoapods时,Podfile中必须写上 use_frameworks!
使用cocoapods导入框架在真机调试出现问题的解决方案:
1.build phases
2.+ new copy phases
3.framework -> + pods.framework
示例:
platform :ios, "8.0"
target "demo" do
use_frameworks!
pod 'AFNetworking'
pod 'SVProgressHUD'
pod 'SDWebImage'
end