2017-09-26 92 views
0

我在iphone模拟器上使用了xamarin ios app.I调试项目上的asset catolog,并且没有错误。但是,当我在Visual Studio中调试iphone设备时。该项目得到错误:Xamarin在iOS设备上调试时调用ios应用System.IO.FileNotFoundException

Severity Code Description Project File Line Suppression State Error System.IO.FileNotFoundException: /Users/merverogop/Library/Caches/Xamarin/mtbs/builds/Mobil.iOS/aa2888bd11ecba5d622060c89aa4abc7/obj/iPhone/Ad-Hoc/actool/bundle/LaunchImage.png does not exist File name: '/Users/merverogop/Library/Caches/Xamarin/mtbs/builds/Mobil.iOS/aa2888bd11ecba5d622060c89aa4abc7/obj/iPhone/Ad-Hoc/actool/bundle/LaunchImage.png' at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x00193] in /private/tmp/source-mono-d15-3/bockbuild-d15-3/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/corlib/System.IO/File.cs:111 at Xamarin.MacDev.Tasks.SmartCopyTaskBase.CopyFile (System.String source, System.String target, System.String targetItemSpec) [0x0002d] in <005c894bac3b423fb04b2601188910b5>:0 at Xamarin.MacDev.Tasks.SmartCopyTaskBase.Execute() [0x00108] in <005c894bac3b423fb04b2601188910b5>:0 Mobil.iOS

回答

0

我找到了解决方案。问题原因是资源文件夹中的图像。我使用了不同的图像并删除了launchImage.png。错误消失了。

相关问题