Skip to content

Commit

Permalink
Fix(cli): Allow to add ios platform from windows (#1607)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored May 30, 2019
1 parent f2090c3 commit 2d24aef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion cli/src/ios/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function findXcodePath(config: Config): Promise<string | null> {

export async function checkCocoaPods(config: Config): Promise<string | null> {
config;
if (!await isInstalled('pod')) {
if (!await isInstalled('pod') && config.cli.os === 'mac') {
return 'cocoapods is not installed. For information: https://guides.cocoapods.org/using/getting-started.html#installation';
}
return null;
Expand Down
3 changes: 0 additions & 3 deletions cli/src/tasks/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ import chalk from 'chalk';
import { resolve } from 'path';

export async function addCommand(config: Config, selectedPlatformName: string) {
if (selectedPlatformName === 'ios' && config.cli.os !== 'mac') {
logFatal('Not running Mac OS X, can\'t add ios platform');
}

const platformName = await config.askPlatform(
selectedPlatformName,
Expand Down

0 comments on commit 2d24aef

Please sign in to comment.