Resign your iOS ipa (Frameworks and Plugins included)

Intoduction

This code allow you to resign your own ipa assuming that you have:
1) a developer certificate issued by apple and added to your keychain
2) a mobileprovision file

This code allow you to resign your app without using xcode or if you need to add a UDID for development distribution.
This code correctly signs ipas with Frameworks (.framework folders), Plugins (.appex folders), Applications (.app folders)
This code autoincludes entitlements with binaries extracting them from the provided mobileprovision file.

Usage

This code runs on mac osx
You should already have installed OSX Command Lines Tools
The code is a shell script

Source and Updates

https://bitbucket.org/xgiovio/ios-ipa-resign/src

 

32
Leave a Reply

Leave a Reply

  Subscribe  
newest oldest most voted
Notify of
Kidblondie
Guest
Kidblondie

Getting this as an error message:

sign.sh: line 35: 23252 Segmentation fault: 11 /usr/bin/codesign –continue -f -s “$DEVELOPER” –entitlements “t_entitlements.plist” “$line”
Creating the Signed IPA

Alessandro Martin
Guest

Amazing work, saved my day!

Tugrul
Guest
Tugrul

Thanks, you save my day

vijay
Guest
vijay

hi Tugrul

I tried this, it is installing Resigned ipa file in ios device,but when click on installed app ,it is opening and closing?

please can you tell about this issue…

David
Guest
David

Works great, thanks you!!

Chris
Guest
Chris

Hello,

Does this also resign ipa’s that have the swiftsupport libs?

Tugrul
Guest
Tugrul

Yes it does, perfect

koofrank
Guest
koofrank

When I resign ipa and install from xcode, it Show error :
does not contain a valid Info.plist

Rob Zdankiewicz
Guest
Rob Zdankiewicz

Great article. This really helped me when resigning a vendor app for enterprise distribution. I was hopeful the this would work for in house enterprise distribution, and it did perfectly. I did get a permission denied error at first, but a quick chmod -r 777 to the working directory resolved that easily.

Paul Green
Guest
Paul Green

Thank you! Amazing work!

Eren Atas
Guest

Hello. I tried to do everything as you told. I should write everything I have done exactly. I have created a folder ResignScript and then put both .sh files in the folder. then I changed signall.sh as: ‘ signscript=”/Users/erenatas/Desktop/ResignScript/sign.sh” ipasourcefolder=”/Users/erenatas/Desktop/IPAS” ipadestfolder=”/Users/erenatas/Desktop/IPAS/RESIGNED” developer1=”iPhone Developer: Junghee Ko (MQ943MX9D2)” mobileprovision1=”/Users/erenatas/Downloads/package/MQ943MX9D2.mobileprovision” ‘ I put some apps in IPAS folder then when I wrote ./signall.sh nothing happened. no syntax issues I double checked everything but I cant make it work. I have both XCode and line tools latest versions. I am trying this because the ipas that have apple watch extensions dont resign in any… Read more »

Geethika M Geethika
Guest

Hey, How can I point different provisioning files for watch app & extension?

William
Guest
William

FIRST ERROR :

./signall.sh: line 6: syntax error near unexpected token `(‘
./signall.sh: line 6: `developer1=”iPhone Developer: myemail@hotmail.com (Y8N2B825XX)”‘

I deleted (Y8N2B825XX) in signall.sh

then I get this error :

./signall.sh: line 18: unexpected EOF while looking for matching `”‘
./signall.sh: line 22: syntax error: unexpected end of file

thornylizard
Guest

Hi i have a error when trying to follow above instructions .

signall.sh: line 6: Distribution:: command not found
signall.sh: line 18: unexpected EOF while looking for matching `”‘
signall.sh: line 22: syntax error: unexpected end of file

Please help me fix this .

Twitter | Instagram | Bitbucket | Battlelog | LinkedIn | GitHub

Google Profile


My name is Giovanni Di Grezia, but people call me xgiovio.

Here is my homepage: .

I am a VFX Artist and Software Developer

And this is a picture of me.

Giovanni Di Grezia





%d bloggers like this: