我有类似以下代码:
projects = file_references.collect { |x| Xcodeproj::Project.open(x.absolute_path(containing_dir))}
projects[0].targets.each do |target|
puts target.resolved_build_setting("LIBRARY_SEARCH_PATHS", true)
end
哪个输出
{"Debug_x86_64"=>["$(COMMON_LIBRARY_PATHS)", "$(xxx_LIBRARY_PATH)", "$(xxx_xxx_LIBRARY_PATH)""], "Release_x86_64"=>["$(COMMON_LIBRARY_PATHS)", "$(xxx_LIBRARY_PATH)", "$(xxx_xxx_LIBRARY_PATH)"]}
有没有办法让那些变量自动将$(xxx_LIBRARY_PATH)
解析为实际设置,而不必编写解析器来寻找$(*),然后使用common_resolved_build_setting
或{{1} }以获取其实际值?
还是可以为整个目标访问resolved_build_setting
(在配置对象上)?