It seems I always run into some kind of error when attempting to build one of my Xamarin.iOS projects. This time, it's the "could not find file" one:
System.IO.FileNotFoundException: Could not find file "/Users/paulaldrich/Library/Caches/Xamarin/mtbs/builds/Archerisms.iOS.Stickers/e924fafed92fde1093edcef4a61f8248/obj/iPhone/Release/actool/bundle/iMessage App [email protected]" File name: '/Users/paulaldrich/Library/Caches/Xamarin/mtbs/builds/Archerisms.iOS.Stickers/e924fafed92fde1093edcef4a61f8248/obj/iPhone/Release/actool/bundle/iMessage App [email protected]' at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00259] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-06/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.IO/FileStream.cs:274 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-06/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.IO/FileStream.cs:106 at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions) at System.IO.FileSystem.CopyFile (System.String sourceFullPath, System.String destFullPath, System.Boolean overwrite) [0x00025] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-06/external/bockbuild/builds/mono-x64/external/corefx/src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs:54 at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x00056] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-06/external/bockbuild/builds/mono-x64/external/corefx/src/System.IO.FileSystem/src/System/IO/File.cs:74 at Xamarin.MacDev.Tasks.SmartCopyTaskBase.CopyFile (System.String source, System.String target, System.String targetItemSpec) [0x0002d] in <2ef81566f3634b72b10e6ec47e856fbc>:0 at Xamarin.MacDev.Tasks.SmartCopyTaskBase.Execute () [0x000b6] in <2ef81566f3634b72b10e6ec47e856fbc>:0 Archerisms.iOS.Stickers
The file referenced does not exist in my project anywhere, it only exists in the
obj folder under my iOS extension app (Archerisms.iOS.Stickers). I've deleted this folder multiple times, so one thing I'd like to know is, where is this file coming from? Even AgentRansack found no other references of this filename anywhere in my project.
I've seen this error before, and usually deleting the guid-named folder (e924fafed92fde1093edcef4a61f8248) fixes it, but not anymore. If I delete this folder, close VS, delete the bin and obj folders for both my main iOS app AND my iOS extension app, then re-open VS and build the main app again (in RELEASE mode), I get the same error. I've tried restarting my computer, restarting VS multiple times, reloading the iOS projects multiple times, nothing fixes it. This is why I'm starting to hate Xamarin.