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
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
are you following correctly all the steps?
Amazing work, saved my day!
Thanks, you save my day
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…
you should check the console. maybe not all can be solved with this script
Works great, thanks you!!
Hello,
Does this also resign ipa’s that have the swiftsupport libs?
Yes it should
Yes it does, perfect
When I resign ipa and install from xcode, it Show error :
does not contain a valid Info.plist
The ipa you are signing is invalid
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.
Thank you! Amazing work!
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 »
ipadestfolder=”/Users/erenatas/Desktop/IPAS/RESIGNED”
add a slash at the end like this
ipadestfolder=”/Users/erenatas/Desktop/IPAS/RESIGNED/”
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 🙂
@Eren Atas , have you done any work on the GUI for this?
Alright. Now I can install the apps thanks to your bash but they don’t open… I wonder why 🙁
Hey, How can I point different provisioning files for watch app & extension?
Hello, actually the script resigns all codes with entitlements from one provision. If you need a custom solution send me a more detailed mail. Thank you
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
Hello. Please give me more info. It’s working on my side. Contact me directly to my mail
Did you ever get the solution to this, I am new to this and getting a similar error
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 .
what did you do exactly?
The app with plugins do not work. These when opened are opened and closed unexpectedly
Maybe the mobileprovision isn’t good. What is your workflow?
Other .ipa files have not given me problems, alone with this leading framework and plugins folder
Capture the log from xcode console. Windows- devices
I received your log. It isn’t a resign problem but it’s related to the app itself. Please use the resign only on your ipa!
do not understand your answer very well.