Modify custom entry in Info.plist - ios

I have a custom key in Info.plist that I would like to modify during resigning. Is this possible?
I have tried unzipping the ipa and setting the value for my custom key using terminal but when I tried to side load it through iTunes, it did not install.

Got it. Modifying Info.plist invalidates the signature on the ipa. I just had to resign after modifying the file and it works now.

Related

Getting info.plist for enterprise IOS application

I am developing an IOS application through an enterprise account. This application will be set on a specific website to be downloaded.
I archived the application from Xcode, and got the ipa file, but I still need the plist file.
Any idea how to get it?
You need to check mark option include manifiest file while creating ipa.So xcode will generate file for you. Otherwise you can get plist file from internet and edit according to your application
Honestly i didn't get your question but if you want to access .plist file after archiving. You have to
Unarchive your iPA file.
It will create a "Payload" folder, inside it you will find .app file.
Right click on it, "Show package contents" and you can see your plist file.

iOS entitlements where is it stored inside the .app

I have an iOS app and I couldn't find entitlements.plist or somethig inside the app but I can find info.plist and the contents of entitlements are not there too.
when I run the below command in terminal I am getting the entitlements.
codesign -d --entitlements - test.app
so Where is it stored ?
Its definitely not stored in info.plist I checked it out.
Help me understand where is it ?
Usually it's in a different file- projectName.entitlements
Inside embedded.mobileprobision under the 'Entitlements' key.
In addition, The Mach-O executable (stored inside the IPA archive) may have an embedded copy of the entitlements dictionary.
p.s. Apple's Technical Note TN2415 specify: "When a profile is used for code signing, Xcode transfers the profile's associated entitlements to the resulting code signature of the .app".

Error publishing on appstore - Storyboard file 'MainStoryboard_iPad~ipad.storyboardc' was not found

I have the error: "ERROR ITMS-90029: "Storyboard file 'Main_iPad~ipad.storyboardc' was not found. Please ensure the specified file is included in the bundle with any required device modifiers appended to the filename.", When I try to submit to the app store from xcode.
I've tried all solutions that I found posted in stackoverflow with no luck.
I've removed the value for the key Main storyboard file base name in the project's info.plist file. and also I've delete the entry since it's no design for ipad, but it did not work.
I generated the IPA file and try to submit with aplication loader but produces the same error.
I was having the same issue and I resolved it by doing this:
Remove Main_iPad~ipad.storyboardc from info.plist (you already did this)
Remove your Apple ID in account Xcode->Preferences->Accounts
Close and reopen Xcode.
Add your Apple ID again (If you were using a #me account, change it for #icloud).
Clean, build, archive.
Upload to iTunes from Xcode or export the IPA and then use Application loader. In my case it worked unchecking the bottom left corner option ¨send bit code".

IOS Application duplication

I would like to duplicate a application on IOS, so i've already tried by editing the CFBundleIdentifier, CFBundleDisplayName, CFBundleExcecuteble and CFBundleName.
Then i recompile the info.plist, and zip the archive to a .IPA
When the IPA is being installed (ipa installer, ifunbox), the installer says: "No valid ipa"
Application is Whatsapp version 2.8.7
Thanks for any comments.
Whatever you are trying to do is not leagal. And there is no simple way to do it even if it can be done. There is something called Code Signing, so simply changing Bundle Identifier won't help you.
You only need to modify CFBundleDisplayName and CFBundleIdentifier in the Info.plist file inside the IPA.
BUT in order to install you also need to have AppSync installed on the device, which removes checks during installation

Change application's name

How can I change the application's name without changing it's bundle identifier?
I've tried changing the bundle identifier in the .plist file so it will remain the same, but when trying to run the application i get an error in xcode stating:
No such file or directory (/Users/myUserName/Library/Developer/Xcode/DerivedData/OLD_APPLICATION_NAME-hhknzcpmarwfwldirezkiexvenqp/Build/Products/Debug-iphoneos/NEW_APPLICATION_NAME.app/NEW_APPLICATION_NAME)
This only happends when running on device. On simulator it works fine.
Found answer to my own question. See answer below as I can't accept it for another couple of days.
So I had to change the app's name after having changed the provisioning profile to one that didn't match my application's name.
So I only needed to change the name of the application that's being displayed on the device home-screen.
This can be done by only changing the Bundle Display Name, found in the .plist file. Thanks for your quick responses anyway.
You should change the CFBundleDisplayName in the apps Info plist file. This value is what the iOS spring board uses underneath each app. This can also be localised.
Change the bundle name .bundle identifier is for the provisioning profile.

Resources