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

Method boot_simulator

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

Source from the content-addressed store, hash-verified

370 }
371
372 pub fn boot_simulator(&self, udid: &str) -> Result<(), AppError> {
373 unsafe {
374 let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?;
375 let mut error = ptr::null_mut();
376 bool_result(
377 ffi::xcw_native_boot_simulator(udid.as_ptr(), &mut error),
378 error,
379 )
380 }
381 }
382
383 pub fn shutdown_simulator(&self, udid: &str) -> Result<(), AppError> {
384 unsafe {

Callers 1

boot_ios_deviceFunction · 0.80

Calls 2

bool_resultFunction · 0.85

Tested by

no test coverage detected