LoginSignup
9
4

More than 3 years have passed since last update.

【Flutter】flutter build iosコマンドがCode Signing Errorで失敗する

Posted at

事象

Flutter製のiOSアプリをリリースする前に実行すべきコマンドflutter build iosを実行したところ、Code Signing Error: No profiles for '<BundleID>' were found: Xcode couldn't find any iOS App Development provisioning profiles matching '<BundleID>'.と表示されてコマンド実行に失敗しました。

原因

このエラー文言の続きを読んでみると、Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.と記載されています。
どうやらXCodeの自動署名機能?は無効化されるようです。

対処

XCodeでプロジェクトを開いてSigningの項目を確認してみると、Automatically manage signingの設定にチェックが付いていました。
これを外して下記の通り作業した結果、無事flutter build iosの実行が成功しました。

  1. Automatically manage signingのチェックを外す。
  2. flutter cleanを実行する。
  3. flutter build iosを実行する。
9
4
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
4