We have an Xcode project that includes Retina graphics for the NIB-based user interface and WebView user interface. This project is creating a Mac application.
The project uses two separate assembly phases to move these graphs to the final application. The first is the traditional Bundle copy resource, which receives both 1x and 2x graphics in the application package. The second is the build phase of the copy files, which copies web graphics to a separate destination of resources using the "graphics" sub-route.
(This avoids some name conflicts and allows the web designer to use the familiar "graphics / whatever.png" path.)
When creating this project, we get a dependency analysis error, which reads:
Image with multiple views " whatever@2x.png " cannot be processed. Copy the file assembly fax - try the assembly step of the copy resources or disable COMBINE_HIDPI_IMAGES.
Simply turn off the deployment assembly setup called “Merge High Resolution Images”, but this affects the graphics used in the NIB-based user interface, as well as those in the WebView interface. When enabled, the button.pngand options button@2x.pngare combined button.tiffin the application resource folder. Without it, the original names are used.
, , COMBINE_HIDPI_IMAGES , , - ( , .)
, COMBINE_HIDPI_IMAGES . , , , - ...
8/27/2012
- HTML 2x. , 50% , Retina. , , .
8/28/2012
, , . HTML- CSS ( , Retina Retina). HiDPI, any.png whatever_retina.png.