Reputation: 81
I am updating an iOS application. I have created new App Icons and everything works except the Open In menu. The Home App Icon is correct, the App Icon in Settings is correct, but the App Icon in the Open In menu is the old App Icon.
My UTI document type shows the new small icon on the attachment.
Anybody know where the old App Icon is hiding?
Thanks, Allen
Upvotes: 8
Views: 1578
Reputation: 1
In Xamarin, make sure your info.plist is pointing to the right spot (eg: <string>Resources/Media.xcassets/AppIcons.appiconset</string>
if it's in the resources folder, or <string>Media.xcassets/AppIcons.appiconset</string>
if it's in the root folder), and make sure the media.xcassets folder is included in your project (that was my mistake)
Upvotes: 0
Reputation: 16224
To add the document type do the following:
1 - In your Xcode project, select the target you want to add the document type to.
2 - Select the Info tab.
3 - Click on the disclosure button for Document Types to open the document types.
4 - Click the “+” button.
5 - In the newly created document type :
6 - Type the name of the document type.
7 - In the “Types” section fill in the UTI for the new type.
8 - Provide an icon for the document.
9 - Click the disclosure triangle to open Additional document type properties.
10 - Click in the table to add a new key and value.
11 - For the key value type: CFBundleTypeRole.
12 - For the value type: Editor.
13 - Click the + button to add another key/value pair.
14 - For the key value type: LSHandlerRank.
15 -For the value type: Owner.
check this question here
Upvotes: 0
Reputation: 1535
Check AppIcon.appiconset of the application is there anywhere old icon also Check Contents.json file all icon are mentioned properly or not.
If you have used UIDocumentInteractionController then check
this link
Check your Info.plist . Is UTI icon declared properly in Info.plist
Upvotes: 0
Reputation: 339
When you enabled the application to show up in Open in...menu for the first time, you provided a separate icon as per this apple guide and samples.
In Step 6, you add the icon separately.
Have you tried removing (-) the icon and add (+) a new one?
Upvotes: 6
Reputation: 1109
Have you checked Resources
folder, there is a chance that you might be using an image from resource in your code.
Also If you are using asset catalog then you should have Images.xcassets
folder under which there will be 2 other folders: AppIcons.appiconset
and LaunchImages.launchimage
inside this folder you should have Contents.json
file open this file and re check your icons.
Additionally clean and build your project (Build -> Clean All)
, also if you are using Xcode
, clean Xcode (Product -> clean)
and try again.
Upvotes: 0
Reputation: 965
Upvotes: 0
Reputation: 566
you write the App Icon in Settings is correct, but I don't know if in Xamarin there is another setting or you mean the info.plist, please check for App Icons - Source : AppIcon, should look like this
if this doesn't help can you, please try to delete the application from device, clean the project if its possible, close xamarin and try the process again.
Hope this should work.
Upvotes: 0
Reputation: 3393
You may have forgotten to update all the icon sizes. There are multiple icon sizes depending on the DPI of the screen. You may have only updated the @2x size and have left the regular size, or vice versa.
Check all icon sizes.
https://developer.xamarin.com/guides/ios/application_fundamentals/working_with_images/app-icons/
Upvotes: 0
Reputation: 8193
Have you tried:
It looks like the icon is somehow cached.
Upvotes: 1