Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simulator detect #107

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add simulator detect #107

wants to merge 1 commit into from

Conversation

noahsmartin
Copy link
Member

Auto-detects if the app is already running on the simulator, and if it is not warns the user about any running simulator apps that do not have ettrace set up

if useSimulator {
let running = listRunningProcesses()
if !running.isEmpty {
print("\(running.count) app\(running.count == 1 ? " was" : "s were") found but \(running.count == 1 ? "it is" : "they are") not running ettrace.")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be easier to follow if you did running.count == 1 ? "1 app was found but it is not running" : "\(running.count) apps were found but they are not running"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants