You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a Xcode project with a xcconfig file defining PRODUCT_BUNDLE_IDENTIFIER and targets using the setting with the same key (e.g. $(PRODUCT_BUNDLE_IDENTIFIER).suffix), I would expect the targets to have the variable in the value resolved with the value defined in xcconfig when querying with resolved_build_setting.
#native_target_spec.rbit'returns the resolved build setting string value for a given key considering variable substitution: target referencing project xcconfig'doproject_xcconfig=@project.new_file(fixture_path('project.xcconfig'))@project.build_configuration_list.build_configurations.each{ |build_config| build_config.base_configuration_reference=project_xcconfig}@target.build_configuration_list.set_setting('PRODUCT_BUNDLE_IDENTIFIER','$(PRODUCT_BUNDLE_IDENTIFIER).suffix')expected_value_release='com.cocoapods.app.suffix'expected_value_debug='com.cocoapods.app.dev.suffix'@target.resolved_build_setting('PRODUCT_BUNDLE_IDENTIFIER',true).should == {'Release'=>expected_value_release,'Debug'=>expected_value_debug}end
However, only the value of the xcconfig file is used:
Given a Xcode project with a
xcconfig
file definingPRODUCT_BUNDLE_IDENTIFIER
and targets using the setting with the same key (e.g.$(PRODUCT_BUNDLE_IDENTIFIER).suffix
), I would expect the targets to have the variable in the value resolved with the value defined inxcconfig
when querying withresolved_build_setting
.However, only the value of the
xcconfig
file is used:As far as I see, this only happens when using a variable with the same name as the key.
The text was updated successfully, but these errors were encountered: