Check for Simulator not working #50

Closed
opened 2025-12-29 18:28:42 +01:00 by adam · 2 comments
Owner

Originally created by @OliverZiegler on GitHub (Oct 14, 2016).

I think beginning with iOS 9 this check

UIDevice.current.model.range(of: "Simulator") != nil

will never succeed and so current developers will not get console logs and possibly wonder why nothing happens when starting to rate.

Possible alternate methods are stated here

Originally created by @OliverZiegler on GitHub (Oct 14, 2016). I think beginning with iOS 9 this check `UIDevice.current.model.range(of: "Simulator") != nil` will never succeed and so current developers will not get console logs and possibly wonder why nothing happens when starting to rate. Possible alternate methods are stated [here](http://stackoverflow.com/a/24869607/2408916)
adam closed this issue 2025-12-29 18:28:42 +01:00
Author
Owner

@coneybeare commented on GitHub (Oct 14, 2016):

Pull requests accepted!

@coneybeare commented on GitHub (Oct 14, 2016): Pull requests accepted!
Author
Owner

@OliverZiegler commented on GitHub (Oct 15, 2016):

Here you are. And for both, master and swift3 branch ;)

@OliverZiegler commented on GitHub (Oct 15, 2016): Here you are. And for both, master and swift3 branch ;)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Armchair#50