進入工程更目錄執行命令,生產Podfile文件html
pod initios
vim Podfilevim
# 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
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集成到你的項目中了。session
項目名稱.xcworkspaceide