1.CocoaPods更新到1.0.1坑–1
Podfile文件必须更新,需要制定target的内容,举例如下
platform :ios, '8.0'
inhibit_all_warnings!
def pods
pod 'AFNetworking'
pod 'FMDB'
pod 'SDWebImage'
pod 'MJExtension'
pod 'MJRefresh'
pod 'MBProgressHUD'
pod 'SSKeychain'
pod 'MZTimerLabel'
# pod 'IQKeyboardManager'
pod 'FSMediaPicker'
pod 'CocoaLumberjack'
pod 'YYCache'
pod 'YYCategories'
pod 'Bugtags'
end
target 'chengzivr' do
pods
end
target 'chengzivrep' do
pods
end
2.CocoaPods更新到1.0.1坑–2
从不使用use_framework!更换到使用use_framework!
怀疑是cocoapods的bug,不会自动删除引用的.a静态库的引用,导致运行报错Undefined symbols for architecture arm64 :就是找不到pod中的三方文件的静态库,因为使用的是framework,当然不用找静态库了啊!所以按照下面的步骤去掉静态库引用就行
步骤一、
project->target->General->Linked Frameworks and Libraries -> 删除报错的静态库!
步骤二、
project->target->BuildSettings->Linking中的Other Linker Flags -> 删除报错的静态库
其中-l 指的是静态库 -f 指的是framework 双引号引用的是系统库