Last week I received a message from Fons Sonnemans who is porting his awesome Minesweeper 10 game from UWP to Uno Platform. https://pfmgxna.weebly.com/blog/mongodb-app-mac-os. He said he was facing a weird issue with his app on iOS, where the app icon was not showing up after deploying. He also posted a screenshot of the issue on Twitter:
After years of trying the commands above (literally, 2-3 years), with almost no success due to macOS strong caching. I've discovered that the BEST, most RELIABLE way to rebuild the icon cache in macOS is to right click the app, 'Get Info', drag ANYTHING to its icon in the top left of the 'Get Info' window (you can drag a FOLDER to its icon if you want to) to assign a new temporary icon. Even then, the Simulator still kept showing the same old default iOS app icon. I asked Fons if he would be willing to provide me access to the repo so that I could run it locally on my Mac, to check if it is not some kind of caching issue – but that wasn’t the case either and the icon was still missing. 1.First, click the Apple logo in the top left corner of your Mac Desktop and select System Preferences, then select Extensions. 2.Toggle on the OneDrive Finder Integration to enable Finder overlays. 3.You’re all set. Open up your OneDrive folder in Finder to see overlays on your files and folders.
I can't get the Icon of my iOS (#Uno/#Xamarin) app correct. It shows the default icon instead of my AppIcons. #help#dtapic.twitter.com/6XiuAJLmQe How to wrap my windows apps run on mac.
— Fons Sonnemans ?? (@fonssonnemans) May 7, 2020
I originally thought it could be caused by a low iOS version target (which has caused me issues before in other things), but surprisingly it was not that. In the Visual Studio asset editor and
Info.plist all seemed perfectly fine. Even the .csproj contained all the <ImageAsset> references:
Even then, the Simulator still kept showing the same old default iOS app icon. I asked Fons if he would be willing to provide me access to the repo so that I could run it locally on my Mac, to check if it is not some kind of caching issue – but that wasn’t the case either and the icon was still missing.
Let’s solve this mystery together!
Suspicious build output
After a while searching the internet I came onto this Stack Overflow answer by mamcx for a similar problem (emphasis mine):
Did you check the build warnings when you compiled the app. You should see a bunch of warnings about missing .png files in the AppIcon image set.
Unlike Xcode, VS requires a reference to each iOS asset .png file in the .csproj file as well as the Assets.xcassets Contents.json file. It’s redundant; but it’s just how VS works.
At first glance, this seemed to lead nowhere, as I previously confirmed the
<ImageAsset> references were, in fact, present in the .csproj Student consult app mac download. file. But out of curiosity I made a search for .png in the Build Output window and found 18 messages like this:
The file “[email protected]” for the image set “AppIcons” does not exist.
![]()
Why would the file not exist? It is clearly visible in the asset editor and it is in the
.csproj – something really funky is going on here! Penndot cdl manual to download.
Include those files!
If Visual Studio thinks the image files are missing, let’s include them “by force”! In Solution Explorer, I clicked the Show All Files button on the top. There I saw the
Media.xcassets folder and right-clicked it and selected Include In Project. What I got were now essentially two copies of the same images in the project – once as part as the Asset Catalogs and once in the Media.xcassets folder:
I thought this can’t change anything, but went ahead and tried to run the app again, just to be sure. To my surprise – it worked! The app icon was now there, smiling at me from the iPad’s home screen:
But… why?
It was great it now worked, but why? Luckily, the answer is really close now.
I opened the
.csproj https://high-powerhs.weebly.com/blog/rosetta-stone-totale-5013-full-crack-mac. file to see what is in there. At first glance it seemed Visual Studio just included the same files twice, just without the <Visible>false</Visible> modifier, so the new copy was actually visible in the Solution Explorer.
Looks the same… but what if we look at the two side by side?
Aha!
ipad vs iPad ! Could it be the uppercase? The Contents.json file referenced the lowercase versions of the image files, but .csproj originally used the one with uppercase “P” in the filenames.
Mac Ios Icons
This would normally not be a problem, as Windows is case insensitive, but macOS/iOS is not! It turns out that while copying the project files to the output, Visual Studio uses the casing specified in the
.csproj file, not the one which the files had originally. I confirmed this by going into the build cache folder on Mac (/User/Library/Caches/Xamarin/mtbs/builds):
I deleted the build cache, reverted all changes, and then modified the
.csproj file to use lowercase versions of the file names in <ImageAsset> elements. Rebuilt and deployed and app icon was there again – but, as the masked magician would say, now we know the secrets!
Mystery solved!
The main takeaway I have from this puzzle is that file casing matters when building cross-platform apps, especially because both Android and iOS are Unix-like and are case sensitive. Also, I will try to remember to read the build output warning messages more closely, as they were telling the truth all along!
Related
In case you are puzzled to find a particular App or certain Apps missing from the Launchpad on your Mac, you will be pleased to know that most problems with the Launchpad on your Mac can be fixed by resetting the Launchpad.
The Launchpad On MacMac App Icons Missing App
The Launchpad on your Mac is intended to provide an iOS like environment, making it easy to see, access and manage all the Apps on your Mac in one convenient location.
Just like an iPhone, the Mac Launchpad displays a screen full of neatly arranged App icons. In case there are more Apps, the Launchpad creates another page of icons that can be easily accessed by swiping on your Trackpad or by clicking on the page indicators at bottom of the Launchpad.
As you must have noticed, the Launchpad never appears sluggish, lags or drags in any way. Every time you click on the Launchpad, it instantly displays App icons, that too in high resolution graphics. This lightning speed of Launchpad is made possible by the cleaver manner in which the Launchpad is programmed in MacOS.
The Launchpad maintains its own dedicated database which includes the App icons, information about where the Apps are located in the file system, where the Apps need to be displayed and other related information. This allows the Launchpad to display App icons with lighting speed, which would not be possible if the Launchpad was programmed to build thumbnails for App icons, each time it was launched.
Sometimes the Launchpad on Mac is known to suffer from minor failures like Deleted Apps appearing in Launchpad, Apps not appearing in the Launchpad or Apps missing from the Launchpad. Luckily, all such programs can be easily fixed by resetting the Launchpad.
Recover Apps Missing From Launchpad On Mac
Since, the Launchpad relies on its database to store all the information needed for it to perform, most Launchpad related problems can be fixed by forcing the Launchpad to rebuild its internal database.
Mac App Icon Missing
This can be done by deleting the Launchpad Database and then restarting the Launchpad. When the Launchpad is unable to find its Database, it scans for the Apps on your Mac, grabs their icons, and rebuilds its internal Database File.
1. Left-click your mouse anywhere on the screen of your Mac. This will reveal the Go Option in the top menu bar of your Mac.
2. Next, click on the Go Best app on mac to edit photos. option in the top menu-bar of your Mac.
![]()
3. While you are still on the Go option, press and hold the Option key on your Mac and then click on the Library option that appears when you press down the Option Key.
Note: Press the Alt Key in case you are using a Windows keyboard with your Mac
4. On the Library window, open the Application Support Folder by double-clicking on it.
5. Next, open the Dock Folder by double-clicking on it.
6. Inside the Dock Folder, you will see files ending with .db, simply move all the files ending in .db into the trash-bin (See image below).
Download minecraft on mac computer. 7. Next, Click on the Apple icon located in the top menu bar and then click on the Restart… option.
Mac Os Icons
8. You will see a pop-up, click on Restart Spotify block ads apk. again.
Mac App Store Icon Missing
Once your Mac restarts, you should be able to see the missing App icons back in the Launchpad.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |