cordova-ios icon indicating copy to clipboard operation
cordova-ios copied to clipboard

ios <<icon> label No other attributes error

Open gaowenzhen opened this issue 6 years ago • 2 comments

Hello, anyone can help me.

I installed 9.0.0 ([email protected]) under mac os

I am doing the following to create a project

  1. Run following commands
cordova create hello com.example.hello HelloWorld
cd hello
  1. I have created the directory and files. --icon.png modify config.xml
<widget>
  .....
  .....
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
    </platform>
    <icon src="res/icon.png" />
</widget>
  1. Run following commands
cordova platform add ios
cordova run ios
  1. Found icon can't change or default icon

gaowenzhen avatar Apr 13 '19 11:04 gaowenzhen

I improved the formatting of your issue.

  • Do you create res/icon.png in step 2?
  • Please explain the outcome in step 4. Do you get an error? Or is the icon not used by the app?

raphinesse avatar Apr 13 '19 19:04 raphinesse

iOS requires different icons with the size attributes, a single icon without attributes is not supported. This is a docs problem because here it says a single icon can be used

jcesarmobile avatar Jun 11 '19 11:06 jcesarmobile