Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If I set xcconfig files, the grouping is broken #1482

Open
kakhaberikiknadze opened this issue Jun 17, 2024 · 0 comments
Open

If I set xcconfig files, the grouping is broken #1482

kakhaberikiknadze opened this issue Jun 17, 2024 · 0 comments

Comments

@kakhaberikiknadze
Copy link

I've got this shells script that generates yaml

base_dir is the root of the project
resources_dir is $base_dir/$name/Resources

create_yaml() {
    local name="$1"
    local base_dir="$2"
    result="
name: $name
configs:
    AppStore: release
    DevelopmentDebug: debug
    DevelopmentRelease: debug
    ProductionDebug: release
    ProductionRelease: release
    StagingDebug: debug
    StagingRelease: debug
configFiles:
    AppStore: $resources_dir/Configs/AppStore/AppStore.xcconfig
    DevelopmentDebug: $resources_dir/Configs/Development/Development.xcconfig
    DevelopmentRelease: $resources_dir/Configs/Development/Development.xcconfig
    ProductionDebug: $resources_dir/Configs/Production/Production.xcconfig
    ProductionRelease: $resources_dir/Configs/Production/Production.xcconfig
    StagingDebug: $resources_dir/Configs/Staging/Staging.xcconfig
    StagingRelease: $resources_dir/Configs/Staging/Staging.xcconfig
targets:
    $name:
        type: application
        platform: iOS
        deploymentTarget: '15.0'
        sources:
            - path: "$base_dir/$name"
            - path: "$base_dir/$name/Resources"
        settings:
            INFOPLIST_FILE: $name/Resources/Info.plist
packages:
    ${name}Facade:
        path: $base_dir/Packages/${name}Facade
"
    echo "$result"
}

Everything seemed to work well until I added configFiles:. Those config files are assigned but the grouping is broken.

Screenshot 2024-06-17 at 13 16 47 Screenshot 2024-06-17 at 13 19 37

If I don't add configFiles, then those config files are not assigned and grouping is correct

Screenshot 2024-06-17 at 13 20 51 Screenshot 2024-06-17 at 13 21 02

Also, to note, Documentation seems to be lacking stuff. I need to do a lot of reverse-engineering/guessing to find out how certain things would work :( Could you please add some more insights regarding grouping stuff properly and setting configs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant