ajay
ajay

Reputation: 3345

Ipa creation using any script(ipa creation from other ipa )

basically my project based on books(combination of pdf's and xml's). Due to some reasons we are maintaining more than ten provisioning profiles.when ever new device udid comes up we need to create another provisioning profile(as per the requirement). For each time building i need to put some provisioning and replacing books in my xcode, this is causing more time consuming. I seen many scripts but all those not full filling the scenario.

Questions:

1.Is it possible to develop another application (mac osx) to make ipa which is taking an input of provisioning file, my code(ios) and books then compile finally giving output as .ipa file for giving code?

2.is any other way to reduce time consuming for the ipa creation?

If any possible please give me some idea to make it true , your suggestions is also more important on this.Thanks in advance to every one.

new question for generating Ipa from other ipa file

I followed your approach,But can any one please let me know ,i created a ipa file and now i want to modify the content of ipa and also provisioning profile will it possible?

Upvotes: 1

Views: 1222

Answers (1)

0x8badf00d
0x8badf00d

Reputation: 6401

If you have an ipa created using older provisioning profile and the code hasn't changed between getting next provisioning profile then there is a way to do it.

You can write a script from following steps:

1) Change the .ipa that you already have to .zip and extract zip contents. This would reveal Payload folder that has YourApp.app folder
2) Right click on YourApp.app folder and show package contents
3) find embedded.mobileprovision and delete it. Drag your new .mobileprovision file into this location and rename it to say embedded.mobileprovision.
4) Find and delete any _CodeSignature or CodeResources files/folders
5) From terminal delete .DS_Store files in Payload and YourApp.app folder
6) Use Codesign utility in /usr/bin/codesign to codesign your .app. Here is command for it:

codesign -f -s "iPhone Distribution: Your company Name" PathToYourApp

In your keychain utility find the certificate name that is used to create the distribution profile and match it to first argument in codesign -f -s
7) finally zip the payload to form an ipa

zip -r YourApp.ipa Payload

Upvotes: 2

Related Questions