This might be a simple question, but how to add an icon to a screensaver in XCode ?
I'd added a Assets.xcassets to my project, an AppIcon with all versions possible of the image, but it is still shown with the default icon :(
Any hints of what i am doing wrong or missing ?
First ensure your General settings are correct:
In order for xcode to know where to pull the App Icon Source you should set this according to the name you assigned to the Icon Set. By default it pulls from AppIcon within your Assets folder. (As seen in the image below)
Also check all icons for correct dimensions:
If your general settings are correct and you are pulling from the correct icon source. Then the issue may have to do with a one or multiple icon sizes in your Assets folder that are not the correct dimensions. If you are missing icons or have incorrect dimensions the icon will not show up.
Hope this helps.
Finally got it working.
Applying AppIcons to a secreensaver is not enough.
You need to add two png images to the project too:
thumbnail.png – 90 x 58 pixels
thumbnail#2x.png – 180 x 116 pixels
The rest is done automaticly.
Hope this helps, if someone runs into the same problem.
Related
I'm using Xcode 6 and Assets Catalogue to manage my App Icons. Or at least so I thought!
I'm trying to validate my Archive, but keep getting this message:
I have an image of 120x120 in the Assets Catalogue under AppIcon (although labeled as CarPlay iOS8). In fact I have lots and lots of images under AppIcon. I know the 120x120 is there. I promise.
To check, I have deleted it. Added it again. Deleted all the AppIcons, added them again. Clean built.
Still the same error message.
I really am at a loss as to know what to do.
I've looked in the plist and there is no mention of CFBundleIcons in there ..
So, any help would be gratefully received.
Remove the CarPlay icon from your AppIcon image assets.
If you actually want or need a 120x120 icon anyway, this can also be fixed by including a 120x120 icon named AppIcon120x120.png in your bundle as a regular file (outside of the asset catalog), in addition to the CarPlay entry in the icon asset.
Having finally managed to get my windows store app published, it is appearing in the store without its logo. The logo file specified is a PNG file and is 150 x 150. Clearly I need to link this in somewhere else, although I am at a loss to see where. Could anyone point me in the right direction?
Make sure StoreLogo.png (50 X 50) exists is Assets directory & check by double clicking Package.appxmanifest -> Packaging Tab -> You have linked the Store logo
Logo : Assets\StoreLogo.png
In the package-appmanifest file, under the packaging tab there is a "Logo" field. This is where the store logo should be defined.
In Xcode, I am just trying to get an image to show up in my app. I tried taking an image I had previously used in the app and put that into a uiimageview and still, when I build, nothing shows up. I have tried deleting the image file from the app and putting it back in there, I have tried to clean the app and then build. Nothing I am doing works. I just want to be able to put an image in the view and have it show up!
Most propably you're just have a typo in the name of the image - in imageNamed: - it happens sometimes) And it's case-sensitive - so double check the name.
It's possible that the image is not added as a bundle resource. To do this, you should go to your target settings, and then to Build Phases and later check if this image appears in the Copy bundle resources section. If not, add it by pressing the + button at the end of the list.
I don't know why but in the latest Xcode if you add an image, delete it and then add a new one with the same name, this is not added to the Bundle resources.
Please check if your images are added to the target which you are trying to build.
Sometimes, it happens when you have two targets lets say one for DEVELOPMENT and one for TESTING and images are added only at one target.
Please re-check if that is the case.
I'm using OSX's Notification Center APIs for the first time and can't seem to figure out how to make my app's icon to show up in the Notification badge.
The default "your app doesn't have an icon" icon keeps showing up:
Here's what I've done so far
I have created an icns file that includes 512, 256, 128, 32 & 16px versions
dragged the icon into the "App Icon" section of the target's summary
I made to sure to check the box to copy the icon into the project
the plist's "Icon file" section references the correct icon name (minus the .icns) part
Any ideas? The icon doesn't show up when I run the app thru Xcode or when I export an archive either.
I also have extracted the Sparrow.icns file from Sparrow.app and tried using that one instead of the one I made. That didn't work either.
I was able to fix this issue by incrementing the Build number in the General section for the build Target.
You can force the Notification Center to refresh all of the icons by deleting the Notification Center database file (~/Library/Application Support/NotificationCenter/SOME_UUID.db) and then killing the Notification Center process (e.g., from Activity Monitor).
Unfortunately this has the side effect of deleting your notification history, but this wasn't too much of an issue for me.
There's actually an ongoing debate on Apple's developer forums (link, link for people with access) about this. As far as I know, there's currently no real solution, but you can try the following:
Change your app's bundle ID and try it again. If you change it, clean your app, and change back, some people have reported success with seeing their icon show up.
Log in as another user. The caching Notification Center uses may be per-user, so you might be able to get the properly-iconned notifications as a different person.
The folder location has been moved for OSX 10.10+.
Following command takes to you to its new location:
$ cd `getconf DARWIN_USER_DIR`/com.apple.notificationcenter/db
and then
$ open .
Easiest way that I managed to get the icon to show up is change the Bundle Identifier in your project. This works on OSX 10.10.5 and XCode 7.2
(Once notification center picks up the change, you can change it back to your original bundle identifier if you already have a provisioning profile associated with it)
I have solved the issue by archiving my app and adding a copy to my applications folder. When the app is in Application folder, the icon is always visible even you run the app from XCode...
I tried all of the above suggestions but the only thing that worked for me on 10.14 was to delete DerivedData:
rm -rf ~/Library/Developer/Xcode/DerivedData
If anyone still having this issue, and none of the methods above worked, here is how I solved it:
open Notifications from the System Preference (easiest is to open Alfred or spotlight and type Notifications)
find your application and remove it (press backspace/delete button)
NOTE: this may remove all notifications
I am using Xcode 11.5 and I had the same problem. In my case tough, it was sufficient to clean build output, close and reopen the project. Then do a fresh build and let it run again. The icon was there afterwards.
Side note: I've placed the app icon for every size in the assets.xcassets file, except 1024 x 1024 pixels. Don't know if this is relevant or not. Hope that helps.
I want to use icons like opened/closed folder in my table (UITableView)?
UPD:
For example, in Java you can get a standard image "folder" and use it in the FileTree:
new
DefaultTreeCellRenderer().getDefaultClosedIcon()
And also can use the constants of L&F (colors, styles, icons).
In the iOS, I found only these standard icons.
But not folder icons...
I'm not quite sure exactly what you want - the folder icon from iOS? Could you explain a little better?
If it is a folder icon that you want, there's no quick way to get it from code - doing so would use private API's and your app is likely to be rejected from the app store.
If you want something like a folder icon, a good way to get it would be by taking a screenshot of the iPhone simulator and editing it to the right size etc.