title: How to change $(PRODUCT_BUNDLE_IDENTIFIER) in Xcode?
body: <p>I am build different flavor of Flutter app with different Firebase environment (development and production). I need set different bundle ID for development and production in Xcode for iOS apps. </p>
  
  <p>I am use schemes to configure the different flavor (in Build Settings I add environment value for every configuration).</p>
  
  <p>But I have big issue with change <code>$(PRODUCT_BUNDLE_IDENTIFIER)</code>. I need add suffix <code>.development</code> to normal app id for development app id.</p>
  
  <p>I have try follow <a href="https://medium.com/@kavithakumarasamy89/xcode-build-settings-user-defined-settings-manage-multiple-environments-with-single-target-3e5c1a307999" rel="noreferrer">this method</a>(use User Defined Settings) and change <code>info.plist</code> to get variable from User Defined Settings but it not work.</p>
  
  <p>Error is:</p>
  
  <blockquote>
    <p>The operation couldn’t be completed. Application
    “$(EXAMPLE_BUNDLE_ID)" is unknown to FrontBoard.</p>
  </blockquote>
  
  <p>So it seem when pass in User Defined Setting it is not interpolate correct.</p>
  
  <p>I have also try mix method of add default <code>PRODUCT_BUNDLE_IDENTIFIER</code> and User Defined Settings. For example: <code>com.example.app$(EXAMPLE_BUNDLE_ID)</code> where <code>EXAMPLE_BUNDLE_ID</code> = <code>.development</code></p>
  
  <p>I also try reference User Defined Setting <code>$(EXAMPLE_BUNDLE_ID)</code> by direct add it  to Bundle Identifier in Target General tab under ‘Identity’. But this then change to : <code>-- EXAMPLE_BUNDLE_ID-</code></p>
  
  <p>I have also try in <code>info.plist</code> use <code>$(PRODUCT_BUNDLE_IDENTIFIER)$(EXAMPLE_BUNDLE_ID)</code> for Bundle Identifier value. But this give similar error:</p>
  
  <blockquote>
    <p>The operation couldn’t be completed. Application
    “com.example.app$(EXAMPLE_BUNDLE_ID)" is unknown to FrontBoard.</p>
  </blockquote>
  
  <p>Again this look like interpolation issue.</p>
  
  <p>Anyone know solution? I have look but cannot find answer.</p>
  
  <p>This easy for android because just use <code>applicationIdSuffix ".development”</code> in <code>productFlavors</code>. But I cannot find way like this for Xcode.</p>