Search Issue Tracker

Fixed in 2020.1

Fixed in 2019.3

Votes

0

Found in

2019.3

2020.1

2020.1.0a21

Issue ID

1215138

Regression

No

[iOS] Player crashes on Landscape orientation when using UAAL in Native Swift App

iOS

-

To reproduce:

1. Download attached "SwiftUnity.zip" file and open "UnityHybrid" project in Unity
2. Open "BackgroundScene" scene
3. Build for iOS in "Build_iOS" folder
4. Open the Xcode workspace "HybridApp.xcworkspace" in the Root of the repository
5. Do steps 5 and 6 from this page https://forum.unity.com/threads/integration-unity-as-a-library-in-native-ios-app.685219/
6. Change the Xcode target to "NativeSwift" and deploy it to the Device
7. Search for any Song and tap it
8. Put the Device in Landscape mode
9. Press the green “Play song” button

Expected result: Song starts playing
Actual result: Player crashes

Notes:
- This issue is reproducible only on iOS 13.1 and newer
- If your build fails due to "UnityFramework" missing, build the "UnityFramework" and the "Unity-iPhone" targets first, then build "NativeSwift" again
- This issue is not reproducible in Simulator mode
- It is impossible to check for Regression on lower versions than 2018.3.0a8 because the whole Project becomes corrupted
- Stacktraces are attached in Comments section

Tested with:
- iPhone 7, iOS: 13.1 - Reproduced
- iPhone XR, iOS: 13.2.3 - Reproduced
- iPad Pro (12.9-inch) (3rd generation), iOS: 13.1.2 - Reproduced

Reproduced on Unity 2019.3.0a8, 2019.3.0f5 and 2020.1.0a21

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.