Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin not building iOS project

Tags:

c#

ios

xamarin

Everything was working fine up until today. It was working fine yesterday and I have not applied any changes since then. Today when I try to debug my project in Xamarin I get the only error:

/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)

Please note: I changed project name and my user name for the above example.

like image 228
user5581557 Avatar asked Dec 10 '25 23:12

user5581557


1 Answers

Renaming a viewcontroller caused me this problem

Removing the Obj & Bin folders manually present in the project solved me this problem.

Obj folder

Cleaning the project does not remove all the generated files

like image 198
Durai Amuthan.H Avatar answered Dec 13 '25 13:12

Durai Amuthan.H



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!