mwaylabs / generator-m-ionic

Advanced workflows and setup for building rock-solid Ionic apps
MIT License
672 stars 134 forks source link

XCode gives compile error if I add icons #408

Open dkarchmer opened 8 years ago

dkarchmer commented 8 years ago

If I add the icons to the config.xml:

<platform name="android">
        <allow-intent href="market:*" />
        <icon src="res/android/default/icon.png" />
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
        <icon src="res/ios/default/icon.png" />
    </platform>

and run gulp --cordova "run ios"

/.../platforms/ios/IOTile-M/Images.xcassets: The app icon set named "AppIcon" did not have any applicable content.

if I open Xcode, and go to the Icon page, I see all icons there (minus the iwatch ones), but also see in the button an icon-60.png with a (unassigned) label. But removing it did not work.

I also see that all icons give an xcode warning:

file:///.../platforms/ios/IOTile-M/Images.xcassets/: warning: Ambiguous Content: AppIcon.appiconset/icon-small.png is 640x640 but should be 29x29.

(You should use imagemagick or something to resize).

Any idea what the problem is?

dkarchmer commented 8 years ago

I have to delete the AppIcon from within xcode and recreate, and then add icons manually to get it to work

dkarchmer commented 8 years ago

cordova v6.2.0

$ gulp --cordova "platform add ios"
...
iOS project created with cordova-ios@4.1.1
MathiasTim commented 8 years ago

I think the problem is, that this icon there has not the correct name and resolution for an app-icon. The icons in the folder are for demo only.

But I get the point. @gruppjo maybe we can add an icon with the correct name/resolution containing our new logo? Using the Ionic-cli feature for generating icons/splash screens could also be an option.

gruppjo commented 8 years ago

This is a problem with the Cordova CLI or rather the current Cordova iOS platforms that I've been able to track down recently: https://cordova.apache.org/news/2016/01/28/tools-release.html#comment-2490358811

RikdeBoer commented 8 years ago

I have a cordova project with a config.xml that has a single icon spec that builds beautifully on android. Having just installed XCode (because one has to, but I'm not using it) and running this command: cordova build ios I'm also getting the error mentioned above:

..../platforms/ios/.../Images.xcassets: error: The app icon set named "AppIcon" did not have any applicable content.

I was hoping that I would be able to use the cordova CLI (version 6.3.1) for building both Android apps and iOS apps. At this stage I don't know what to do.

gruppjo commented 8 years ago

Hi @RikdeBoer, some people are solving this problem by downgrading the ios platform to v3.x or manually adding their icons in Xcode. No fix from cordova at this point, apparently!

Ajaxy commented 7 years ago

Any update on this?

adnanafzal565 commented 5 years ago

I have to delete the AppIcon from within xcode and recreate, and then add icons manually to get it to work

Can you explain how did you do that ?