Cocoapod 으로 소스 공개(Public)용으로 프레임워크 배포
PodSpec 파일 생성 및 편집하기 spec 파일만 따로 만드는 방법이 있다. 사실 이 파일만 있다면 배포가 가능하다.
$ pod spec create pod_name .podspec 이 로컬에 생성 될 것이다.
Pod::Spec.new do |s| s.name = "git-public-pod-public" s.version = "0.1.5" s.summary = "The SDK for iOS Swift provides a modern way of implementing APIs." s.description = <<-DESC Developed in Swift, the SDK for iOS Swift provides a modern way of implementing LINE APIs. The features included in this SDK will help you develop an iOS app with engaging and personalized user experience. DESC s.homepage = "https://github.com/james-chun-dev/git-public-pod-public" s.license = "Apache License, Version 2.0" s.author = "James" s.platform = :ios, "13.0" s.module_name = "SDK1" s.source = { :git => "https://github.com/james-chun-dev/git-public-pod-public.git", :tag => "#{s.version}" } s.source_files = 'SDK1/SDK1/SDK1.h' end 더 많은 정보를 원한다면 cocoapods 공식사이트 문서 참고.