Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Commit

Permalink
Fixed issue with creating a new profile
Browse files Browse the repository at this point in the history
  • Loading branch information
KrauseFx committed Jul 9, 2015
1 parent c579b4c commit 2aef4c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/spaceship/provisioning_profile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ def create!(name: nil, bundle_id: nil, certificate: nil, devices: [])
certificate_parameter = certificate.collect { |c| c.id } if certificate.kind_of?Array
certificate_parameter ||= [certificate.id]

# Fix https://github.com/KrauseFx/fastlane/issues/349
certificate_parameter = certificate_parameter.first if certificate_parameter.count == 1

if devices.nil? or devices.count == 0
if self == Development or self == AdHoc
# For Development and AdHoc we usually want all devices by default
Expand Down

0 comments on commit 2aef4c4

Please sign in to comment.