Hi there I'm really having troubles changing the Icon in my Phonegap-App (Cordova 2.5.0)
I put my icons into the folder Projectname/Ressources/Icons.
Then I removed the icons there
But where in the Project do I change the name of the Icon.
I'm getting an error, that the icon-72.png isn't found - but I have no idea where to change the name of the icon from icon-72.png to myicon.png
First, you need to remove old icon references. To do that :
In your Xcode project settings to go Build Phases and find in Copy Bundle Resources these old icon references. Delete them. Then, in your nav bar, go to Product>Clean.
Now build your project. It should work.
Related
I'm trying to build a cordova (version 4) based project with Xcode (for iOS). Everything is working until the process to validate the archive.
I'm build for iOS v > 7 and always have the error:
"iTunes Store operation failed: missing required icon file. The bundle does not contain an app icon for iPhone of exactly '120x120' pixels in .png format for iOS versions.
The thing is, there is such file, as shows in the printscreen!
printscreen with Xcode nav, with the Resources/icons folder
I'm sure the file icon-120.png is exactly 120x120px (I have saved several times it, using Photoshop, Fireworks, https://github.com/AlexDisler/cordova-icon plugin).
I don't know if I have to configure anything else. I have also reloaded Xcode, nothing seems to work by now :-/
go to Xcode, view -> Navigators -> Show Project Navigrator
Go to Resources in the project navigator
Click on Image-xcassets
you will see all the icons that the xcode is using to build. Most likely, you will a lot of warning sign attached to each icon. read the required size from each warning. right click -> go to finder, then change the icon size from preview app as required.
repeat for each icon with warning till you resolve all of them.
I followed the docs for creating the ios application using Rhomobile.
I have all the icon images placed inside icon folder.
But after opening the application in xcode, it shows the rhomobile default icon.
How and where can i change the icon ?
click on your project name go to TARGETS>>summary>>App icon.
Now drag your icon.
When you runs the command to create the xcode project, in your rhodes folder, one icon.png image is generated. You need to replace that image with yours.
Path : <rhodes_path>/platform/iphone/icon.png
Then you can open the xcode and start building the app.
Okay, I am a noob. It must be simple but I stuck here.
I do rigth-click and choose 'select file'.
After I choose the file the dialogue appears:
I want to keep my icons not in the root directory. But I can't figure out how to do this. I tried different ways, even create project from scratch...
Please help.
When you bring image assets into Xcode they will all be in your application bundle's root directory at run time.
It appears that you've added a file named "icon#2x.png" to your project at one time already. Go to the project's summary page in Xcode click Build Phases and then expand the section titled Copy Bundle Resources. There you'll find the reference to the resources that will be copied to your bundle at run time.
More on bundle structures here:
https://developer.apple.com/library/mac/#documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html
Anyway, the way I've done this in the past is to:
Remove the existing image duplicate from Xcode and from the folder structure in Finder.
Add a new folder in Finder call it "/AppIcons" (or whatever).
Copy all the app icons to that folder in Finder.
Drag the "/AppIcon" folder into your XCode project. I typically put images in an "/Images" subdirectory in the Xcode project. Again you can put it wherever you'd like.
In Xcode on the project summary panel, add your app icons from the folder "/AppIcons" by dragging / dropping or by right clicking and adding them as separate files.
Alternatively in the past when I've had problems with this sometimes Xcode will copy the app icons to the root project directory. If that happens, I make sure that I have the "/AppIcons" folder structure on disc (in Finder) and in my Xcode project. I add the app icons to the project, then move them to /AppIcons in Finder, and re-reference them all over again.
Your Copy Bundle Resources should then have the proper file reference. Note that my apps icons go in "/Images/AppIcons"
Good luck!
I would add the image files to your project with the name icon#2x.png. To do this right click where you want to add the files in xcode and click add file/s. Then search for your image and add them using the dialogue that pops up. - there is a check box so that you can either copy them to the projects destination folder which will copy them into you project folder or leave it unchecked (inadvisable) which would reference it's current location on your HDD. Make sure the file doesn't already exist in the project before doing this!
EDIT:
Sorry I forgot to mention then drag and drop the file from within xcode onto the image location box.
In XCode 4 (I'm using 4.6.2) you will get this confusing message if you've just moved the target's info.plist file, but not corrected the location at the top of the summary panel. Fix this and the icons will reappear, assuming they are added to the project, or if not you should now be able to drag them in without xcode insisting on making extra copies.
This tends to happen when you're starting a project and sorting out the mess of default file locations that xcode gives you. I like my project structure to be 99% the same as the file system structure.
This is an easy fix. If the image you want as your App Icon resides outside of the root of your project, when you get that dialog just click "Yes", and then click delete on the newly created file in the root, and "Move to Trash".
The reference is still there and works without a hitch, since the file will still be in the root at runtime
I want to change my App icon, so, I delete (move to trash) Icon.png and Icon#2x.png in the project navigator, in summary view I have added the new icons and they are added to my project, and I see them in the summary
But, when I install the app, the icon is the previous one. How can I clean the previous icon in order to install the new one?
Sometimes when building direct to the device it doesn't work first time.
I find I have to clean the project and delete the app from the device/simulator to get the new icon.
Just Clean And Build And Delete The app from Simulator . it will work
Just do this... This will solve your problem..
You have to reset the simulator.
I understand many different sized icons for my app are required for App Store Submission according to Apple's Documentation. However, I am unsure on how to include them? Do I just add them as Icon.png to the Binary?
This is much easier to handle in xcode4 if you have it, just click on your project (should be at the top of the project navigator window) then go to the summary tab, and you can select the icons from there. Then when you build your app, they will be included in the binary
You include them in your project and reference them from your info.plist file under the icon files section.
Here is an updated list of the filenames and sizes you can add: http://www.weston-fl.com/blog/?p=840/