'Can a Flutter Plugin have its own Bundle ID in iOS?

I'm trying to create a plugin for a flutter app that manages its own keychain. Default keychain access is managed by the teamName + bundleID as per here.

I wrote a simple wrapper around flutter_secure_storage but I noticed that calls in my base app and in the plugin had the same teamName + bundleID. I confirmed this by looking at the ios/Pods/Target\ Support\ Files/plugin\ name/plugin\ name-Info.plist file on the line

  <key>CFBundleIdentifier</key>
  <string>${PRODUCT_BUNDLE_IDENTIFIER}</string>

it seems, to my understanding, at build time all plugins get the same bundleID from here.

Is there a workaround?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source