MonoGame的iOS项目模板报 obj/iPhone/Debug/optimized/Default.png does not exist File name错误解决办法
MonoGame的iOS项目模板新建以后无法直接编译运行,会报错误。
1 2 3 4 5 |
Error 34 System.IO.FileNotFoundException: /Users/chengcong/Library/Caches/Xamarin/mtbs/builds/projectname/147c284f10746cbcef712c16a08b916b/obj/iPhone/Debug/optimized/Default.png does not exist File name: '/Users/user1/Library/Caches/Xamarin/mtbs/builds/projectname/147c284f10746cbcef712c16a08b916b/obj/iPhone/Debug/optimized/Default.png' at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, Boolean overwrite) <0x19ff750 + 0x00333> in <filename unknown>:0 at Xamarin.MacDev.Tasks.SmartCopyTaskBase.CopyFile (System.String source, System.String target, System.String targetItemSpec) <0x423e950 + 0x000c7> in <filename unknown>:0 at Xamarin.MacDev.Tasks.SmartCopyTaskBase.Execute () <0x423d910 + 0x00227> in <filename unknown>:0 projectname |
解决办法很简单删除Default.png和GameThumbnail.png两个文件即可
如果您对C#游戏开发感兴趣,可以扫下面二维码加入我们的QQ群来一起学习交流
原创文章,转载请注明本文链接地址(违者必究):MonoGame的iOS项目模板报 obj/iPhone/Debug/optimized/Default.png does not exist File name错误解决办法