9
8

More than 5 years have passed since last update.

JenkinsでCocoaPodsを使ったプロジェクトのトラブルシュート

Posted at

Jenkins上でCocoaPodsを使ったプロジェクトのテストを実施しようと思ったらトラブったのでメモ。

Jenkins

インストールするプラグイン

CocoaPodsを使うためのCocoaPods Pluginがあるのでインストールする。

プロジェクト設定

ビルドステップにUpdate CocoaPodsを追加して、Jenkins上のビルド環境にCocoaPodsを導入します。ビルドフェイズの最初(少なくとも実際のビルドを行う前)に入れると良いでしょう。

スクリーンショット 2013-12-10 13.58.06.png

必要に応じてClean “Pods” folderのチェックを付けてください。

スクリーンショット 2013-12-10 14.01.23.png

-

Trouble shooting

Podfile.lock: No such file or directory

Jenkinsのビルド環境にCocoaPodsがセットアップされていないために起こります。Jenkinsの設定を見なおして、 アプリケーションビルドより前 にUpdate CocoaPodsのフェイズがあることを確認して下さい。

xcodebuild: error: The workspace ‘hogehoge’ does not contain a scheme named 'test'.

ビルドスクリプトで指定したスキームが無い場合に発生します。Manage schemesを開いて…

スクリーンショット_2013-12-10_14.06.24-4.png

該当するスキームのSharedをチェックします。

スクリーンショット_2013-12-10_14.06.39-5.png

-

参考

9
8
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
9
8