Unity packs ab package on Mac and reports Moving file failed. … No Such file or director

Environment: Unity2019.4.10f1
Error description:

insert image description here

The interesting thing about this problem is that it only occurs when the environment is switched to IOS. And there is no such problem on another mac.

Then I saw that there are many similar error reports on the Internet. Of course, everyone has a variety of solutions. For the time being, it is marked as a variety of different forms of problems that lead to the same error report.
The following are references to other problems that cause this error,
1: (Resource format problem.) Because the corresponding ab contains pictures in dds format. This is no problem when playing on android, but it reports an error on ios. Changing dds to png will be fine.
2: (Resource naming problem.) A file with the same name appears in the bundle (conditions: the file name is the same, placed in different directories, and packaged into the same Bundle).
3: (Resource naming problem.) After searching, it is found that the animation resource psb file used by the preset is named in Chinese.

Most of the problems are related to resources, because my error file happens to be a psb file, and after checking, I found that it does contain some Chinese characters, and even some resources contain special characters such as spaces, but after adjusting the resource file, this problem still has not been solved.

So referring to some macs that can display resources normally, it is judged that it may not be a resource problem, and at the same time comparing the configuration of the two computers and the configuration of the project, they are basically consistent.

The reason for my error:

The places that can be seen are excluded, and only the places that cannot be seen can be tested. That is, the cache file of the project is only known to be cached, but it is basically not processed at ordinary times. Then I tried clearing all cache files and recompiling. problem solved.

that's all.

Guess you like

Origin blog.csdn.net/qq_39860954/article/details/118180600