本文共 820 字,大约阅读时间需要 2 分钟。
读这篇文章了解什么是cocaopods,大体上就是一个依赖管理工具吧
cocoaPods是用来管理swift和OC依赖的工具,超过64000个库,被300万app使用。CocoaPods能够让你优雅的管理你的项目。(
CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. It has over 64 thousand libraries and is used in over 3 million apps. CocoaPods can help you scale your projects elegantly.)sudo gem install cocoapods
Podfile
platform :ios, '8.0'use_frameworks!target 'MyApp' do pod 'AFNetworking', '~> 2.6' pod 'ORStackView', '~> 3.0' pod 'SwiftyJSON', '~> 2.3'end
pod init
pod installSometimes CocoaPods doesn’t yet have a pod for one of your dependencies. Fortunately, creating a pod is pretty easy:
$ pod spec create Peanut$ edit Peanut.podspec$ pod spec lint Peanut.podspec
查找
pod search json不传图不舒服司机
转载地址:http://tunr.baihongyu.com/