Search Issue Tracker

Won't Fix

Votes

0

Found in

2017.1.1p3

Issue ID

966626

Regression

No

[iOS] Build crashes when WebCamTexture.Play() is called

iOS

-

As soon as the Play() function is called on the WebCamTexture, the app crashes.

Steps:
1. Build and Run attached project (CameraTestProject-edited.zip) for iOS device
2. In Player: press button "cam.Play()"

Expected behavior: a camera is used and it shows a view in a player.
Actual behavior: build crashes.

Reproduced with: 5.6.4p2, 2017.1.2p3, 2018.1.0a3.

Tested with:
iPad mini 3 - iOS10.3.2 - reproduced
iPad Pro 10.5 2017 - iOS10.3.3 - reproduced
iPad Pro 10.5 2017 - iOS11.0 - reproduced
LG Nexus 5 - Android 7.1.1 - not reproduced

Note: on Android, everything works as expected.

WON'T FIX:
"WebCamTexture class is used but Camera Usage Description is empty. App will not work on iOS 10+."

WORKAROUND: fill out Camera Usage Description in player settings (or set NSCameraUsageDescription in Info.plist)
https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW24

Comments (3)

  1. hamza37

    Oct 10, 2018 10:47

    is the problem is fixed?? iam using unity 2018 and my game crashes when i open camera

  2. YuinStudio

    Aug 25, 2018 21:07

    Solution Step:
    build development project, than add a row to Info.plist. success. close the issues~XD

    key value
    NSCameraUsageDescription(String- iOS)

  3. YuinStudio

    Aug 25, 2018 20:40

    Is the problem fixed ?
    I am using Unity 2018.2.2f1 that still have this crash...

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.