![]() 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. It is said that half of this month has passed, but this is the first blog of this month, we still need to work hard, study hard, blog hard, share knowledge, share happiness, four articles a month must be realized.Even then, the Simulator still kept showing the same old default iOS app icon. Of course, I would like to thank God for writing such a convenient tool. This blog is probably the content, mainly to share this tool called cartool and the pictures in the scientific organization project. The method of use is cartool Assets.car outputDirectoryįirst unzip the ipa, then display the content of the app package, copy Assets.car to the desktop, and then you can be like the above picture, of course, you must create a new folder on the desktop, if you want to unzip the image directly to the desktop Don't mind! postscript This is an open source software that can be downloaded from github. At this time, you need to use a command line tool called cartool. Whether it is our own project or not, there may always be such a demand, then if the pictures are all in Assets.car How can I get it from GitHub? Direct decompression is not possible. This file is a compressed file.ĭuring the development process, we will definitely encounter a situation that is to unzip an ipa package to see what pictures are in it. Assets.car fileĪfter talking about Assets.xcassets, let's talk about the Assets.car file generated by it. I remember the relationship of several times. If you put it in xcassets, After packaging, these images (except AppIcon and LaunchImage, which are directly placed in the package) will be compressed into a file of Assets.car, which greatly reduces the size of the package. If you put the picture directly under the project directory, the picture files will be scattered in the package after the project is packaged, and the picture will not be compressed. Here I want to focus on the fourth point, the size of the package. The picture will be compressed after the project is packaged.Different resolution pictures are easy to manage.There are special formats for pictures with different functions.The benefits of putting pictures in xcassets files: " filename" : "sPECIALOFFERIconSurvey1.png", The basic information of the file is the same as AppIcon, just drag your own picture to the corresponding position, and then use it in the project The content is as follows contains the pictures in this picture set. This Image Set is essentially a folder, which contains pictures of different resolutions and a Contents.json file. If you just want to add a common picture to the project, choose New Image Set. You can also create different LaunchImage and AppIcon for different devices. When processing AppIcon, you can also put LaunchImage, just right-click in the AppIcon column to create a new one. You can drag the application icon of the corresponding size directly to the place of the corresponding size on the right. In this file, there will be an AppIcon file by default. Classification, such as putting the functions of a module in a folder. In order to organize it more clearly and clearly, you can use folders to classify it, which can be classified according to functional modules. All the pictures in the project can be placed in it. If there is no special requirement, there is only one xcassets file in a project. Of course, you can also create it yourself: When you create an empty project, an Assets.xcassets file will be generated for you by default. Because the size of the code is very small, it can be said that the main influence on the size of the final project is the picture resources in the project, so how to organize the picture resources in the project It seems particularly important. In iOS development, the size of the final project has a lot to do with the pictures in the project. My blog has moved, and the new blog address: Write in front Please indicate the source for reprinting.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |