Reproduction steps:
1. Open a new Unity project on an M1 machine
2. Open Build Settings and switch Platform to iOS
3. Open Project Settings > Player, and notice that the "Automatically Sign" setting is checked by default
4. Fill in the "Signing Team ID" with a valid identifier
5. Build and Run
6. In Xcode, go to Signing & Capabilities, select the Unity-iPhone target, and observe the "Automatically manage signing" setting.
Expected result: "Automatically manage signing" is checked and the correct Team is selected
Actual result: "Automatically manage signing" is unchecked
Reproducible with: 2022.1.0b4, 2022.2.0a5, 2022.2.0a10
Could not test with: 2019.4.39f1, 2020.3.35f1, 2021.3.4f1, 2022.1.3f1, 2022.2.0a15 (See comment about reproducible machines regarding this)
Reproduced on:
- Mac mini (M1, 2020) (macOS 12.0.1 and 12.4)
Could not reproduce on:
- MacBook Pro (M1 Max, 16-inch, 2021) (macOS 12.2)
- Mac mini (M1, 2020) (macOS 12.4 Beta)
- iMac (Retina 5K, 27-inch, 2017) (macOS 12.3)
Notes:
- Not every machine is capable of reproducing the issue and has only been observed on an M1 machine, see comments regarding additional information regarding the devices in the reproducible list
- If the "Automatically Sign" setting is unchecked, then checked again, then the Xcode fields will be correctly set.
- The "Automatically Sign" setting can also be found in Preferences > External Tools. It was noticed that while this was checked in the Project Settings, it was unchecked in Preferences. If it is checked in Preferences before step 3, then the Xcode fields will be correctly set.