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

  1. Resolution Note:

    Plugin loading timing works as designed. In our tests IUnityInterfaces pointer is acquired successfully, so we are unable to reproduce the issue.

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.