maui
maui copied to clipboard
Build error for Maui App icon svg format is not supported in iOS plaftform
Description
I see a Build error when trying to use a maui app icon in svg format , attaching the icon which i am using , iOS build fails with this error actool error : The stickers icon set or app icon set named "appicon" did not have any applicable content
Svg content :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="732px" height="309px" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd" xmlns:xlink="http://www.w3.org/1999/xlink">
<g><path style="opacity:0.986" fill="#05b442" d="M 442.5,82.5 C 442.672,81.5084 442.338,80.8417 441.5,80.5C 440.978,75.0377 439.311,70.5377 436.5,67C 434.114,55.0325 427.114,46.3659 415.5,41C 405.984,37.6255 396.984,37.1255 388.5,39.5C 375.478,40.7902 365.978,47.4568 360,59.5C 355.693,68.6986 353.026,78.3653 352,88.5C 351.173,102.852 350.173,117.185 349,131.5C 344.439,160.345 328.773,179.678 302,189.5C 291.762,194.358 285.928,190.858 284.5,179C 285.203,171.486 286.036,163.653 287,155.5C 291.882,152.975 296.715,150.308 301.5,147.5C 304.586,144.245 307.086,140.578 309,136.5C 311.219,129.588 312.719,122.754 313.5,116C 313.497,107.698 313.497,99.3647 313.5,91C 314.632,65.9026 323.632,43.4026 340.5,23.5C 361.565,3.09454 386.565,-4.07213 415.5,2C 445.262,9.09367 464.762,27.2603 474,56.5C 475.98,63.0871 477.647,69.7538 479,76.5C 480.871,93.454 482.204,110.454 483,127.5C 485.256,140.876 492.756,149.71 505.5,154C 506.893,155.171 507.727,156.671 508,158.5C 508.667,167.5 508.667,176.5 508,185.5C 504.93,191.856 500.263,193.189 494,189.5C 479.163,185.04 466.663,176.04 456.5,162.5C 446.824,144.034 442.824,125.034 444.5,105.5C 442.948,98.5843 441.948,91.751 441.5,85C 442.252,84.3292 442.586,83.4959 442.5,82.5 Z"/></g>
<g><path style="opacity:0.991" fill="#00559b" d="M 594.5,2.5 C 613.968,0.904491 632.968,3.07116 651.5,9C 674.169,19.3053 686.503,36.9719 688.5,62C 688.359,63.9552 687.526,65.4552 686,66.5C 672.572,66.0401 659.072,65.8734 645.5,66C 642.422,45.645 630.255,36.145 609,37.5C 596.622,36.9473 586.289,40.614 578,48.5C 573.464,58.2759 575.964,65.7759 585.5,71C 589.419,72.8618 593.419,74.5285 597.5,76C 616.357,80.7139 635.024,86.0472 653.5,92C 683.447,104.049 696.947,126.215 694,158.5C 687.706,189.458 668.873,207.624 637.5,213C 630.921,213.607 624.421,214.44 618,215.5C 611.8,214.569 605.134,214.569 598,215.5C 597.5,215 597,214.5 596.5,214C 554.483,209.149 531.483,185.649 527.5,143.5C 541.155,142.001 554.821,140.834 568.5,140C 575.053,170.166 593.719,182.5 624.5,177C 644.362,173.516 652.862,162.016 650,142.5C 645.908,136.755 640.408,132.922 633.5,131C 617.878,126.511 602.211,122.178 586.5,118C 569.692,113.349 555.525,104.515 544,91.5C 530.909,70.2782 531.242,48.9449 545,27.5C 558.216,12.6419 574.716,4.30854 594.5,2.5 Z"/></g>
<g><path style="opacity:0.991" fill="#00559b" d="M 33.5,15.5 C 47.4123,15.1767 61.2456,15.5101 75,16.5C 84.3319,59.1616 93.6652,101.828 103,144.5C 114.956,101.679 126.456,58.6787 137.5,15.5C 153.744,15.1752 169.911,15.5086 186,16.5C 196.692,59.9344 207.692,103.268 219,146.5C 228.539,103.138 238.206,59.8048 248,16.5C 261.421,15.5103 274.921,15.177 288.5,15.5C 273.526,80.2621 258.026,144.929 242,209.5C 234.743,210.159 227.41,210.492 220,210.5C 212.431,210.481 205.097,209.815 198,208.5C 185.739,162.14 173.406,115.473 161,68.5C 148.652,115.561 136.152,162.561 123.5,209.5C 108.833,210.833 94.1667,210.833 79.5,209.5C 63.8701,145.446 48.5368,80.7792 33.5,15.5 Z"/></g>
<g><path style="opacity:0.09" fill="#0b749c" d="M 441.5,80.5 C 442.338,80.8417 442.672,81.5084 442.5,82.5C 440.895,81.9941 440.561,81.3274 441.5,80.5 Z"/></g>
<g><path style="opacity:0.965" fill="#04b441" d="M 360.5,189.5 C 385.169,189.333 409.836,189.5 434.5,190C 436.594,191.255 437.594,193.088 437.5,195.5C 433.819,214.014 422.819,225.514 404.5,230C 380.961,231.986 365.461,221.82 358,199.5C 356.861,195.579 357.695,192.246 360.5,189.5 Z"/></g>
<g><path style="opacity:0.897" fill="#0469b6" d="M 131.5,254.5 C 136.214,254.353 140.881,254.686 145.5,255.5C 145.82,258.898 145.487,262.232 144.5,265.5C 142.154,258.437 137.488,256.27 130.5,259C 127.277,262.112 126.777,265.612 129,269.5C 134.301,273.8 139.301,278.466 144,283.5C 149.636,297.23 145.136,305.23 130.5,307.5C 127.157,306.974 123.99,305.974 121,304.5C 120.087,300.638 120.42,296.972 122,293.5C 123.822,302.494 128.989,305.327 137.5,302C 142.644,297.392 142.81,292.559 138,287.5C 131.874,283.047 126.874,277.713 123,271.5C 120.588,262.99 123.421,257.323 131.5,254.5 Z"/></g>
<g><path style="opacity:0.897" fill="#0269b7" d="M 155.5,254.5 C 168.846,255.797 182.179,255.797 195.5,254.5C 196.833,257.833 196.833,261.167 195.5,264.5C 194.937,262.291 193.604,260.791 191.5,260C 187.179,259.501 182.846,259.334 178.5,259.5C 178.333,272.837 178.5,286.171 179,299.5C 179.425,303.306 181.592,305.14 185.5,305C 182.522,306.125 179.355,306.625 176,306.5C 173.167,306.167 170.333,305.833 167.5,305.5C 170.229,304.938 171.729,303.272 172,300.5C 172.5,286.837 172.667,273.171 172.5,259.5C 167.821,259.334 163.155,259.501 158.5,260C 156.824,261.177 155.491,262.677 154.5,264.5C 154.167,263.833 153.833,263.167 153.5,262.5C 154.171,259.815 154.838,257.148 155.5,254.5 Z"/></g>
<g><path style="opacity:0.909" fill="#0469b5" d="M 240.5,254.5 C 242.124,254.36 243.29,255.027 244,256.5C 249.413,271.739 255.413,286.739 262,301.5C 263.925,303.213 266.092,304.547 268.5,305.5C 263.416,306.89 258.416,306.723 253.5,305C 254.022,304.439 254.355,303.772 254.5,303C 252.916,297.667 250.916,292.5 248.5,287.5C 243.615,286.198 238.782,286.198 234,287.5C 232.399,292.136 230.899,296.802 229.5,301.5C 229.728,303.397 230.728,304.73 232.5,305.5C 231.372,306.262 230.205,306.929 229,307.5C 224.735,306.965 220.568,306.131 216.5,305C 221.849,304.653 225.016,301.819 226,296.5C 231.342,282.641 236.175,268.641 240.5,254.5 Z M 240.5,266.5 C 242.928,271.868 245.261,277.368 247.5,283C 243.459,283.827 239.459,283.66 235.5,282.5C 237.575,277.276 239.242,271.942 240.5,266.5 Z"/></g>
<g><path style="opacity:0.897" fill="#0269b7" d="M 394.5,254.5 C 407.846,255.797 421.179,255.797 434.5,254.5C 435.833,257.833 435.833,261.167 434.5,264.5C 433.937,262.291 432.604,260.791 430.5,260C 426.179,259.501 421.846,259.334 417.5,259.5C 417.333,272.837 417.5,286.171 418,299.5C 418.425,303.306 420.592,305.14 424.5,305C 421.522,306.125 418.355,306.625 415,306.5C 412.167,306.167 409.333,305.833 406.5,305.5C 409.229,304.938 410.729,303.272 411,300.5C 411.5,286.837 411.667,273.171 411.5,259.5C 406.821,259.334 402.155,259.501 397.5,260C 395.824,261.177 394.491,262.677 393.5,264.5C 393.167,263.833 392.833,263.167 392.5,262.5C 393.171,259.815 393.838,257.148 394.5,254.5 Z"/></g>
<g><path style="opacity:0.897" fill="#0469b6" d="M 475.5,254.5 C 480.214,254.353 484.881,254.686 489.5,255.5C 489.82,258.898 489.487,262.232 488.5,265.5C 486.154,258.437 481.488,256.27 474.5,259C 471.277,262.112 470.777,265.612 473,269.5C 478.301,273.8 483.301,278.466 488,283.5C 493.636,297.23 489.136,305.23 474.5,307.5C 471.157,306.974 467.99,305.974 465,304.5C 464.087,300.638 464.42,296.972 466,293.5C 467.822,302.494 472.989,305.327 481.5,302C 486.644,297.392 486.81,292.559 482,287.5C 475.874,283.047 470.874,277.713 467,271.5C 464.588,262.99 467.421,257.323 475.5,254.5 Z"/></g>
<g><path style="opacity:0.897" fill="#0469b6" d="M 556.5,254.5 C 561.214,254.353 565.881,254.686 570.5,255.5C 570.82,258.898 570.487,262.232 569.5,265.5C 567.154,258.437 562.488,256.27 555.5,259C 552.277,262.112 551.777,265.612 554,269.5C 559.301,273.8 564.301,278.466 569,283.5C 574.636,297.23 570.136,305.23 555.5,307.5C 552.157,306.974 548.99,305.974 546,304.5C 545.087,300.638 545.42,296.972 547,293.5C 548.822,302.494 553.989,305.327 562.5,302C 567.644,297.392 567.81,292.559 563,287.5C 556.874,283.047 551.874,277.713 548,271.5C 545.588,262.99 548.421,257.323 556.5,254.5 Z"/></g>
<g><path style="opacity:0.897" fill="#0269b7" d="M 579.5,254.5 C 592.846,255.797 606.179,255.797 619.5,254.5C 620.833,257.833 620.833,261.167 619.5,264.5C 618.937,262.291 617.604,260.791 615.5,260C 611.179,259.501 606.846,259.334 602.5,259.5C 602.333,272.837 602.5,286.171 603,299.5C 603.425,303.306 605.592,305.14 609.5,305C 606.522,306.125 603.355,306.625 600,306.5C 597.167,306.167 594.333,305.833 591.5,305.5C 594.229,304.938 595.729,303.272 596,300.5C 596.5,286.837 596.667,273.171 596.5,259.5C 591.821,259.334 587.155,259.501 582.5,260C 580.824,261.177 579.491,262.677 578.5,264.5C 578.167,263.833 577.833,263.167 577.5,262.5C 578.171,259.815 578.838,257.148 579.5,254.5 Z"/></g>
<g><path style="opacity:0.912" fill="#0369b6" d="M 731.5,304.5 C 731.5,305.167 731.5,305.833 731.5,306.5C 726.819,306.331 722.152,305.998 717.5,305.5C 717.328,293.782 716.162,282.116 714,270.5C 708.661,282.511 702.828,294.178 696.5,305.5C 694.768,303.717 693.268,301.717 692,299.5C 687.711,289.956 683.044,280.623 678,271.5C 677.194,280.67 676.361,289.836 675.5,299C 675.104,302.767 676.77,304.767 680.5,305C 678.03,306.114 675.364,306.614 672.5,306.5C 670.167,306.167 667.833,305.833 665.5,305.5C 667.193,304.772 668.693,303.772 670,302.5C 670.834,296.331 671.667,290.165 672.5,284C 672.415,282.893 672.081,281.893 671.5,281C 673.274,272.223 674.941,263.389 676.5,254.5C 683.94,267.958 691.107,281.625 698,295.5C 701.947,287.274 705.614,278.941 709,270.5C 711.93,264.966 715.096,259.633 718.5,254.5C 720.734,269.101 722.567,283.768 724,298.5C 724.863,302.518 727.363,304.518 731.5,304.5 Z"/></g>
<g><path style="opacity:0.904" fill="#0469b6" d="M 1.5,255.5 C 7.50924,255.334 13.5092,255.501 19.5,256C 18.4366,257.188 17.1033,257.688 15.5,257.5C 17.5666,270.099 20.7333,282.433 25,294.5C 26.9754,288.904 29.142,283.404 31.5,278C 31.1667,277.667 30.8333,277.333 30.5,277C 33.7485,269.735 37.0819,262.569 40.5,255.5C 45.815,268.273 50.6483,281.273 55,294.5C 58.4216,284.582 61.7549,274.249 65,263.5C 65.6667,261.5 65.6667,259.5 65,257.5C 63.7567,258.336 62.5901,258.003 61.5,256.5C 66.5,255.167 71.5,255.167 76.5,256.5C 72.9065,256.926 70.7398,258.926 70,262.5C 65.4651,275.771 61.1318,289.105 57,302.5C 56.2515,304.332 55.2515,305.999 54,307.5C 48.6171,294.69 43.6171,281.69 39,268.5C 34.2352,281.809 28.9019,294.809 23,307.5C 21.3859,303.828 19.5526,300.328 17.5,297C 17.9574,296.586 18.2907,296.086 18.5,295.5C 15.103,284.142 11.603,272.808 8,261.5C 6.32165,258.77 4.15498,256.77 1.5,255.5 Z"/></g>
<g><path style="opacity:0.911" fill="#0368b6" d="M 107.5,254.5 C 108.736,257.818 108.403,261.151 106.5,264.5C 105.756,263.009 105.09,261.509 104.5,260C 100.582,258.844 96.5817,258.344 92.5,258.5C 92.5,264.833 92.5,271.167 92.5,277.5C 96.5138,277.666 100.514,277.499 104.5,277C 106.382,274.935 107.382,275.435 107.5,278.5C 107.064,281.179 106.564,283.845 106,286.5C 104.98,285.109 104.147,283.609 103.5,282C 99.9399,280.763 96.2733,280.263 92.5,280.5C 92.3337,287.175 92.5004,293.842 93,300.5C 93.5,301 94,301.5 94.5,302C 98.1667,302.667 101.833,302.667 105.5,302C 106.956,300.255 108.289,298.422 109.5,296.5C 110.52,300.562 109.687,304.228 107,307.5C 98.3882,306.535 89.8882,305.869 81.5,305.5C 82.7598,304.618 83.9264,303.618 85,302.5C 85.6667,287.833 85.6667,273.167 85,258.5C 83.4905,257.91 81.9905,257.244 80.5,256.5C 89.6577,255.833 98.6577,255.167 107.5,254.5 Z"/></g>
<g><path style="opacity:0.919" fill="#0268b6" d="M 271.5,255.5 C 277.206,255.171 282.872,255.505 288.5,256.5C 287.009,257.244 285.509,257.91 284,258.5C 283.333,272.167 283.333,285.833 284,299.5C 284.374,300.416 284.874,301.25 285.5,302C 289.833,302.667 294.167,302.667 298.5,302C 299.956,300.255 301.289,298.422 302.5,296.5C 303.296,299.717 302.963,302.883 301.5,306C 291.633,306.564 281.967,306.398 272.5,305.5C 273.76,304.618 274.926,303.618 276,302.5C 276.667,287.833 276.667,273.167 276,258.5C 273.974,258.085 272.474,257.085 271.5,255.5 Z"/></g>
<g><path style="opacity:0.911" fill="#0368b6" d="M 337.5,254.5 C 338.736,257.818 338.403,261.151 336.5,264.5C 335.756,263.009 335.09,261.509 334.5,260C 330.582,258.844 326.582,258.344 322.5,258.5C 322.5,264.833 322.5,271.167 322.5,277.5C 326.514,277.666 330.514,277.499 334.5,277C 336.382,274.935 337.382,275.435 337.5,278.5C 337.064,281.179 336.564,283.845 336,286.5C 334.98,285.109 334.147,283.609 333.5,282C 329.94,280.763 326.273,280.263 322.5,280.5C 322.334,287.175 322.5,293.842 323,300.5C 323.5,301 324,301.5 324.5,302C 328.167,302.667 331.833,302.667 335.5,302C 336.956,300.255 338.289,298.422 339.5,296.5C 340.52,300.562 339.687,304.228 337,307.5C 328.388,306.535 319.888,305.869 311.5,305.5C 312.76,304.618 313.926,303.618 315,302.5C 315.667,287.833 315.667,273.167 315,258.5C 313.491,257.91 311.991,257.244 310.5,256.5C 319.658,255.833 328.658,255.167 337.5,254.5 Z"/></g>
<g><path style="opacity:0.934" fill="#0569b5" d="M 351.5,255.5 C 359.174,255.334 366.841,255.5 374.5,256C 383.231,258.62 386.398,264.453 384,273.5C 382.224,276.941 380.057,280.108 377.5,283C 382.358,289.704 387.691,296.037 393.5,302C 396.218,303.072 398.885,304.238 401.5,305.5C 396.799,306.731 392.132,306.564 387.5,305C 381.82,298.985 376.487,292.651 371.5,286C 368.883,285.178 366.216,284.678 363.5,284.5C 363.334,290.509 363.501,296.509 364,302.5C 365.6,303.866 367.433,304.866 369.5,305.5C 363.681,306.207 358.014,306.207 352.5,305.5C 353.76,304.618 354.926,303.618 356,302.5C 356.667,287.833 356.667,273.167 356,258.5C 353.974,258.085 352.474,257.085 351.5,255.5 Z M 363.5,258.5 C 376.291,258.713 380.791,265.046 377,277.5C 375.688,280.581 373.355,282.248 370,282.5C 367.959,281.577 365.792,281.244 363.5,281.5C 363.5,273.833 363.5,266.167 363.5,258.5 Z"/></g>
<g><path style="opacity:0.905" fill="#0369b5" d="M 494.5,255.5 C 499.214,255.173 503.88,255.507 508.5,256.5C 507.975,257.192 507.308,257.692 506.5,258C 510.456,265.416 514.79,272.583 519.5,279.5C 522.791,273.376 526.291,267.376 530,261.5C 530.651,259.765 530.485,258.098 529.5,256.5C 533.833,255.167 538.167,255.167 542.5,256.5C 539.345,257.15 536.845,258.817 535,261.5C 529.893,268.712 525.56,276.379 522,284.5C 521.333,290.167 521.333,295.833 522,301.5C 523.362,303.436 525.195,304.769 527.5,305.5C 521.833,306.833 516.167,306.833 510.5,305.5C 511.628,304.738 512.795,304.071 514,303.5C 516.266,295.703 515.933,288.036 513,280.5C 510.083,276.334 507.416,272.001 505,267.5C 502.291,262.636 498.791,258.636 494.5,255.5 Z"/></g>
<g><path style="opacity:0.911" fill="#0368b6" d="M 655.5,254.5 C 656.736,257.818 656.403,261.151 654.5,264.5C 653.756,263.009 653.09,261.509 652.5,260C 648.582,258.844 644.582,258.344 640.5,258.5C 640.5,264.833 640.5,271.167 640.5,277.5C 644.514,277.666 648.514,277.499 652.5,277C 654.382,274.935 655.382,275.435 655.5,278.5C 655.064,281.179 654.564,283.845 654,286.5C 652.98,285.109 652.147,283.609 651.5,282C 647.94,280.763 644.273,280.263 640.5,280.5C 640.334,287.175 640.5,293.842 641,300.5C 641.5,301 642,301.5 642.5,302C 646.167,302.667 649.833,302.667 653.5,302C 654.956,300.255 656.289,298.422 657.5,296.5C 658.52,300.562 657.687,304.228 655,307.5C 646.388,306.535 637.888,305.869 629.5,305.5C 630.76,304.618 631.926,303.618 633,302.5C 633.667,287.833 633.667,273.167 633,258.5C 631.491,257.91 629.991,257.244 628.5,256.5C 637.658,255.833 646.658,255.167 655.5,254.5 Z"/></g>
</svg>
Steps to Reproduce
Create a Maui app , change the appicon to the svg image given , try to build the solution you will get this error
Version with bug
Preview 13 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 15.2
Did you find any workaround?
No response
Relevant log output
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/15.2.301-preview.13.7/tools/msbuild/iOS/Xamarin.Shared.targets(808,3): error : /usr/bin/xcrun exited with code 1 [/Users/rockclane/MyMauiApp/MyMauiApp.csproj]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/15.2.301-preview.13.7/tools/msbuild/iOS/Xamarin.Shared.targets(808,3): error : [/Users/rockclane/MyMauiApp/MyMauiApp.csproj]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/15.2.301-preview.13.7/tools/msbuild/iOS/Xamarin.Shared.targets(808,3): error : actool exited with code 1 [/Users/rockclane/MyMauiApp/MyMauiApp.csproj]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/15.2.301-preview.13.7/tools/msbuild/iOS/Xamarin.Shared.targets(808,3): error : [/Users/rockclane/MyMauiApp/MyMauiApp.csproj]
/Users/rockclane/MyMauiApp/obj/Debug/net6.0-ios/iossimulator-x64/actool/cloned-assets/Assets.xcassets : actool error : The stickers icon set or app icon set named "appicon" did not have any applicable content. [/Users/rockclane/MyMauiApp/MyMauiApp.csproj]
Could you, just for completeness, maybe add the line from your csproj where you set the AppIcon? Just so we know for sure we're looking at the same thing
I am seeing exactly the same issue, I have tried with SVG and PNG both same result.
My .csproj is:
<!-- App Icon -->
<MauiIcon Include="Resources\appicon.svg" />
The BuildAction in the image properties is set to 'MauiIcon'
Also looks to be a Duplicate of #3755
repro on iPhone 13 IOS15.2. repro sample: MauiApp3.zip
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
Has anyone found a way to get through this? I'm having the issue as well.
Hi @rockclane. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.
You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.
This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.