LoginSignup
11
12

More than 5 years have passed since last update.

Podfile でローカルディレクトリにある podspec を指定する

Posted at

あるライブラリのオレオレ podspec を書いたがなんらかの理由で公開できない、または公開が面倒な場合は、 podspec をローカルに置いて Podfile から参照することができる:

### ディレクトリ構成の例
# FooProject/
# Podfile
# Specs/
#   BarLib/
#     0.0.1/
#       BarLib.podspec
# Source Files...

### Podfile
pod 'BarLib', podspec: 'Specs/BarLib/0.0.1/BarLib.podspec'

pod メソッドの :podspec オプションに、ローカルの podspec のパス(絶対パスまたは Podfile からの相対パス)を指定すればいい。上記のディレクトリ構成は CocoaPods の標準に従っているが、このとおりでなくても構わない。

11
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
12