srinivas n
srinivas n

Reputation: 640

Change app icons with only IPA file provided

How can I change app icon after creating the ipa file?

I am following the below steps:

  1. Rename the .ipa to .zip, and unzip the archive.
  2. Inside should be a folder called "payload", and inside that folder should be your application archive.
  3. Change the app icons file
  4. Re-zip the archive
  5. Rename the .zip to .ipa
  6. Re-sign the .ipa

But the ipa is not installed. It shows Modified (add or delete) file error.

Upvotes: 1

Views: 6203

Answers (1)

Denis Kreshikhin
Denis Kreshikhin

Reputation: 9410

  1. Extract IPA (it contains the single Payload directory):
$ unzip MyApp.ipa
  1. Print content of Info.plist
$ plutil -p ./Payload/MyApp.app/Info.plist

 "CFBundleIcons" => {
   "CFBundlePrimaryIcon" => {
     "CFBundleIconFiles" => [
       0 => "AppIcon60x60"
     ]
     "CFBundleIconName" => "AppIcon"
   }
 }
 "CFBundleIcons~ipad" => {
   "CFBundlePrimaryIcon" => {
     "CFBundleIconFiles" => [
       0 => "AppIcon60x60"
       1 => "AppIcon76x76"
     ]
     "CFBundleIconName" => "AppIcon"
   }
 }
  1. Replace all listed icons in ./Payload/MyApp.app/ with new icons.

  2. Zip modified ./Payload to new IPA

$ zip -vr NewMyApp.ipa ./Payload
  1. NewMyApp.ipa with new icons is ready for use

Upvotes: 0

Related Questions