是否有可能在Xcodeproj构建设置中定义要解决的变量以进行扩展

时间:2019-01-16 22:09:49

标签: cocoapods xcodeproj

我有类似以下代码:

 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(在配置对象上)?

0 个答案:

没有答案