![]() It was great it now worked, but why? Luckily, the answer is really close now. To my surprise – it worked! The app icon was now there, smiling at me from the iPad’s home screen: Huh, it works? But… why? I thought this can’t change anything, but went ahead and tried to run the app again, just to be sure. 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: Two copies now There I saw the Media.xcassets folder and right-clicked it and selected Include In Project. 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. csproj – something really funky is going on here! Include those files! Why would the file not exist? It is clearly visible in the asset editor and it is in the. The file for the image set “AppIcons” does not exist. png in the Build Output window and found 18 messages like this: ![]() But out of curiosity I made a search for. It’s redundant but it’s just how VS works.Īt first glance, this seemed to lead nowhere, as I previously confirmed the references were, in fact, present in the. csproj file as well as the Assets.xcassets Contents.json file. Unlike Xcode, VS requires a reference to each iOS asset. You should see a bunch of warnings about missing. Let’s solve this mystery together! Suspicious build outputĪfter a while searching the internet I came onto this Stack Overflow answer by mamcx for a similar problem (emphasis mine):ĭid you check the build warnings when you compiled the app. 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 me know in the comments if I’ve missed anything.Even then, the Simulator still kept showing the same old default iOS app icon. I haven’t tried it myself though, but in theory, it should work just fine. If you like to automate the process of adding an app icon to your React Native app more and feel adventurous, you can try and use an open-source npm package that will do all these steps for you (e.g. Also, make sure your initial image is 512x512px since this size is required when you upload the. The same trick of using an app icon generator will work here as well.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |