Skip to content

Commit f14ed2c

Browse files
authored
Merge pull request #237 from tidev/improvement/help-text
2 parents 18d821d + 007aa68 commit f14ed2c

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

lib/simulator.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -771,11 +771,13 @@ function findSimulators(options, callback) {
771771
}
772772

773773
if (!simHandle) {
774+
const helpText = '\n\nPlease open Xcode, navigate to "Window > Devices and Simulators" and create a new Simulator with your preferred configuration.';
775+
774776
// user experience!
775777
if (options.simVersion) {
776-
return callback(new Error(__('Unable to find an iOS Simulator running iOS %s.', options.simVersion)));
778+
return callback(new Error(__(`Unable to find an iOS Simulator running iOS %s. ${helpText}`, options.simVersion)));
777779
} else {
778-
return callback(new Error(__('Unable to find an iOS Simulator.')));
780+
return callback(new Error(__(`Unable to find an iOS Simulator. ${helpText}`)));
779781
}
780782
} else if (options.watchAppBeingInstalled && !watchSimHandle) {
781783
return callback(new Error(__('Unable to find a watchOS Simulator that supports watchOS %s', options.watchMinOSVersion)));

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ioslib",
3-
"version": "1.7.34",
3+
"version": "1.7.35",
44
"description": "iOS Utility Library",
55
"keywords": [
66
"appcelerator",

0 commit comments

Comments
 (0)