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

Commit

Permalink
Merge pull request #117 from sohgoh/resignWithDevProfile
Browse files Browse the repository at this point in the history
Support to resign ipa with development profile
  • Loading branch information
KrauseFx committed Jun 5, 2015
2 parents 7f6d628 + 06b1213 commit 5b920df
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/sigh/resign.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5b920df

Please sign in to comment.