Skip to content

Commit

Permalink
optimize version condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Davis Hoo committed Jan 22, 2021
1 parent 3d0b5e1 commit 5b82c05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tidevice/_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ def _launch_wda(self,
'USE_PORT': '',
} # yapf: disable

if self.major_version() > 10:
if self.major_version() >= 11:
app_env['DYLD_INSERT_LIBRARIES'] = '/Developer/usr/lib/libMainThreadChecker.dylib'
app_env['OS_ACTIVITY_DT_MODE'] = 'YES'

Expand Down Expand Up @@ -877,8 +877,8 @@ def xctest(self, bundle_id="com.facebook.*.xctrunner", logger=None):
x1_daemon_chan = x1.make_channel(
'dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface'
)
if self.major_version() > 10:

if self.major_version() >= 11:
identifier = '_IDE_initiateControlSessionWithProtocolVersion:'
aux = AUXMessageBuffer()
aux.append_obj(XCODE_VERSION)
Expand Down

0 comments on commit 5b82c05

Please sign in to comment.