Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
812 views
in Technique[技术] by (71.8m points)

xcode - Missing Marketing Icon - iOS Cordova

I get this error when uploading to AppStore:

iOS Apps must include a 1024x1024px Marketing Icon in PNG format. Apps that do not include the Marketing Icon cannot be submitted for App Review or Beta App Review.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Based on the other answers here, I believe the complete answer is:

If you did cordova platform update ios it will bring you the latest stable version, 4.4.0 as of today, which don't know to add the entry for the app-store icon.

So, what you need to do is:

cordova platform rm ios
cordova platform add [email protected]

and add the above mentioned line into config.xml with a slight modification - use a JPEG to avoid "The App Store Icon in the asset catalog in 'appname.app' can't be transparent nor contain an alpha channel":

<icon height="1024" width="1024" src="icons/ios/icon-1024.jpg" />

As soon as the stable version will become higher than 4.5.1, do not force that 'old' version!

To verify your iOS platform version, look for this line in config.xml:

<engine name="ios" spec="~4.5.1" />

Important! from 4.5.0 and on, the plugin 'cordova-plugin-console' is not supported and not required. You must remove it in order to build successfully:

cordova plugin rm cordova-plugin-console

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...