Skip to content

Instantly share code, notes, and snippets.

@KentarouKanno
Last active October 25, 2016 18:47
Show Gist options
  • Save KentarouKanno/eb59fa87517f2cdcf9455a467eef8277 to your computer and use it in GitHub Desktop.
Save KentarouKanno/eb59fa87517f2cdcf9455a467eef8277 to your computer and use it in GitHub Desktop.
CocoaPods

CocoaPods

Github CocoaPods

★ Cocoapodsのバージョンを更新する

gem update cocoapods

// ベータ版にアップデートする場合
gem update cocoapods --pre

★ Podfileを作成する

pod init

★ cocoapods 1.1未満のSwift3対応

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['SWIFT_VERSION'] = '3.0'
        end
    end
end

★ cocoapods 1.1の場合のSwift3

swift_version = '3.0'

★ pod initデフォルトテンプレート

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'Product Name' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Product Name

end

★ podのバージョンを確認する

pod --version

★ ブランチを指定して取り込む

pod 'LTMorphingLabel', :git => 'https://github.com/lexrus/LTMorphingLabel', :branch => 'swift3'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment