yonaskolb / yonaskolb/XcodeGen

Does anyone know how to set different boolean value in Info.plist for each env?

Open
#1,203 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
8.8k
Forks
908
Avg merge
17d 14h
Merged PRs (30d)
2

Description

For example, in my project.yml

    settings:
      configs:
        Development:
          ALLOWS_ARBITRARY_LOADS: true
        Staging:
          ALLOWS_ARBITRARY_LOADS: false
        Production:
          ALLOWS_ARBITRARY_LOADS: false

    info:
      properties:
        NSAppTransportSecurity:
          NSAllowsArbitraryLoads: $(ALLOWS_ARBITRARY_LOADS)

I want to set NSAllowsArbitraryLoads value is true in Development env, and false in Staging and Production, how to set?
Currently , this setting ,created a string Type for NSAllowsArbitraryLoads, and value is not $(ALLOWS_ARBITRARY_LOADS)
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the configuration from project.yml and inspect how settings and info.properties are converted into the generated Info.plist. Trace the handling of build-setting substitutions and boolean values; done means NSAllowsArbitraryLoads is emitted as a boolean and resolves differently for Development, Staging, and Production.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.