This PR adjust the path if executed in cordova-ios >= 7.
Created a new getPackagePathCordova function to not edit the existing getPackagePath, since it's exported maybe somebody is using it and could be breaking to change it.
Only call the new method if the getPackageJson doesn't return an undefined pkg.
cordova-ios 7 changed the .ipa/.app paths https://github.com/apache/cordova-ios/pull/1310
This PR adjust the path if executed in cordova-ios >= 7.
Created a new
getPackagePathCordova
function to not edit the existinggetPackagePath
, since it's exported maybe somebody is using it and could be breaking to change it. Only call the new method if thegetPackageJson
doesn't return an undefinedpkg
.closes https://github.com/ionic-team/ionic-cli/issues/5048