Search Issue Tracker

Active

Votes

0

Found in

2022.3.68f1

6000.0.62f1

6000.2.11f1

6000.3.0b9

6000.4.0a4

Issue ID

UUM-126025

Regression

No

[iOS] [macOS] Method gets stripped when building for iOS using XCode 26.0 with preserve properties

-

How to reproduce:
1. Open the “ReproProject.zip“ project
2. Open the “Sample“ scene
3. Build for iOS
4. Open the “Unity-iPhone.xcodeproj“ in Xcode 26.0
5. Deploy to a device

Expected result: Success messages are displayed in the log
Actual result: Failure messages are displayed in the log

Reproducible with: 2022.3.68f1, 6000.0.62f1, 6000.2.11f1, 6000.3.0b9, 6000.4.0a4

Reproducible environment: macOS 15.7 (M4 Max)
Not reproducible environment: No other environment tested

Reproducible with these devices:
macOS 15.7 (M4 Max) Player with Xcode project + IL2CPP Build Support
VLNQA00626, iPhone 16 (MYE73QN/A), CPU: Apple A18 Pro, OS: 18.5
VLNQA00395, iPhone 13 (MLPJ3ET/A), CPU: Apple A15 Bionic, OS: 18.6.1
VLNQA00416, iPhone 13 Pro (MLVA3ET/A), CPU: Apple A15 Bionic, OS: 17.6.1
VLNQA00491, iPhone 14 Pro (MQ083PX/A), CPU: Apple A16 Bionic, OS: 16.0
VLNQA00535, iPhone XS (MT9F2ET/A), CPU: Apple A12 Bionic, OS: 17.6.1

Not reproducible with these devices:
VLNQA00319, Google - (Pixel 4), Android 13, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640

Notes:
- Does not reproduce with older Xcode versions (older than Xcode 26.0) (tested with Xcode 16.2)
- Not reproducible in the Editor, Windows IL2CPP Player, macOS IL2CPP Player
- The stripped method has "UnityEngine.Scripting.Preserve" attribute, and the “link.xml“ has “preserve = “all“ “
- Not reproducible with macOS 15.7 (M4 Max) Player with Xcode project with Mono Scripting Backend

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.