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

iOS unable to share configuration between builds #221

Open
gtbuchanan opened this issue Sep 3, 2024 · 0 comments
Open

iOS unable to share configuration between builds #221

gtbuchanan opened this issue Sep 3, 2024 · 0 comments

Comments

@gtbuchanan
Copy link

I have some configuration that should only be applied to the Release build. However, all other configuration should be shared between the Debug and Release builds. When defining configuration for a specific build, the more generic configuration appears to stop working. For example, this successfully sets the bundle ID:

platforms:
  ios:
    bundleId: com.example.app

This sets the Release-specific settings, but the bundle ID stops being set:

platforms:
  ios:
    bundleId: com.example.app
    targets:
      builds:
        Release:
          buildSettings:
            CODE_SIGN_STYLE: Manual
            CODE_SIGN_IDENTITY: iPhone Distribution
            PROVISIONING_PROFILE_SPECIFIER: My App

I've tried to workaround this problem by using YAML merging:

platforms:
  ios:
    targets:
      builds:
        Debug: &iosDefaults
          bundleId: com.example.app
        Release:
          <<: *iosDefaults
          buildSettings:
            CODE_SIGN_STYLE: Manual
            CODE_SIGN_IDENTITY: iPhone Distribution
            PROVISIONING_PROFILE_SPECIFIER: My App

but that results in a warning and the Release configuration not being applied:

run ios <<
[warn] Unsupported configuration option ios.<<. Skipping

Is this a bug? Is there a way to achieve this without duplicating the configuration?

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