Ionic-cli: bug(resources): path issues on mac

Created on 23 Sep 2016  路  6Comments  路  Source: ionic-team/ionic-cli

On a mac I ran ionic resources. It added a whole bunch of icons and splash entries into my config.

An example:

<icon src="resources\android\icon\drawable-ldpi-icon.png" density="ldpi"/>

When running ionic platform add android or ionic run android on the Mac I got an error:

Error: Source path does not exist: resources\android\icon\drawable-hdpi-icon.png

I am assuming this is because the path is not valid on a mac? It worked fine on my colleagues machine running Windows. So now I have had to fix the paths manually for all Android entries so that I can run an app on my machine.

Is there no code somewhere that checks what OS is being run and adjusts the paths respectively when running commands like ionic run android?

Cordova CLI: 6.3.1
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.0.0
Ionic App Lib Version: 2.0.0
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v5.12.0
Xcode version: Xcode 7.3.1 Build version 7D1014
old major version

All 6 comments

This error again :(
Error: Source path does not exist: resources\android\icon\drawable-hdpi-icon.png

A colleague generated resources on a Windows machine, to which this was added into the config file:
<icon src="resources\android\icon\drawable-xhdpi-icon.png" />

This file does exist but the ionic run android build process does not seem to think so on my Mac!!
image

+1

馃憤

Same issue here.

try
ionic resources

Thanks for the issue! This issue appears to be associated with an old version of the Ionic CLI. Please update to the latest CLI version, which supports all versions of the Ionic Framework. If the issue is relevant and if it persists after updating to the latest CLI version, please create a new issue.

Thank you for using Ionic!

This is fixed in latest CLI!

Was this page helpful?
0 / 5 - 0 ratings