You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Kerri Shotts (JIRA)" <ji...@apache.org> on 2017/04/28 21:50:05 UTC

[jira] [Closed] (CB-12733) Can't build iOS project with icon

     [ https://issues.apache.org/jira/browse/CB-12733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kerri Shotts closed CB-12733.
-----------------------------
    Resolution: Not A Problem

{{cordova-ios}} does not generate required icons from a single icon source. If your icon source is not already an icon of the size that iOS expects, Xcode will fail to compile the asset catalog, resulting in the error message you see. You must provide at least one icon file of the required size for Xcode to be happy.

However, Apple requires many more icon variations. See https://cordova.apache.org/docs/en/latest/config_ref/images.html#ios for a typical configuration. That said, the docs at the top are wrong in that they indicate a single icon can be used for all platforms, which isn't true for the case of iOS.

Note: I'm resolving as "Not A Problem", although it is, really: either {{cordova-ios}} should respect the docs, or vice versa (I would suspect the latter, since the different icon sizes are used in different situations). That will need a different issue for tracking and dev consensus.

> Can't build iOS project with icon
> ---------------------------------
>
>                 Key: CB-12733
>                 URL: https://issues.apache.org/jira/browse/CB-12733
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-cli
>    Affects Versions: 6.5.0
>         Environment: Mac OS Sierra
>            Reporter: Jordan Zimmerman
>
> I have <icon src="res/icon.png"/> in my config.xml. When I try {{cordova run ios}} I get this error:
> {code}
> The following build commands failed:
> 	CompileAssetCatalog build/emulator/My.app My/Images.xcassets
> (1 failure)
> Error: Error code 65 for command: xcodebuild with args: -xcconfig,/path/app/platforms/ios/cordova/build-debug.xcconfig,-project,My.xcodeproj,-target,My,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,build,CONFIGURATION_BUILD_DIR=/path/app/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/path/app/platforms/ios/build/sharedpch
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org