首先:cd 项目
touch Podfile一个文件
vim Podfile进入Podfile文件
在Podfile文件里输入
platform :ios, '8.0'
target 'PayDemo' do
pod 'Pingpp', '~> 2.2.20'
end
esc键,:wq保存,pod install
现改为:
source 'https://github.com/CocoaPods/Specs.git' #必须写
platform :ios, '12.0'
inhibit_all_warnings!#消除第三方库警告
target 'TestProduct' do
use_frameworks! #必须写
pod 'AFNetworking'
pod 'Masonry'
pod 'TYAlertController'
pod 'YYModel'
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
end
end
end #解决Cocoapods提示IPHONEOS_DEPLOYMENT_TARGET低于最低支持版本问题
end
esc键,:wq保存,pod install