How do I add Icon167.png to an iOS project so the program can compile?

Will.ItraxWill.Itrax CAMember ✭✭✭

Hi. I am getting this error:
File not found: /Users/<userName>/Library/Caches/Xamarin/mtbs/builds/i_TraxMobile.iOS/15235a60445af771821ee92f56e79a9c/Resources/Media.xcassets/AppIcons.appiconset/Icon167.png
and I don't even have a folder: /Users//Library/
I have updated the Mac OS, Xcode and Xamarin to the latest versions.
I also linked Icons to entries in Media.xcassets as described here: https://forums.xamarin.com/discussion/61004/how-to-add-167x167-icon-for-ipad-app

This used to work with some entries in info.plist.

Any insight to this would be appreciated.

Best Answer

  • Will.ItraxWill.Itrax CA ✭✭✭
    Accepted Answer

    To fix the issue I could do one of:
    1) copy the Icon into the place that the compiler is looking for it (not a satisfying answer)
    2) remove the following code from the myProgram.iOS.csproj file:

    <ImageAsset Include="Resources/Media.xcassets/AppIcons.appiconset/Icon167.png">
      <InProject>false</InProject>
    </ImageAsset>
    

Answers

  • Will.ItraxWill.Itrax CAMember ✭✭✭
    edited April 2017

    Arrrgghh. The Path as part of the error message in Visual Studio on the PC is for a Path on the Mac it is connected too.
    So, how do I get the image Icon176.png onto the Mac without it disappearing every time I compile?

  • Will.ItraxWill.Itrax CAMember ✭✭✭
    Accepted Answer

    To fix the issue I could do one of:
    1) copy the Icon into the place that the compiler is looking for it (not a satisfying answer)
    2) remove the following code from the myProgram.iOS.csproj file:

    <ImageAsset Include="Resources/Media.xcassets/AppIcons.appiconset/Icon167.png">
      <InProject>false</InProject>
    </ImageAsset>
    
Sign In or Register to comment.