class XcodePristine::Checker
Public Class Methods
new(xcodeproj)
click to toggle source
# File lib/xcode_pristine/checker.rb, line 4 def initialize(xcodeproj) @project = xcodeproj end
Public Instance Methods
has_build_settings?()
click to toggle source
# File lib/xcode_pristine/checker.rb, line 12 def has_build_settings? !message.empty? end
message(indent = "")
click to toggle source
# File lib/xcode_pristine/checker.rb, line 16 def message indent = "" messages.map { |msg| indent + msg }.join("\n") end
messages()
click to toggle source
# File lib/xcode_pristine/checker.rb, line 20 def messages messages = [] messages += @project.build_configurations.map { |config| config.build_settings.map { |k,v| "#{config.name}: #{k}=#{v}" } }.flatten messages += @project.targets.map { |target| target.build_configurations.map { |config| config.build_settings.map { |k,v| "#{target.name}, #{config.name}: #{k}=#{v}" } }.flatten }.flatten messages end
project_name()
click to toggle source
# File lib/xcode_pristine/checker.rb, line 8 def project_name end