XCode won't update app icon.

前端 未结 4 1541
北海茫月
北海茫月 2021-01-02 22:51

I am having trouble making XCode update my iPad app icon. I\'m building it using Phonegap/Cordova, but the app icon is built / managed through XCode.

I built the app

4条回答
  •  离开以前
    2021-01-02 23:23

    I've seen this question asked alot on Stackoverflow and noone seems to have answered it properly yet. This is very simple actually.

    For instance if you are using phonegap to build an iOS app, all you need to do is: replace the default images on

    www/res/icon/ios/icon-36-ldpi.png
    www/res/icon/ios/icon-48-mdpi.png
    www/res/icon/ios/icon-72-hdpi.png
    www/res/icon/ios/icon-96-xhdpi.png
    

    with your icons...

    Next, before you can run the app you will need replace the icons on Xcode too: path should be

    **YOUR-APP-ROOT/platforms/ios/YOUR-APP-NAME/Resources/icons**
    

    the magic lays within "icon.png" and "icon@2x.png" however you should replace all of the icons above, and also make sure you have the correct dimensions for each image you are replacing with, otherwise the app will not built successfully.

    Now you are able to

    phonegap build ios
    

    followed by :

    phonegap run ios

    Have fun!

提交回复
热议问题