-
-
Notifications
You must be signed in to change notification settings - Fork 33
Add idb check, remove ptyhon version check for dump #74
Conversation
KazuCocoa
commented
May 26, 2019
- Remove Python 2 check since we no longer need it Remove the obsolete --enable-heapdump command line arg appium#12609
- Remove Python 2.x check #72
- Replace fbsctl with idb
- Replace the obsolete fbsimctl with idb appium-ios-simulator#224
@@ -195,55 +195,4 @@ describe('general', function () { | |||
equal('mjpeg-consumer module is required to use MJPEG-over-HTTP features. Please install it with `npm i -g mjpeg-consumer`.'); | |||
}); | |||
})); | |||
|
|||
describe('OptionalPythonVersionCheck', withMocks({tp, utils}, (mocks) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually idb requires minimum Python 3.6 to be installed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, good point.
In this case, it was enough if idb
command existed as this doctor, I thought.
If a user has no idb
(or python 3.6), we'll guide them to https://github.com/appium/appium-idb . Then the user can see the python requirement. If the user already has idb, we can expect the user has python 3 env.
lib/ios.js
Outdated
} | ||
|
||
return nokOptional('fbsimctl cannot be found'); | ||
return nokOptional('idb and/or idb_companion are not installed'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather show separate error messages for idb and its companion
return nokOptional('fbsimctl cannot be found'); | ||
if (!fbIdbPath && fbCompanionIdbPath) { | ||
return nokOptional('idb is not installed'); | ||
} else if (fbIdbPath && !fbCompanionIdbPath) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
else is redundant