CocoaPods方式使用SnapKit
发布时间:2020-12-14 06:06:52 所属栏目:百科 来源:网络整理
导读:通过CocoaPods安装 初始化 进入工程更目录执行命令,生产Podfile文件 pod init 打开Podfile 文件 vim Podfile 编辑 # Uncomment the next line to define a global platform for your project# platform :ios,'9.0'target 'Aider' do # Comment the next lin
通过CocoaPods安装初始化进入工程更目录执行命令,生产Podfile文件
打开Podfile 文件
编辑# Uncomment the next line to define a global platform for your project # platform :ios,'9.0' target 'Aider' do # Comment the next line if you're not using Swift and don't want to use dynamic frameworks use_frameworks! pod 'SnapKit','~> 3.0' #增加此行 # Pods for Aider end 运行CocoaPods install 命令leishendeMBP:Aider leishen$ pod install Analyzing dependencies Downloading dependencies Installing SnapKit (3.2.0) Generating Pods project Integrating client project [!] Please close any current Xcode sessions and use `Aider.xcworkspace` for this project from now on. Sending stats Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed. [!] Automatically assigning platform ios with version 10.3 on target Aider because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`. 到此,不出意外的话,你已经将SnapKit集成到你的项目中了。 重新打开项目
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
热点阅读