LoginSignup
0
0

More than 5 years have passed since last update.

Carthageで複数のframeworkを一つにまとめてバイナリ配布する方法

Posted at

雑ですみません

前提知識

  • carthageライブラリの基本的な配布方法
    • タグ切ってgithubにpushして等
  • carthageライブラリのバイナリをgithubのrelaseを介して配布できること

やり方

$ cd MyLibraryAandB # 2つのframeworkを吐くようなプロジェクトがあるとして、まずはプロジェクトフォルダに移ります
$ carthage build --no-skip-current
$ ls Carthage/Build/iOS/ # ちゃんと2つのframeworkができてるか確認
  Carthage/Build/iOS/MyLibraryA.framework
  Carthage/Build/iOS/MyLibraryB.framework
$ carthage archive MyLibraryA MyLibaryB
$ ls # カレントディレクトリに zipが出来たか確認
  MyLibraryA.framework.zip # 名前はAだけど両方入っている
$ mv MybraryA.framework.zip Carthage.framework.zip # 動作に影響はないが、名前が紛らわしいのでリネーム。このあたりの作法はrealm-cocoaを参考にした
$ # githubのreleaseにpostする
0
0
1

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
0
0