Xcode8.1 swift3.0 引入Alamofire 3.5.0 支持iOS版本8.0 设置

该博客介绍了如何在Xcode8.1中,使用Swift3.0语言配置项目以支持iOS 8.0,并引入Alamofire 3.5.0库。主要步骤包括在Podfile中设定源、平台版本、使用动态框架以及针对不同目标设置Pods。此外,还涉及到了在post_install阶段设置Swift版本和MacOS最低部署目标。
摘要由CSDN通过智能技术生成

PodFile设置
source ‘https://github.com/CocoaPods/Specs.git

Uncomment the next line to define a global platform for your project

platform :ios, ‘8.0’

target ‘ImageDownload’ do
# Comment the next line if you’re not using Swift and don’t want to use dynamic frameworks
use_frameworks!

# Pods for ImageDownload

pod ‘Alamofire’, ‘~> 3.5.0’

target ‘ImageDownloadTests’ do
inherit! :search_paths
# Pods for testing
end

target ‘ImageDownloadUITests’ do
inherit! :search_paths
# Pods for testing
end

end

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings[‘SWIFT_VERSION’] = ‘2.3’
config.build_settings[‘MACOSX_DEPLOY

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值