Tags changing automatically on iOS build!

Hi,

First let me tell you that game runs fine in the editor. I check for hitting an enemy via a tag comparison and as I said it works correctly in the editor but when I deploy to my iPad and attach remotely with with MonoDevelop, I can see that the same object I’m checking against in Editor and had “Enemy” tag now has another tag, “Door”.

Even before character doing anything, their tag is changed to “Door”.

It’s actually in the main menu and before running much code so I’m fairy certain it’s not my code.

I’m sure there is nowhere in the code that I’m changing the tags.

And my specs: Unity is 5.6.1, Xcode is 8.3.3 and my iPad iOS is 10.3.2 and my macOS (OS X) is 10.12.5
(Tried with both Append and Replace builds)

Thanks

I had the same problem and managed to fix it. After upgrading i went to tags and layers section, and there were a couple of tags that had (Removed Tag) values. Unity claimed that they would get removed on relaunching unity. Just to be sure I added another tag and deleted it, then relaunched unity. Went to tags and layers and the rows with (Removed Tag) were gone. My project upgrade was 5.2.3 → 5.6 → 2017.1. So, yeah probably an edge case situation when you version upgrade 2 years :slight_smile:

Are you loading any resources such as bundles ? maybe something that was bundled in a seperate project, with different tags or layers… that can mess stuff up. Make sure tags and layers match in both projects (if that is what you are doing)