Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

ios App icon problem

$
0
0

Hi,

so i'm developing an ios app using xamarin windows and i almost finish it.
i wanted to add an icon to the app so i followed this link : https://docs.microsoft.com/en-us/xamarin/ios/app-fundamentals/images-icons/app-icons?tabs=vswin

i went inside the solution Explorer Asset Catalogs > Media i opened it and i add all the icons size.

then i opened the Info.plist and went to the tab Visual Assets > App Icons and i selected the media that i just created in the previous step.

everything look good but i tested the app in a real device and also with the simulation but the icon never appear.

i spent like a half of a day searching in the forum and looking into my code in order to figure out what's the problem and i then i figure out what was the problem.

the problem came from the generated file Info.plist . i went under my project solution and opened it using Notepad and that what i discovered:

the link to the Media.xcassets is wrong, it says that it's under the Resources but it wasn't the case.

....... <string>Resources/Media.xcassets/AppIcons.appiconset</string> .......

the Media.xcassets was directly under my project.

so what i've done is to remove the Resources from the Info.plist and test it after that and it work perfectly on both the simulator or in the real iphone devices.

....... <string>Media.xcassets/AppIcons.appiconset</string> .......

i don't know if i miss something or it's a bug ?
it bother me because every time i change something inside the Info.plist using visual studio the next Building will regenerate the Info.plist with the wrong link so i have to manually change it.


Viewing all articles
Browse latest Browse all 204402

Trending Articles