Monday, May 27, 2024
HomeiOS Developmentc# - Xamarin.iOS System.IO.FileNotFoundException: Couldn't discover file AppIcon60x60@2x.png

c# – Xamarin.iOS System.IO.FileNotFoundException: Couldn’t discover file AppIcon60x60@2x.png


I simply accomplished my iOS undertaking in VS 2022 v17.9.7 and was ending up by including my app icons to the asset catalog. I used to be in a position to efficiently add the icons and now I get an error after I try and deploy the app to my bodily iPhone 13 iOS 17.4.1 with the error:

Severity    Code    Description Venture File    Line    Suppression State   Particulars
Error       System.IO.FileNotFoundException: Couldn't discover file "/Customers/prescottchartier/Library/Caches/Xamarin/mtbs/builds/OML_iOS/925fc282e7624c296284fb3051c5d4c69f7dc7a0bdbfa5fe84b98a136988d552/obj/iPhone/Debug/actool/bundle/[email protected]"
File title: '/Customers/prescottchartier/Library/Caches/Xamarin/mtbs/builds/OML_iOS/925fc282e7624c296284fb3051c5d4c69f7dc7a0bdbfa5fe84b98a136988d552/obj/iPhone/Debug/actool/bundle/[email protected]'
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess entry, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean nameless, System.IO.FileOptions choices) [0x00259] in /Customers/builder/jenkins/workspace/build-package-osx-mono/2020-02/exterior/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 entry, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions choices) [0x00000] in /Customers/builder/jenkins/workspace/build-package-osx-mono/2020-02/exterior/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) [0x00025] in /Customers/builder/jenkins/workspace/build-package-osx-mono/2020-02/exterior/bockbuild/builds/mono-x64/exterior/corefx/src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs:54 
  at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x00056] in /Customers/builder/jenkins/workspace/build-package-osx-mono/2020-02/exterior/bockbuild/builds/mono-x64/exterior/corefx/src/System.IO.FileSystem/src/System/IO/File.cs:74 
  at Xamarin.MacDev.Duties.SmartCopyTaskBase.CopyFile (System.String supply, System.String goal, System.String targetItemSpec) [0x0002d] in /Customers/builder/azdo/_work/1/s/xamarin-macios/msbuild/Xamarin.MacDev.Duties/Duties/SmartCopyTaskBase.cs:64 
  at Xamarin.MacDev.Duties.SmartCopyTaskBase.Execute () [0x000a4] in /Customers/builder/azdo/_work/1/s/xamarin-macios/msbuild/Xamarin.MacDev.Duties/Duties/SmartCopyTaskBase.cs:97 OML_iOS C:Program FilesMicrosoft Visible Studio2022ProfessionalMSBuildXamariniOSXamarin.Shared.targets   1163        

I’m able to deploy the app to the iPhone iOS 15.5 and iOS 17.4 simulators and the launch icon does show simply superb however I did discover that my LaunchScreen.storyboard doesn’t show when the app launches. I am unsure if this has something to do with it, however after I was in a position to deploy the app the the bodily system, the LaunchScreen.storyboard did show. Nowhere in my app do I reference [email protected], it is not listed within the .csproj file, and a seach of all the undertaking says that it’s not within the undertaking. I cleaned the answer, shut VS, deleted the bin and obj directories, and reloaded and re-compiled the app. Identical error. I don’t know methods to repair this.

I reported the problem to the Microsoft Developer Neighborhood, however I imagine they dropped assist of Xamarin as of Could twenty fourth, 2024, so I do not assume they will help me. I am hoping that somebody right here is aware of whats occurring and what if any repair or workaround there could also be. This might be my final Xamarin developed app as I might be shifting to the MAUI platform, I simply must get this app on the market.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments