Xamarin没有构建iOS项目

时间:2016-07-12 12:48:16

标签: c# ios xamarin

直到今天,一切都很好。它昨天工作正常,从那以后我没有应用任何变化。今天当我尝试在Xamarin中调试我的项目时,我得到了唯一的错误:

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: Error: System.IO.FileNotFoundException: /Users/me/Dropbox/Projects/projectname/projectfile/obj/iPhone/Debug/build-ipad4.5-9.3.2/ibtool/Main.storyboardc/BYZ-38-t0r-view-78.nib does not exist
File name: '/Users/me/Dropbox/Projects/projectname/projectfile/obj/iPhone/Debug/build-ipad4.5-9.3.2/ibtool/Main.storyboardc/BYZ-38-t0r-view-78.nib'
  at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, Boolean overwrite) <0x1a24c60 + 0x00333> in <filename unknown>:0 
  at Xamarin.MacDev.Tasks.SmartCopyTaskBase.CopyFile (System.String source, System.String target, System.String targetItemSpec) <0x3fc5de8 + 0x000c7> in <filename unknown>:0 
  at Xamarin.MacDev.Tasks.SmartCopyTaskBase.Execute () <0x3f08bf0 + 0x002bf> in <filename unknown>:0  (projectname)

请注意:我更改了上述示例的项目名称和用户名。

1 个答案:

答案 0 :(得分:3)

重命名viewcontroller导致了我这个问题

删除 Obj &amp;项目中手动出现的 Bin 文件夹解决了我这个问题。

Obj folder

清理项目不会删除所有生成的文件