Skip to content

takePicture crashes iOS Simulator #851

@rdlauer

Description

@rdlauer

This may have changed in the most recent version of Xcode, but the "model" returned from UIDevice.currentDevice().model is just "iPhone" in the simulator, not "iPhone Simulator" as noted here:

https://github.com/NativeScript/NativeScript/blob/master/camera/camera.ios.ts#L94

The simulator mocks the camera fine if this change is accounted for.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions