Closed janpio closed 8 years ago
I have the same problem.
@mhartington Is it possible to change the following lines
// go through each of the platform directories that have been prepared
var platforms = _.filter(fs.readdirSync('platforms'), function(file) {
return fs.statSync(path.resolve('platforms', file)).isDirectory();
});
with these lines, which includes only the called platforms:
// go through each of the platform directories that have been prepared
var platforms = (process.env.CORDOVA_PLATFORMS ? process.env.CORDOVA_PLATFORMS.split(',') : []);
Merged
I just changed the
name
in my config.xml tofoobar
and then wanted toionic build android
. Calling this also executed the hook which failed with this error message:I assume this is because I didn't recreat the iOS part yet and so
platforms\ios\foobar.xcodeproj
is not present on the file system.Is there a way around this?
(Of course I just fixed it by running
ionic prepare ios
, but maybe the hook script should also have a way to fix this)