MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / erase_simulator

Method erase_simulator

packages/server/src/native/bridge.rs:790–799  ·  view source on GitHub ↗
(&self, udid: &str)

Source from the content-addressed store, hash-verified

788 }
789
790 pub fn erase_simulator(&self, udid: &str) -> Result<(), AppError> {
791 let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?;
792 unsafe {
793 let mut error = ptr::null_mut();
794 bool_result(
795 ffi::xcw_native_erase_simulator(udid.as_ptr(), &mut error),
796 error,
797 )
798 }
799 }
800
801 pub fn install_app(&self, udid: &str, app_path: &str) -> Result<(), AppError> {
802 let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?;

Callers 1

erase_simulatorFunction · 0.80

Calls 2

bool_resultFunction · 0.85

Tested by

no test coverage detected