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

 

Subscribe
Notify of
guest

32 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Kidblondie
Kidblondie
6 years ago

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
6 years ago

Amazing work, saved my day!

Tugrul
Tugrul
6 years ago

Thanks, you save my day

vijay
vijay
6 years ago
Reply to  Tugrul

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
David
6 years ago

Works great, thanks you!!

Chris
Chris
7 years ago

Hello,

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

Tugrul
Tugrul
6 years ago
Reply to  Chris

Yes it does, perfect

koofrank
koofrank
7 years ago

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

Rob Zdankiewicz
Rob Zdankiewicz
7 years ago

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
Paul Green
8 years ago

Thank you! Amazing work!

Eren Atas
8 years ago

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 »

Eren Atas
8 years ago
Reply to  xgiovio

Haha I just realized that I forgot to write the rest of signall.sh. Lol I tried to make it work for 5 hours.. If you wouldn’t mind can I try to make a GUI for your code? Thanks a lot for your help btw 🙂

Rob Zdankiewicz
Rob Zdankiewicz
7 years ago
Reply to  Eren Atas

@Eren Atas , have you done any work on the GUI for this?

Eren Atas
8 years ago
Reply to  xgiovio

Alright. Now I can install the apps thanks to your bash but they don’t open… I wonder why 🙁

Geethika M Geethika
8 years ago

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

William
William
8 years ago

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

esalad
esalad
7 years ago
Reply to  xgiovio

Did you ever get the solution to this, I am new to this and getting a similar error

thornylizard
8 years ago

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 .

madboy
madboy
8 years ago
Reply to  xgiovio

The app with plugins do not work. These when opened are opened and closed unexpectedly

madboy
madboy
8 years ago
Reply to  xgiovio

Other .ipa files have not given me problems, alone with this leading framework and plugins folder

Madboy
Madboy
8 years ago
Reply to  xgiovio

do not understand your answer very well.

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





32
0
Would love your thoughts, please comment.x
()
x