iOS builds ICONS cause buil fail??? -- info.plist

XamtasticXamtastic Member ✭✭✭

If I have the below code lines in the info.plist the build will fail with the error message below.
The AppIcon.appiconset\Contents.json file is below and ALL images are correct and included in the project.

NOTE: I have the "[email protected]" below in the Contents.json ONLY BECAUSE this asked for it. Otherwise it was NOT in my project prior.

info.plist Lines ...

            <key>XSAppIconAssets</key>
            <string>Assets.xcassets/AppIcon.appiconset</string>

Error Message ...

Severity    Code    Description Project File    Line    Suppression State
Error       System.IO.FileNotFoundException: Could not find file "/Users/its-user/Library/Caches/Xamarin/mtbs/builds/cep.UI.Mobile.iOS/c5f93jd92eafbc27f40b1550qee929e1/obj/iPhone/Release/actool/bundle/[email protected]"
File name: '/Users/its-user/Library/Caches/Xamarin/mtbs/builds/cep.UI.Mobile.iOS/c5f93jd92eafbc27f40b1550qee929e1/obj/iPhone/Release/actool/bundle/[email protected]'
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00259] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.IO/FileStream.cs:274 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.IO/FileStream.cs:106 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions)
  at System.IO.FileSystem.CopyFile (System.String sourceFullPath, System.String destFullPath, System.Boolean overwrite) [0x0001b] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/mono-x64/external/corefx/src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs:25 
  at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x00056] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/mono-x64/external/corefx/src/System.IO.FileSystem/src/System/IO/File.cs:74 
  at Xamarin.MacDev.Tasks.SmartCopyTaskBase.CopyFile (System.String source, System.String target, System.String targetItemSpec) [0x0002d] in <e542cfbaead74095970155bb12509eb5>:0 
  at Xamarin.MacDev.Tasks.SmartCopyTaskBase.Execute () [0x000b6] in <e542cfbaead74095970155bb12509eb5>:0    cep.UI.Mobile.iOS           

Contents.json ...

 {
              "images": [
                {
                  "scale": "2x",
                  "size": "20x20",
                  "idiom": "iphone",
                  "filename": "[email protected]"
                },
                {
                  "scale": "3x",
                  "size": "20x20",
                  "idiom": "iphone",
                  "filename": "[email protected]"
                },
                {
                  "scale": "2x",
                  "size": "29x29",
                  "idiom": "iphone",
                  "filename": "[email protected]"
                },
                {
                  "scale": "3x",
                  "size": "29x29",
                  "idiom": "iphone",
                  "filename": "[email protected]"
                },
                {
                  "scale": "2x",
                  "size": "40x40",
                  "idiom": "iphone",
                  "filename": "[email protected]"
                },
                {
                  "scale": "3x",
                  "size": "40x40",
                  "idiom": "iphone",
                  "filename": "[email protected]"
                },
                {
                  "scale": "2x",
                  "size": "60x60",
                  "idiom": "iphone",
                  "filename": "[email protected]"
                },
                {
                  "scale": "3x",
                  "size": "60x60",
                  "idiom": "iphone",
                  "filename": "[email protected]"
                },
                {
                  "scale": "1x",
                  "size": "20x20",
                  "idiom": "ipad",
                  "filename": "[email protected]"
                },
                {
                  "scale": "2x",
                  "size": "20x20",
                  "idiom": "ipad",
                  "filename": "[email protected]"
                },
                {
                  "scale": "1x",
                  "size": "29x29",
                  "idiom": "ipad",
                  "filename": "[email protected]"
                },
                {
                  "scale": "2x",
                  "size": "29x29",
                  "idiom": "ipad",
                  "filename": "[email protected]"
                },
                {
                  "scale": "1x",
                  "size": "40x40",
                  "idiom": "ipad",
                  "filename": "[email protected]"
                },
                {
                  "scale": "2x",
                  "size": "40x40",
                  "idiom": "ipad",
                  "filename": "[email protected]"
                },
                {
                  "scale": "1x",
                  "size": "76x76",
                  "idiom": "ipad",
                  "filename": "[email protected]"
                },
                {
                  "scale": "2x",
                  "size": "76x76",
                  "idiom": "ipad",
                  "filename": "[email protected]"
                },
                {
                  "scale": "2x",
                  "size": "83.5x83.5",
                  "idiom": "ipad",
                  "filename": "[email protected]"
                },
                {
                  "scale": "1x",
                  "size": "1024x1024",
                  "idiom": "ios-marketing",
                  "filename": "[email protected]"
                }
              ],
              "properties": {},
              "info": {
                "version": 1,
                "author": "xcode"
              }
            }

Best Answer

  • XamtasticXamtastic ✭✭✭
    Accepted Answer

    I had to change the source to "EmbededResource" in the project file

    For whatever reason it goes in as an ImageAsset which was causing it to fail (?).

Answers

  • LandLuLandLu Member, Xamarin Team Xamurai

    Try to delete the cache on your Mac.
    Replace the [email protected] icon with a new one and build again.

  • XamtasticXamtastic Member ✭✭✭
    Accepted Answer

    I had to change the source to "EmbededResource" in the project file

    For whatever reason it goes in as an ImageAsset which was causing it to fail (?).

Sign In or Register to comment.