Skip to content

Error while trying to uninstall app with core_sim.uninstall_app_and_sandbox #722

Description

@katia-tsurul

I used suggested by @liubin-acn way to reinstall app in the simulator, but starting from run_loop version 4 it doesn't work anymore. It removes app and after references to plist of the app that is not there and fails with exception RuntimeError: plist '/Users/path_to_app_on_simulator/Info.plist' does not exist - could not read

# Reset Simulator Content and Settings
device = RunLoop::Device.device_with_identifier("< UDID of Simulator >")
RunLoop::CoreSimulator.erase(device)

# Uninstall with CoreSimulator
device = RunLoop::Device.device_with_identifier("< UDID of Simulator >")
app = RunLoop::App.new("path/to/Your.app")
core_sim = RunLoop::CoreSimulator.new(device, app)
core_sim.uninstall_app_and_sandbox

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions