Search Issue Tracker
By Design
Votes
0
Found in
2021.3.35f1
2022.3.19f1
2023.2.9f1
7000.0.0a1
Issue ID
UUM-62689
Regression
Yes
[iOS] UnityPluginLoad fails to acquire the IUnityInterfaces pointer when starting the app
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
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
- White lighting artifact when a point light with a small emission range and "Hard Shadows" touches an object while a directional light with "Soft Shadows" and another point light are present
Resolution Note:
Plugin loading timing works as designed. In our tests IUnityInterfaces pointer is acquired successfully, so we are unable to reproduce the issue.