diff --git a/lib/sigh/resign.rb b/lib/sigh/resign.rb index 56e8a6b..21caf32 100644 --- a/lib/sigh/resign.rb +++ b/lib/sigh/resign.rb @@ -33,7 +33,14 @@ def resign(ipa, signing_identity, provisioning_profile) puts command.magenta output = `#{command}` puts output - if output.include?('Assuming Distribution Identity') + + if signing_identity =~ /^iPhone Developer:*/ + ptn = 'Assuming Development Identity' + else + ptn = 'Assuming Distribution Identity' + end + + if output.include?(ptn) Helper.log.info "Successfully signed #{ipa}!".green true else