CocoaPods / CocoaPods/Xcodeproj

Variables from xcconfig are not resolved when using $VAR syntax

Open
#506 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
2.4k
Forks
488
PR merge metrics
No merged PRs in 30d

Description

This issue is somewhat related to https://github.com/CocoaPods/Xcodeproj/issues/505.

When defining build settings using variables from `xcconfig` files the `$VAR` and `$(VAR)` syntax work differently.

- Build setting defined as `$(VAR)` will be properly resolved to the value of `VAR`.
- Build setting defined as `$VAR` will be resolved into just `"$VAR"` string as is.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the xcconfig build-setting resolution entry point and trace how `$VAR` and `$(VAR)` are handled. Compare both syntax paths and add coverage where the project tests variable resolution; done means the two forms resolve to the same VAR value.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.