MonoGame的iOS项目模板新建以后无法直接编译运行,会报错误。

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群来一起学习交流

打赏作者
很喜欢这篇文章,打赏犒劳下作者,以此激励作者创作更多

您的支持将鼓励我们继续创作!

[微信] 扫描二维码打赏

[支付宝] 扫描二维码打赏