App settings attributes missing in "Settings" app of device - iOS - iphone

I had made a settings.bundle file in my project with some attributes in it. It was working fine and I could find all attributes in device's "Settings" app until I moved the file from one folder to another in my project hierarchy. Now, "Settings" app does show my app name in it, but there are no attributes in it.
Edit:
I have cleaned, build my project several times. Also deleted app from device, reinstalled it but the problem is still there.
I need to know the problem and reason why it has happened.
Thanks in advance.

You can't put the Settings bundle wherever you want. It needs to be in the top level diretory of your app's bundle.
from the manual:
A Settings bundle has the name Settings.bundle and resides in the
top-level directory of your app’s bundle.

Related

Why app's icon shows blank in iCloud settings?

I'm currently adding iCloud support for my app, but i noticed that in the iCloud -> manage storage settings my app's icon is missing. I've added the Icon-Small.png/Icon-Small-50.png plus their #2x versions in the xcode project in the "Resources" folder, then added their names in Info.plist but it still shows white.
What am i doing wrong?
Once you show up in Settings, a little like registering your device for push notifications, there's some caching happening. You should try resetting all settings and installing fresh. Also if it's a physical device, not the simulator, try to delete the app, set the date forward by over a day, install fresh, and it should bypass that cache.
Did you build the app, compile it, and added the icon very later on? This is usually a caché issue. The best way to go around this is to uninstall the app from your device and do a clean build.

InAppSettingKit custom bundle is not recognized on device

I set up InAppSettingsKit and wish to have only certain volatile settings available from within the app. These would not be the same as what is found in settings.app from springboard. I added a bundle, InAppSettings.Bundle and created the appropriate plist files. It works as expected in the simulator but acts as though my new bundle does not exist on the device. The device shows only the same as the settings.app properties in settings.bundle/ root.plist.
How do I get the new bundle into users' devices without deleting and reinstalling the app?
In this case, it was a "case" of developer error. Apparently the case of the characters in the name of a file are not specific in the simulator. The files in my bundle were not correctly named. I had root.inApp.plist when it should have been Root.inApp.plist. Worked in simulator,not on the device.
Once I realized this and renamed the file, the device read and displayed the correct file as intended.
That was a waste of about 5 hours chasing my tale. I Hope this info helps someone avoid this same annoying oversight.

how to update app icon for my iPhone app?

We have an updated version of our app icon to replace the existing one, we tried to simply overwrite the old one (image file) with the new version (image file), build and then deploy, what we found on the device is still the old icon being used for our app. Is this a normal behavior, what's the "official" steps for such needs? Note that we are still in development stage, which is why we need to update our app icons based on the new art work done by our designers.
Even i faced the same issue ,& its just because the app still has the reference to the old icon file or may be it has not been deleted from the resources, you may have opted for reference only while deleting the app icon.
It's simple ,
For easy followup I have attached the Screenshots too : ;)
1) Delete your application icon.png from the app, selecting an option "Also Move to Trash" .
2) Now Clean build & all the targets.
3) Reveal in finder the resource folder in your app & first copy your New App icon over there.
4) Now, drag & drop the new application icon from application finder to your Resource folder, make sure to check the option to copy items.
5) Also, prior to submitting the application to AppStore, make sure to do changes in your .plist file.Add value icon.png value to Icon file key.
Once, you are done with all the steps, just reset your Simulator & Run the app. I am sure that would solve your problem.
First of all delete the icon.png then select the image you want to create the icon select and drag it and put the following place and clean up your project(Cmd + shift + k).
Now the run the project and it change the icon of the application.
i think it's helpful for you
do cmd+k (to clean) then cmd+r (to run)
Clean build folder first before you redeploy, Xcode cache some of the data. To clean build folder, Go to Products, and hold option, there will be an option to.
Reference Apple Technical docs, about Troubleshooting section. That technical document gives details about this icon issue.
The following is what I encounter.
Error: Invalid Image Path
Your application's information property list references one or more icon images that were not included in the compiled bundle.
If your application is using asset catalogs to manage its icons then the information property list should not include any icon related keys; they will be added at build time by the asset catalog compiler.
Open the information property list for your app's target. It can be found under the Info tab in the project editor or in the File Navigator where it will be named either -Info.plist or Info.plist, where is the name of your app.
Remove the following keys, including device specific variations.
“Icon file” (CFBundleIconFile)
“Icon files” (CFBundleIconFiles)
CFBundleIcons
My project use App Icons Source to manage app icons, but the Info.plist also contains Icon files, and images in the resources.
More ...
If you encounter following case, reference that apple docs, it will help you.
The wrong icon appears in the App Store
Your application bundle includes additional images which are being detected as valid icon images.

How do I change the default icon of iPhone application programmatically?

My question is about changing default icon.png content programmatically.
I have free application with Icon (with Lite/Free word inside)
I have In-App purchase inside this app (buy full version)
I click and accept this purchase
Some app content is unlocked
Also, I want my default Icon.png to be changed as well (replace it with NON Lite/Free word inside for example)
I saw this approach in some games but did not buy them to see the results.
You cannot change the application's icon at runtime. This is because it is in the application's bundle, which cannot be modified. Access to the application's bundle is restricted for security. Each bundle is code-signed by a certificate obtained through Apple's developer portal, which guarantees this condition.
To conclude, any files inside the application's bundle, like icons, or the Info.plist file, cannot be changed.
I am sure since you have purchased it you don't have source code.. but still try to look for image icon which must be in application folder.. just delete that icon and put whatever image you want with the same image name.. Also for that one.. you might have to install folder navigation icon. And then you can look in which folder it is install.. I ain't sure but it might be something called /app or /data. I am most of the time playing with android so I know for android where to look.
Thanks

Delete resources that are not there iphone

I'm trying to import a Default.png in my application but it's not getting imported and showing me a message that it's already there whereas there's no Default.png already present in my resources.
This might be because I by mistake had assigned my current working app Id and provisioning profile to an another application too since when it had started showing me that app's Default.png before loading my application. To remove that I had done restarting, cleaning and managed to remove the appearence of that Default.png, but because of this message I am feeling that it's still there and I want to remove it or the Default.png that's not there in my resources but is depicted to be there in my resources.
I have double-checked and there is no Default.png in my applications' resources.
Can anybody please help?
Thanx in advance.
When you delete something from the Xcode project, it will ask you if also you want to delete it from disk. You might have chosen to delete a reference only.
So herhaps it's still in the project folder on your harddrive. Check that and remove any Default.png files before adding the new one in Xcode.