NullReferenceException errors

I’m sure it was this change to the file that caused the problem:


  • The scene runs normally in Unity engine
  • However, when the project is packaged
    as a PC game pack or Apk file, there
    are many NullReferenceException
    errors when running into this
    scene (map1.unity)
  • It was a bug in a project I was
    working on with someone else, and we
    couldn’t do anything about it

Would you please tell me how to solve this problem and the possible cause of the problem, thank you very much


Here is the github repository address for the change:
https://github.com/ncuhome/dream-of-the-mirror/commit/292af385781aab52db9a59fed7160adc3703dc80


Here is the error log:
[193503-player-log.zip|193503]

It is gameObjectFindWithTag problem, as for why the packaging error should be the fetch order is different, the solution is to use manager instead