[
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: [email protected]
For additional commands, e-mail: [email protected]