0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

XcodeCloudのビルドに失敗する(sentry-cocoa)

Posted at

Xcode Cloudの実行環境

日付:2024/09/03
Xcode バージョン: Xcode 15.4(15F31d)
MACOS バージョン: macOS Sonoma 14.2(23C64)

エラー内容

...
Adding spec repo `trunk` with CDN `https://cdn.cocoapods.org/`

Downloading dependencies

Installing AmazonIVSBroadcast (1.20.0)

Installing LicensePlist (3.25.1)

Installing Periphery (2.21.0)

Installing Sentry (8.33.0)

[!] Error installing Sentry

[!] /usr/bin/git clone https://github.com/getsentry/sentry-cocoa.git /Volumes/workspace/tmp/d20240902-6264-iu5rmu --template= --single-branch --depth 1 --branch 8.33.0

Cloning into '/Volumes/workspace/tmp/d20240902-6264-iu5rmu'...

warning: Could not find remote branch 8.33.0 to clone.

fatal: Remote branch 8.33.0 not found in upstream origin

[!] Automatically assigning platform `iOS` with version `15.0` on target `アプリ` 
because no platform was specified. 
Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

エラー
Command exited with non-zero exit-code: 1

原因

[!] Automatically assigning platform iOS with version 15.0 on target アプリ
because no platform was specified.

こちらはPodfileでプラットフォームを明示的に宣言していないことによる警告なので問題なさそう。

Installing Sentry (8.33.0)
[!] Error installing Sentry
[!] /usr/bin/git clone https://github.com/getsentry/sentry-cocoa.git /Volumes/workspace/tmp/d20240902-6264-iu5rmu --template= --single-branch --depth 1 --branch 8.33.0
Cloning into '/Volumes/workspace/tmp/d20240902-6264-iu5rmu'...
warning: Could not find remote branch 8.33.0 to clone.
fatal: Remote branch 8.33.0 not found in upstream origin

上記でSentryのcloneに失敗していたので、sentry-cocoaのリリースノートを確認すると、バグがあったらしく8.33.0が非推奨になっていた。
image.png

解決

Podを更新し、Sentryが8.33.0→8.36.0となっていることを確認。
その後XcodeCloudで再ビルドすると解決した。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?