How to reproduce:
1. Build the user’s attached “iOSPluginLoadTimingIssue.zip” project for iOS platform
2. Open Xcode project and put a breakpoint at <Xcode project root>/Classes/UnityAppController.mm line 120 (UnityAppController > startUnity: > UnityInitApplicationGraphics)
3. Put a second breakpoint at <Xcode project root>/Libraries/Plugins/iOS/NativeFunctions.mm line 10. (Anywhere inside the UnityPluginLoad function)
4. Run the project on an iOS device and observe the result
Expected result: UnityPluginLoad is happening before startUnity
Actual result: startUnity is happening before UnityPluginLoad
Reproducible with: 2021.3.32f1, 2021.3.35f1, 2022.3.19f1, 2023.2.9f1
Not reproducible with: 2021.3.31f1
Could not test with: 2023.3.0b6 (Xcode errors after project upgrade)
Reproduced on:
VLNQA00494 - iPhone 14 Pro Max, 16.3.1 iOS
VLNQA00358 - iPhone 12, 14.1 iOS
VLNQA00392 - iPad (9th generation), 15.0 iOS
VLNQA00310 - iPad Pro 12.9", 13.4.1 iOS
Not reproducible on: No other environment tested
Notes:
- not reproducible with “Development Build” enabled
- ”cout” can be added in the code near breakpoints to see the result better