Method: FastlaneCore::Project#configurations
- Defined in:
- fastlane_core/lib/fastlane_core/project.rb
permalink #configurations ⇒ Object
Get all available configurations in an array
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 |
# File 'fastlane_core/lib/fastlane_core/project.rb', line 177 def configurations @configurations ||= if workspace? workspace .file_references .map(&:path) .reject { |p| p.include?("Pods/Pods.xcodeproj") } .map do |p| # To maintain backwards compatibility, we # silently ignore non-existent projects from # workspaces. begin Xcodeproj::Project.open(p).build_configurations rescue [] end end .flatten .compact .map(&:name) else project.build_configurations.map(&:name) end end |