Xamarin.iOS构建错误System.IO.FileNotFoundException

时间:2016-12-19 16:15:50

标签: xamarin xamarin.ios xamarin.forms

当我尝试使用分发配置文件构建

时出现此错误
Error       System.IO.FileNotFoundException: /Users/xxx/Library/Caches/Xamarin/mtbs/builds/iOSClient/f4287e1ce437e3e2197bfddb3a942d82/obj/iPhone/Ad-Hoc/optimized/Default-736h@3x.png does not exist
File name: '/Users/xxx/Library/Caches/Xamarin/mtbs/builds/iOSClient/f4287e1ce437e3e2197bfddb3a942d82/obj/iPhone/Ad-Hoc/optimized/Default-736h@3x.png'
  at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x001bd] in /private/tmp/source-mono-4.6.0/bockbuild-mono-4.6.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/File.cs:112 
  at Xamarin.MacDev.Tasks.SmartCopyTaskBase.CopyFile (System.String source, System.String target, System.String targetItemSpec) [0x0002d] in <4ed71c0d8bd847c3bc4130be1482dce1>:0 
  at Xamarin.MacDev.Tasks.SmartCopyTaskBase.Execute () [0x00116] in <4ed71c0d8bd847c3bc4130be1482dce1>:0    iOSClient           

任何想法可能是什么原因?

1 个答案:

答案 0 :(得分:1)

这种情况下的解决方案是删除C:\ Users [当前用户] \ AppData \ Local \ Xamarin下的所有内容。