Skip to content

floriangbh/iOS-Tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Tools

Quick note for iOS/macOS development tools :

Cocoapods

Link to the repository.

Manage dependency

Install cocoapods :

sudo gem install cocoapods

Pod declaration in Podfile :

pod '<pod_name>' 
pod '<pod_name>', :git => '<repo_url>.git', :branch => '<branch_name>' #specify branch 
pod '<pod_name>', :git => '<repo_url>.git', :commit => '<commit_tag>' #specify commit 

Install pods (based on Podfile.lock) :

pod install

Update all pods :

pod update

Publish new pod version

Check project before push to cocoapods :

pod spec lint <my_pod_file>.podspec

If lint passing, push to cocoapods :

pod trunk push <my_pod_file>.podspec

Carthage

Link to the repository.

Install Carthage :

brew install carthage

Declaration in Cartfile (exemple) :

github "ashleymills/Reachability.swift" 
github "ashleymills/Reachability.swift" ~> 3.0

Install carthage (based on Cartfile.resolved) :

carthage bootstrap --platform iOS --cache-builds --no-use-binaries

Update all :

carthage update --platform iOS --cache-builds --no-use-binaries 

Vapor

Link to the repository.

Clean :

vapor clean -y

Build :

vapor build 

Generate Xcode project (to build with SPM dependency) :

vapor xcode 

Deploy on heroku (after login with heroku toolbox) :

vapor heroku push 

Swiftlint

Link to the repository.

A tool to enforce Swift style and conventions.

Installation :

brew install swiftlint

Auto correction :

swiftlint autocorrect

To add SwiftLint to xcodeproject just add a new "Run Script Phase" :

if which swiftlint >/dev/null; then
  swiftlint
else
  echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
fi

Fastlane

Link to the repository.

Install:

brew cask install fastlane

Update Fastlane :

fastlane update_fastlane

Jazzy

Link to the repository.

Install :

sudo gem install jazzy -n /usr/local/bin

Generate doc for all files :

jazzy --min-acl private fileprivate internal

FiraCode

Link to the repository.

Install : https://github.com/tonsky/FiraCode/wiki

About

Useful iOS tools.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages