AngeloAvv / flutter_flavorizr

A flutter utility to easily create flavors in your flutter application
https://pub.dev/packages/flutter_flavorizr
MIT License
456 stars 81 forks source link

Build configuration list for PBXNativeTarget should be also build #184

Closed JasCodes closed 5 months ago

JasCodes commented 1 year ago

Hey @AngeloAvv

project.pbxproj should also generate configs for PBXNativeTarget "Runner" and "RunnerTests"

When you edit in xcode and start editing, all the PBXNativeTarget Runner and RunnerTests are filled in.

I was facing issue right after generation due to that, because other tools assume its there.

https://github.com/codemagic-ci-cd/cli-tools/issues/311

Before edit in xcode

/* Begin XCConfigurationList section */
        331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
            isa = XCConfigurationList;
            buildConfigurations = (
                331C8088294A63A400263BE5 /* Debug */,
                331C8089294A63A400263BE5 /* Release */,
                331C808A294A63A400263BE5 /* Profile */,
            );
            defaultConfigurationIsVisible = 0;
            defaultConfigurationName = Release;
        };
        97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
            isa = XCConfigurationList;
            buildConfigurations = (
                97C147031CF9000F007C117D /* Debug */,
                97C147041CF9000F007C117D /* Release */,
                249021D3217E4FDB00AE95B9 /* Profile */,
                ED47339F33123BB331D682B6 /* Debug-prod */,
                E75F1AF0D1EFBF7997B79FAA /* Profile-prod */,
                F320F14FD09C56E33FF2787C /* Release-prod */,
                945DAFB9006114777D053EE1 /* Debug-beta */,
                DC97A0DE2FB3233B5D665113 /* Profile-beta */,
                84095F4D75176F042D69ED41 /* Release-beta */,
                1D002586A53159B438C990A3 /* Debug-alpha */,
                B5FDF5D9AAA05AF01FE5010D /* Profile-alpha */,
                4332D214ED9CD04C1239D296 /* Release-alpha */,
                F0D5B95EA6090B4A0F39F32F /* Debug-dev */,
                C9FFAC8C3C6745215E794D7B /* Profile-dev */,
                B982DF9221CBF57DA8287B12 /* Release-dev */,
            );
            defaultConfigurationIsVisible = 0;
            defaultConfigurationName = Release;
        };
        97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
            isa = XCConfigurationList;
            buildConfigurations = (
                97C147061CF9000F007C117D /* Debug */,
                97C147071CF9000F007C117D /* Release */,
                249021D4217E4FDB00AE95B9 /* Profile */,
            );
            defaultConfigurationIsVisible = 0;
            defaultConfigurationName = Release;
        };
/* End XCConfigurationList section */

After edit in xcode

/* Begin XCConfigurationList section */
        331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
            isa = XCConfigurationList;
            buildConfigurations = (
                331C8088294A63A400263BE5 /* Debug */,
                331C8089294A63A400263BE5 /* Release */,
                331C808A294A63A400263BE5 /* Profile */,
                374123322A2FE65200E31AC1 /* Debug-prod */,
                374123332A2FE65200E31AC1 /* Profile-prod */,
                374123342A2FE65200E31AC1 /* Release-prod */,
                374123352A2FE65200E31AC1 /* Debug-beta */,
                374123362A2FE65200E31AC1 /* Profile-beta */,
                374123372A2FE65200E31AC1 /* Release-beta */,
                374123382A2FE65200E31AC1 /* Debug-alpha */,
                374123392A2FE65200E31AC1 /* Profile-alpha */,
                3741233A2A2FE65200E31AC1 /* Release-alpha */,
                3741233B2A2FE65200E31AC1 /* Debug-dev */,
                3741233C2A2FE65200E31AC1 /* Profile-dev */,
                3741233D2A2FE65200E31AC1 /* Release-dev */,
            );
            defaultConfigurationIsVisible = 0;
            defaultConfigurationName = Release;
        };
        97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
            isa = XCConfigurationList;
            buildConfigurations = (
                97C147031CF9000F007C117D /* Debug */,
                97C147041CF9000F007C117D /* Release */,
                249021D3217E4FDB00AE95B9 /* Profile */,
                ED47339F33123BB331D682B6 /* Debug-prod */,
                E75F1AF0D1EFBF7997B79FAA /* Profile-prod */,
                F320F14FD09C56E33FF2787C /* Release-prod */,
                945DAFB9006114777D053EE1 /* Debug-beta */,
                DC97A0DE2FB3233B5D665113 /* Profile-beta */,
                84095F4D75176F042D69ED41 /* Release-beta */,
                1D002586A53159B438C990A3 /* Debug-alpha */,
                B5FDF5D9AAA05AF01FE5010D /* Profile-alpha */,
                4332D214ED9CD04C1239D296 /* Release-alpha */,
                F0D5B95EA6090B4A0F39F32F /* Debug-dev */,
                C9FFAC8C3C6745215E794D7B /* Profile-dev */,
                B982DF9221CBF57DA8287B12 /* Release-dev */,
            );
            defaultConfigurationIsVisible = 0;
            defaultConfigurationName = Release;
        };
        97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
            isa = XCConfigurationList;
            buildConfigurations = (
                97C147061CF9000F007C117D /* Debug */,
                97C147071CF9000F007C117D /* Release */,
                249021D4217E4FDB00AE95B9 /* Profile */,
                374123262A2FE65200E31AC1 /* Debug-prod */,
                374123272A2FE65200E31AC1 /* Profile-prod */,
                374123282A2FE65200E31AC1 /* Release-prod */,
                374123292A2FE65200E31AC1 /* Debug-beta */,
                3741232A2A2FE65200E31AC1 /* Profile-beta */,
                3741232B2A2FE65200E31AC1 /* Release-beta */,
                3741232C2A2FE65200E31AC1 /* Debug-alpha */,
                3741232D2A2FE65200E31AC1 /* Profile-alpha */,
                3741232E2A2FE65200E31AC1 /* Release-alpha */,
                3741232F2A2FE65200E31AC1 /* Debug-dev */,
                374123302A2FE65200E31AC1 /* Profile-dev */,
                374123312A2FE65200E31AC1 /* Release-dev */,
            );
            defaultConfigurationIsVisible = 0;
            defaultConfigurationName = Release;
        };
/* End XCConfigurationList section */
    };