MeWrite Docs

iOS: Code signing error

iOSアプリのビルド時にコード署名エラーが発生した場合の解決策

概要

Xcodeでiフレームworkアプリをビルドする際にコード署名で失敗するエラーです。

エラーメッセージ

``` Signing for “MyApp” requires a development team. Select a development team in the Signing & Capabilities editor. ```

または

``` No signing certificate “iOS Development” found ```

原因

  1. Apple Developer未登録: 開発者アカウントがない
  2. 証明書の期限切れ: 開発証明書が無効
  3. プロビジョニングプロファイルの問題: デバイスが含まれていない
  4. Bundle IDの重複: 他アプリと競合

解決策

1. Automatic Signingを有効化

``` Xcode:

  1. プロジェクト選択
  2. Signing & Capabilities タブ
  3. “Automatically manage signing” にチェック
  4. Team を選択 ```

2. Apple Developerアカウントを追加

``` Xcode:

  1. Xcode > Settings > Accounts
    • ボタンで Apple ID を追加
  2. “Download Manual Profiles” をクリック ```

3. 証明書を再生成

``` Keychain Access:

  1. 期限切れの証明書を削除
  2. Xcode で Automatic Signing を一度オフにしてオンに戻す
  3. 新しい証明書が自動生成される ```

4. プロビジョニングプロファイルを更新

```bash

コマンドラインで更新

cd ~/Library/MobileDevice/Provisioning\ Profiles/ rm *.mobileprovision

Xcode で再ダウンロード

```

5. Bundle IDを確認

``` Xcode:

  1. プロジェクト > General > Identity
  2. Bundle Identifier が一意であることを確認 例: com.yourcompany.yourapp ```

6. Manual Signingの場合

```ruby

fastlane/Matchfile

git_url(“https://github.com/your-org/certificates") storage_mode(“git”) type(“development”) ```

```bash

証明書を同期

fastlane match development fastlane match appstore ```

よくある間違い

  • 個人チームと組織チームを混同
  • シミュレータビルドに実機用プロファイルを使用
  • 証明書をチーム間で共有しない

関連エラー

関連エラー

iOS の他のエラー

最終更新: 2025-12-10