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

arm64-Check simulator #19

Closed
Menaitech opened this issue Aug 3, 2023 · 1 comment
Closed

arm64-Check simulator #19

Menaitech opened this issue Aug 3, 2023 · 1 comment

Comments

@Menaitech
Copy link

Dears

the function which used to check if app is running on simulator has an error

please change code to following code

private func isSimulator() -> Bool {
//Check architecture
// #if arch(i386) || arch(x86_64) || arch(arm64) // this code is no correct
#if targetEnvironment(simulator) // this code is correct
return true
#else
return false
#endif
}

Regards

ravitejaavv added a commit that referenced this issue Aug 23, 2023
Bug fix: Simulator detection
#19
ravitejaavv added a commit that referenced this issue Aug 23, 2023
Bug fix: Simulator detection
#19
@ravitejaavv
Copy link
Owner

Same has been updated in 1.4.0 version. Kindly check it

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

No branches or pull requests

2 participants