Skip to content

Commit 55be35e

Browse files
Throw correct error when build for iOS in non-interactive terminal
Also in case CLI's executed in non-interactive terminal and there's no DEVELOPMENT_TEAM set, tns build ios --for-device fails with message "Console is not interactive and no default action specified" which does not give any info to the users. So in this case add more descriptive error message.
1 parent 3fbf88b commit 55be35e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/services/ios-project-service.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1170,6 +1170,10 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
11701170
teamId = teams[0].id;
11711171
this.$logger.warn("Found and using the following development team installed on your system: " + teams[0].name + " (" + teams[0].id + ")");
11721172
} else if (teams.length > 0) {
1173+
if (!helpers.isInteractive()) {
1174+
this.$errors.failWithoutHelp(`Unable to determine default development team. Available development teams are: ${_.map(teams, team => team.id)}. Specify team in app/App_Resources/iOS/build.xcconfig file in the following way: DEVELOPMENT_TEAM = <team id>`);
1175+
}
1176+
11731177
let choices: string[] = [];
11741178
for (let team of teams) {
11751179
choices.push(team.name + " (" + team.id + ")");

0 commit comments

Comments
 (0)