lib/spaceship/portal/provisioning_profile.rb in spaceship-0.12.2 vs lib/spaceship/portal/provisioning_profile.rb in spaceship-0.12.3

- old
+ new

@@ -210,11 +210,11 @@ # 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 - devices = Spaceship::Device.all.find_all { |d| d.device_type != 'pc' } + # For Development and AdHoc we usually want all compatible devices by default + devices = Spaceship::Device.all_for_profile_type(self.type) end end profile = client.with_retry do client.create_provisioning_profile!(name,