AlexDisler / cordova-icon

Automatic icon resizing for Cordova
MIT License
689 stars 292 forks source link

Icons not written to correct iOS path (uses [object Object] instead of App Name) #131

Open patrickhulce opened 5 years ago

patrickhulce commented 5 years ago

cordova version 8.1.2 (cordova-lib@8.1.1) cordova-icon version 1.0.0

The icons get written to platforms/ios/[object Object]/Images.xcassets/AppIcon.appiconset/icon-20.png instead of platforms/ios/Application Name/Images.xcassets/

Manually adding

if (typeof projectName === 'object') projectName = projectName._;

to line 25 of cordova-icon/index.js fixed the problem for me.

GabeGates commented 4 years ago

I had the same issue, making your update resolved this