Setting iOS Today Extension bundle version to Flutter FLUTTER_BUILD_NUMBER

167

First, you need to updated the extension info.plist files with Flutter params:

<key>CFBundleShortVersionString</key>

<string>$(FLUTTER_BUILD_NAME)</string>

<key>CFBundleVersion</key>

<string>$(FLUTTER_BUILD_NUMBER)</string>

Now you need to have these Flutter parameters available for the widget. To do so, you need to include Flutter/Generated.xcconfig file in the Extension configuration file. On xcode, select Project->Runner-, under “info” open “configurations”, [image2] Look for the Extension configuration file, and add the following: #include “Generated.xcconfig” Run ‘flutter clean; flutter run’ and the version should be updated

Share:
167
Asaf Pinhassi
Author by

Asaf Pinhassi

Updated on December 06, 2022

Comments

  • Asaf Pinhassi
    Asaf Pinhassi over 1 year

    I have a flutter application, that also has an iOS native Today extension.

    When I change the version on the project's yaml, the "Runner" target gets its version automatically, but the extension target needs to be updated manually.

    Is there a way to automate it?