Skip to content

Commit 385f2a7

Browse files
Sergey Vohmyanindelagen
authored andcommitted
(cordova): fix invalid cordova hook interface use, fix #908
1 parent 46cbb29 commit 385f2a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/lib/utilities.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Utilities.writeJsonToXmlFile = function(jsonObj, filepath, parseOpts){
6666
* The xcodeCordovaProj directory path is defined in the locations property of the Cordova-iOS platform's API.
6767
*/
6868
Utilities.getAppName = function(){
69-
if(_context.opts.platforms.indexOf('ios') !== -1){
69+
if(_context.opts.cordova.platforms.indexOf('ios') !== -1){
7070
const projectRoot = _context.opts.projectRoot;
7171
const platformPath = path.join(projectRoot, 'platforms', 'ios');
7272
const cordova_ios = require('cordova-ios');

0 commit comments

Comments
 (0)