Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Add idb check, remove ptyhon version check for dump #74

Merged
merged 5 commits into from
May 31, 2019

Conversation

KazuCocoa
Copy link
Member

@KazuCocoa KazuCocoa changed the title Add idb remove dump Add idb check, remove ptyhon version check for dump May 26, 2019
@@ -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) => {
Copy link
Contributor

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

Copy link
Member Author

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');
Copy link
Contributor

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) {
Copy link
Contributor

Choose a reason for hiding this comment

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

else is redundant

@KazuCocoa KazuCocoa merged commit 2efab02 into appium:master May 31, 2019
@KazuCocoa KazuCocoa deleted the add-idb-remove-dump branch May 31, 2019 17:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants