LoginSignup
1
1

More than 1 year has passed since last update.

FlutterでiOS extensionにdart-defines flavorを伝える

Last updated at Posted at 2022-10-04

問題

flavorでdev, stg, prod環境を分ける。リンクに従っって設定したが、extensionを使用ているため、
何も設定しないで、--releaseでbuildすると、以下のエラーで失敗する。

error: Embedded binary's bundle identifier is not prefixed with the parent app's bundle identifier.

            Embedded Binary Bundle Identifier:      com.room8.app.BroadcastExtension
            Parent App Bundle Identifier:           com.room8.app.stg

解決

  1. extensionの配下にxcconfigファイルを置く
    image.png

  2. Runnerのinfo設定でxcconfigファイルを選択する
    image.png

参考:stack overflow

1
1
1

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
1