oh-my-docs

Summary for developers


Project maintained by italkso Hosted on GitHub Pages — Theme by mattgraham

Dependency Manager

1. CocoaPods

$ sudo gem install cocoapods	#  Install CocoaPods
$ cd desktop					#  Change directory
$ pod init						# Create a new file named Podfile automatically
$ vim	Podfile					# Edit Podfile vi/vim

$ pod install 					# Install dependencies

$ open MyApp.xcworkspace		# Open MyApp.xcworkspace

$ pod update					# Update dependencies
platform :ios, '10.0'

target 'MyApp' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  pod 'Alamofire', '~> 5.2'

end

CocoaPods is a dependency manager for Cocoa projects.

2. Carthage

3. Swift Package Manager

dependencies: [
    .package(url: "https://github.com/Alamofire/Alamofire.git", .upToNextMajor(from: "5.2.0"))
]