1
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?

[Flutter] Error (Xcode): Provisioning profile "iOS Team Provisioning Profileの解決方法

Posted at

エラー

Flutterアプリを実機iPhoneでビルドしようとした際に以下のエラーが発生

❯ flutter run -d {デバイスID}
Launching lib/main.dart on  MyiPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: HOGE
Running pod install...                                             26.5s
Running Xcode build...                                                  
Xcode build done.                                           17.1s
Failed to build iOS app
Could not build the precompiled application for the device.
Error (Xcode): Provisioning profile "iOS Team Provisioning Profile: com.hoge" doesn't include the currently selected device "MyiPhone" (identifier {デバイスID}).
/path/to/Runner.xcodeproj



It appears that there was a problem signing your application prior to installation on the device.

Verify that the Bundle Identifier in your project is your signing id in Xcode
  open ios/Runner.xcworkspace

Also try selecting 'Product > Build' to fix the problem.

Error launching application on MyiPhone.

解決方法

https://developer.apple.com/account/resources/devices/ にて、接続している実機を登録することで解決しました

スクリーンショット 2025-01-11 18.17.42.png

備考:寝たら直った

上記の通り、行ったこととしてはデバイスの登録のみですが、デバイスの登録直後は引き続きエラーが発生していました。

夜に作業していたこともありその日は諦めて、翌日の朝に再度ビルドしてみたところエラーが発生せずにビルドできました。

(デバイス登録が完了〜反映までに時差があるのかな?)

「寝たら直る」は本当でした。皆さんも潔く諦めて祈って寝るのです。

1
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
1
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?