lib/motion-provisioning/provisioning_profile.rb in motion-provisioning-1.0.0 vs lib/motion-provisioning/provisioning_profile.rb in motion-provisioning-1.0.1
- old
+ new
@@ -47,10 +47,10 @@
ids = `/Library/RubyMotion/bin/ios/deploy -D`.split("\n")
# If there is a profile, we check the device is included.
# Otherwise check if the device is registered in the Developer Portal.
if profile
- profile_devices = profile.devices.map(&:udid)
+ profile_devices = profile.devices.map(&:udid).map(&:downcase)
ids.each do |id|
next if profile_devices.include?(id.downcase)
answer = Utils.ask("Info", "This computer is connected to an iOS device with ID '#{id}' which is not included in the profile. Do you want to register it? (Y/n):")
if answer.yes?
Utils.log('Info', "Registering device with ID '#{id}'")