How to resolve errors with copying CoreData.pak?

I am getting the following series of errors when trying to build any application using Visual Studio targeting iOS. Any idea what I might be doing wrong here? CoreData.pak does not appear to be getting copied over to the Mac. ssh is otherwise working fine. I've attempted clearing the XMS and build caches already.

Warning     An error occured on client Build403214 while executing a reply for topic xvs/Build/4.0.3.214/copy-item/NumbersiOS/8267703/CoreData.pak
   at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__23`2.MoveNext() in C:\Users\builder\data\lanes\3062\0dd817c0\source\XamarinVS\src\Messaging\Xamarin.Messaging.Client\MessagingClient.cs:line 171
Warning     An error occured on the receiver while executing a post for topic xvs/Build/4.0.3.214/copy-item/NumbersiOS/8267703/CoreData.pak and client build26584Ronal
Error       The "CollectBundleResources" task failed unexpectedly.
Xamarin.Messaging.Exceptions.MessagingRemoteException: An error occured on client Build403214 while executing a reply for topic xvs/Build/4.0.3.214/copy-item/NumbersiOS/8267703/CoreData.pak ---> System.IO.DirectoryNotFoundException: Could not find a part of the path "/Users/roncli/Library/Caches/Xamarin/mtbs/builds/NumbersiOS/8267703727a5ea62ef13175ea998971a/H:/dev/git/ronclipro/ronclipro-private/roncli Productions/Numbers/packages/UrhoSharp.1.0.410/build/Xamarin.iOS10/../../native"
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) <0x19fb700 + 0x00148> in <filename unknown>:0 
  at System.IO.Directory.CreateDirectory (System.String path) <0x19fb4f0 + 0x000c7> in <filename unknown>:0 
  at Xamarin.Messaging.Build.Handlers.CopyItemMessageHandler+<>c__DisplayClass1_0.<ExecuteAsync>b__0 () <0x3acd138 + 0x000b7> in <filename unknown>:0 
  at System.Threading.Tasks.Task.InnerInvoke () <0x1935f30 + 0x00051> in <filename unknown>:0 
  at System.Threading.Tasks.Task.Execute () <0x1935780 + 0x0004d> in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x188f5d0 + 0x00035> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x188cf00 + 0x000b7> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x188ce60 + 0x00087> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x188ce10 + 0x0003f> in <filename unknown>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () <0x188d3c0 + 0x0001f> in <filename unknown>:0 
  at Xamarin.Messaging.Build.Handlers.CopyItemMessageHandler+<ExecuteAsync>d__1.MoveNext () <0x3accd80 + 0x00253> in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x188f5d0 + 0x00035> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x188cf00 + 0x000b7> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x188ce60 + 0x00087> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x188ce10 + 0x0003f> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () <0x188cde0 + 0x0001f> in <filename unknown>:0 
  at Xamarin.Messaging.Client.RequestHandler`1+<HandleAsync>d__5[TMessage].MoveNext () <0x3acc630 + 0x0035b> in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x188f5d0 + 0x00035> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x188cf00 + 0x000b7> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x188ce60 + 0x00087> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x188ce10 + 0x0003f> in <filename unknown>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () <0x188d3c0 + 0x0001f> in <filename unknown>:0 
  at Xamarin.Messaging.Client.MessageHandlerManager+<>c__DisplayClass17_1`1+<<RegisterHandlerAsync>b__3>d[TMessage].MoveNext () <0x3acbfc0 + 0x00257> in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x188f5d0 + 0x00035> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x188cf00 + 0x000b7> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x188ce60 + 0x00087> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x188ce10 + 0x0003f> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () <0x188cde0 + 0x0001f> in <filename unknown>:0 
  at Xamarin.Messaging.Client.MessagingClient+<>c__DisplayClass36_0`1+<<ReplyAsync>b__0>d[TRequest].MoveNext () <0x3acba50 + 0x0011b> in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x188f5d0 + 0x00035> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x188cf00 + 0x000b7> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x188ce60 + 0x00087> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x188ce10 + 0x0003f> in <filename unknown>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x188d600 + 0x00024> in <filename unknown>:0 
  at Xamarin.Messaging.Client.MessagingClient+<ReplyAsync>d__34`2[TRequest,TResponse].MoveNext () <0x3a8d4f0 + 0x00383> in <filename unknown>:0 
   --- End of inner exception stack trace ---
   at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__23`2.MoveNext() in C:\Users\builder\data\lanes\3062\0dd817c0\source\XamarinVS\src\Messaging\Xamarin.Messaging.Client\MessagingClient.cs:line 188
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__22`2.MoveNext() in C:\Users\builder\data\lanes\3062\0dd817c0\source\XamarinVS\src\Messaging\Xamarin.Messaging.Client\MessagingClient.cs:line 0
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__26`2.MoveNext() in C:\Users\builder\data\lanes\3062\0dd817c0\source\XamarinVS\src\Messaging\Xamarin.Messaging.Client\MessagingClient.cs:line 0
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__32`1.MoveNext() in C:\Users\builder\data\lanes\3062\0dd817c0\source\XamarinVS\src\Messaging\Xamarin.Messaging.Client\MessagingClient.cs:line 306
--- End of stack trace from previous location where exception was thrown ---
   at Xamarin.Messaging.Client.IMessagingClientExtensions.Execute(Action postAction) in C:\Users\builder\data\lanes\3062\0dd817c0\source\XamarinVS\src\Messaging\Xamarin.Messaging.Client\Extensions\IMessagingClientExtensions.cs:line 231
   at Xamarin.Messaging.Client.IMessagingClientExtensions.Post[TRequest](IMessagingClient client, TRequest request, Boolean retain, Int32 timeoutSecs) in C:\Users\builder\data\lanes\3062\0dd817c0\source\XamarinVS\src\Messaging\Xamarin.Messaging.Client\Extensions\IMessagingClientExtensions.cs:line 195
   at Xamarin.VisualStudio.Build.BuildClient.UploadItem(String path) in C:\Users\builder\data\lanes\3062\0dd817c0\source\XamarinVS\src\MSBuild\Xamarin.VisualStudio.Build\BuildClient.cs:line 99
   at Xamarin.VisualStudio.Build.TaskRunner.CopyRequiredInputFiles(Task task) in C:\Users\builder\data\lanes\3062\0dd817c0\source\XamarinVS\src\MSBuild\Xamarin.VisualStudio.Build\TaskRunner.cs:line 219
   at Xamarin.MacDev.Tasks.CollectBundleResources.Execute() in C:\Users\builder\data\lanes\3062\0dd817c0\source\XamarinVS\src\MSBuild\Xamarin.MacDev.Tasks\Tasks\CollectBundleResources.cs:line 14
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()

Best Answer

Answers

  • RonaldCliffordRonaldClifford USMember

    Played with this a bit more today but am completely lost as to what to do.

    This is an Urho application, I've followed all of the steps here: https://developer.xamarin.com/guides/cross-platform/urho/platform/ios/ and can't figure out why the CollectBundleResources task fails to copy this file over to the Mac.

    If there are any ideas what I need to look at to get this working, please let me know.

  • RonaldCliffordRonaldClifford USMember

    Thanks for your response. After making those changes, I now have code running on my iOS device along with the debugger in Visual Studio being attached. Sweet!

  • Hi Mikayla Hutchinson,

    Is above mentioned error fixed? I am also faced same problem while building the Xamarin.iOS app in VS 2013.

    Thanks in Advance!

    Error 15 The "CollectBundleResources" task failed unexpectedly.
    Xamarin.Messaging.Exceptions.MessagingRemoteException: An error occured on client Build4044 while executing a reply for topic xvs/Build/4.0.4.4/copy-item/ProjectSightMobileiPadClient/7cbf3b3/metro.fnt ---> System.IO.DirectoryNotFoundException: Could not find a part of the path "/Users/trengan/Library/Caches/Xamarin/mtbs/builds/ProjectSightMobileiPadClient/7cbf3b3c0831a59a214f5aa3730717aa/C:/ProjectSight/Mobile/packages/fusion-field3d.1.0.0-alpha003-00371/build/Assets/fonts/metro.fnt"
    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) [0x0025f] in <8f2c484307284b51944a1a13a14c0266>:0
    at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
    at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int)
    at System.IO.File.Create (System.String path, System.Int32 bufferSize) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
    at System.IO.File.Create (System.String path) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
    at Xamarin.Messaging.Build.Handlers.CopyItemMessageHandler+<>c__DisplayClass1_0.b__0 () [0x0005a] in <4ed21ad43dc642898badbbea72be0268>:0
    at System.Threading.Tasks.Task.InnerInvoke () [0x00012] in <8f2c484307284b51944a1a13a14c0266>:0
    at System.Threading.Tasks.Task.Execute () [0x00016] in <8f2c484307284b51944a1a13a14c0266>:0
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0

  • Hi Mikayla Hutchinson,

    Is above mentioned error fixed? I am also faced same problem while building the Xamarin.iOS app in VS 2013.

    Error 15 The "CollectBundleResources" task failed unexpectedly.
    Xamarin.Messaging.Exceptions.MessagingRemoteException: An error occured on client Build4044 while executing a reply for topic xvs/Build/4.0.4.4/copy-item/ProjectSightMobileiPadClient/7cbf3b3/metro.fnt ---> System.IO.DirectoryNotFoundException: Could not find a part of the path "/Users/trengan/Library/Caches/Xamarin/mtbs/builds/ProjectSightMobileiPadClient/7cbf3b3c0831a59a214f5aa3730717aa/C:/ProjectSight/Mobile/packages/fusion-field3d.1.0.0-alpha003-00371/build/Assets/fonts/metro.fnt"
    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) [0x0025f] in <8f2c484307284b51944a1a13a14c0266>:0
    at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
    at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int)
    at System.IO.File.Create (System.String path, System.Int32 bufferSize) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
    at System.IO.File.Create (System.String path) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
    at Xamarin.Messaging.Build.Handlers.CopyItemMessageHandler+<>c__DisplayClass1_0.b__0 () [0x0005a] in <4ed21ad43dc642898badbbea72be0268>:0
    at System.Threading.Tasks.Task.InnerInvoke () [0x00012] in <8f2c484307284b51944a1a13a14c0266>:0
    at System.Threading.Tasks.Task.Execute () [0x00016] in <8f2c484307284b51944a1a13a14c0266>:0
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0

  • Hi Mikayla Hutchinson,

    Is above mentioned error fixed? I am also faced same problem while building the Xamarin.iOS app in VS 2013.

    Thanks in Advance!

    Error 15 The "CollectBundleResources" task failed unexpectedly.
    Xamarin.Messaging.Exceptions.MessagingRemoteException: An error occured on client Build4044 while executing a reply for topic xvs/Build/4.0.4.4/copy-item/ProjectSightMobileiPadClient/7cbf3b3/metro.fnt ---> System.IO.DirectoryNotFoundException: Could not find a part of the path "/Users/trengan/Library/Caches/Xamarin/mtbs/builds/ProjectSightMobileiPadClient/7cbf3b3c0831a59a214f5aa3730717aa/C:/ProjectSight/Mobile/packages/fusion-field3d.1.0.0-alpha003-00371/build/Assets/fonts/metro.fnt"
    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) [0x0025f] in <8f2c484307284b51944a1a13a14c0266>:0
    at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
    at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int)
    at System.IO.File.Create (System.String path, System.Int32 bufferSize) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
    at System.IO.File.Create (System.String path) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
    at Xamarin.Messaging.Build.Handlers.CopyItemMessageHandler+<>c__DisplayClass1_0.b__0 () [0x0005a] in <4ed21ad43dc642898badbbea72be0268>:0
    at System.Threading.Tasks.Task.InnerInvoke () [0x00012] in <8f2c484307284b51944a1a13a14c0266>:0
    at System.Threading.Tasks.Task.Execute () [0x00016] in <8f2c484307284b51944a1a13a14c0266>:0
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0

  • Hema.0937Hema.0937 USMember ✭✭

    I have add a reference of a dll from external drive for IOS project and the mac fails to buildany idea how to fix
    An error occured on the receiver while executing a post for topic xvs/Build/4.3.0.789/copy-item/MyCommunity.Mobile.iOS/ecff70d%2FCore.XApp.dll and client build11736hpona
    2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(535,3): warning : An error occured on client Build430789 while executing a reply for topic xvs/Build/4.3.0.789/copy-item/MyCommunity.Mobile.iOS/ecff70d%2FCore.XApp.dll
    2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(535,3): warning : at Xamarin.Messaging.Client.MessagingClient.d__23`2.MoveNext() in C:\d\lanes\4033\4d2ed3d4\source\xamarinvs\src\Messaging\Xamarin.Messaging.Client\MessagingClient.cs:line 178
    2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(535,3): error MSB4018: The "UnpackLibraryResources" task failed unexpectedly.

  • Hema.0937Hema.0937 USMember ✭✭

    I have add a reference of a dll from external drive for IOS project and the mac fails to buildany idea how to fix An error occured on the receiver while executing a post for topic xvs/Build/4.3.0.789/copy-item/MyCommunity.Mobile.iOS/ecff70d%2FCore.XApp.dll

  • Hema.0937Hema.0937 USMember ✭✭

    I have add a reference of a dll from external drive for IOS project and the mac fails to buildany idea how to fix An error occured on the receiver while executing a post for topic xvs/Build/4.3.0.789/copy-item/MyCommunity.Mobile.iOS/ecff70d%2FCore.XApp.dll

  • Hema.0937Hema.0937 USMember ✭✭

    I have add a reference of a dll from external drive for IOS project and the mac fails to buildany idea how to fix An error occured on the receiver while executing a post for topic xvs/Build/4.3.0.789/copy-item/MyCommunity.Mobile.iOS/ecff70d%2FCore.XApp.dll

  • Hema.0937Hema.0937 USMember ✭✭

    I have add a reference of a dll from external drive for IOS project and the mac fails to buildany idea how to fix An error occured on the receiver while executing a post for topic xvs/Build/4.3.0.789/copy-item/MyCommunity.Mobile.iOS/ecff70d%2FCore.XApp.dll

  • Hema.0937Hema.0937 USMember ✭✭

    I have add a reference of a dll from external drive for IOS project and the mac fails to buildany idea how to fix An error occured on the receiver while executing a post for topic xvs/Build/4.3.0.789/copy-item/MyCommunity.Mobile.iOS/ecff70d%2FCore.XApp.dll

  • Hema.0937Hema.0937 USMember ✭✭

    I have add a reference of a dll from external drive for IOS project and the mac fails to buildany idea how to fix An error occured on the receiver while executing a post for topic xvs/Build/4.3.0.789/copy-item/MyCommunity.Mobile.iOS/ecff70d%2FCore.XApp.dll

Sign In or Register to comment.