Bug 45214 - error occured on client Build420703 while executing a reply for topic xvs/Build/4.2.0.703/execute-task/....iOS/d021648%2FMTouch
Summary: error occured on client Build420703 while executing a reply for topic xvs/Bui...
Status: RESOLVED ANSWERED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.3.0 (C9)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-10-08 15:33 UTC by Nhat Ho
Modified: 2016-10-14 21:05 UTC (History)
7 users (show)

Tags: BZCU
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description Nhat Ho 2016-10-08 15:33:45 UTC
Error log:

3>  Sending Message Xamarin.Messaging.MessageStatusMessage to topic xma/message-status (TaskId:341)
3>  Sending Request Xamarin.Messaging.Build.Contracts.ExecuteTaskMessage to topic xvs/Build/4.2.0.703/execute-task/ButtonFashionApp.iOS/d021648%2FMTouch (TaskId:341)
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(700,3): warning : An error occured on the receiver while executing a post for topic xvs/Build/4.2.0.703/execute-task/ButtonFashionApp.iOS/d021648%2FMTouch and client build2560NhatH
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(700,3): warning : An error occured on client Build420703 while executing a reply for topic xvs/Build/4.2.0.703/execute-task/ButtonFashionApp.iOS/d021648%2FMTouch
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(700,3): warning :    at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__23`2.MoveNext() in c:\Users\builder\data\lanes\3822\3b7df6f5\source\xamarinvs\src\Messaging\Xamarin.Messaging.Client\MessagingClient.cs:line 178
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(700,3): error : An error occured on client Build420703 while executing a reply for topic xvs/Build/4.2.0.703/execute-task/ButtonFashionApp.iOS/d021648%2FMTouch
3>  MTouch: 2016-10-08T11:28:23.8389939-04:00 - Finished (TaskId:341)
3>  Output Item(s): _NativeLibrary= (TaskId:341)
3>Done executing task "MTouch" -- FAILED. (TaskId:341)

The app runs successfully on Debug mode, and Release with iPhone Simulator. However, when I turn on Release with iPhone it throws this error (I need this to make build for TestFlight). Have anyone got the same error?
Comment 1 GuardRex 2016-10-09 02:59:01 UTC
Same here. First time project with Xamarin and first time trying to compile it today.

2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(700,3): warning : An error occured on the receiver while executing a post for topic xvs/Build/4.2.0.703/execute-task/XXXXXXXXXX.iOS/b2d1402%2FMTouch and client build7860guard
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(700,3): warning : An error occured on client Build420703 while executing a reply for topic xvs/Build/4.2.0.703/execute-task/XXXXXXXXXX.iOS/b2d1402%2FMTouch
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(700,3): warning :    at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__23`2.MoveNext() in c:\Users\builder\data\lanes\3822\3b7df6f5\source\xamarinvs\src\Messaging\Xamarin.Messaging.Client\MessagingClient.cs:line 178
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(700,3): error : An error occured on client Build420703 while executing a reply for topic xvs/Build/4.2.0.703/execute-task/XXXXXXXXXX.iOS/b2d1402%2FMTouch
Comment 2 GuardRex 2016-10-09 08:59:10 UTC
I see an exception above indicating some sort of path issue:

2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(528,3): warning : Failed to execute 'cp -f /Users/MYMAC/Library/Caches/Xamarin/mtbs/builds/MYAPP.iOS/061edb1dce6ba4f53ca308be00910eb7/C:/Users/USER/Documents/Visual Studio 2015/Projects/PATH_TO_APP_PROJECT/bin/Release/MYAPP.dll /Users/MYMAC/Library/Caches/Xamarin/XMA/Cache/e96f1dcf807f74bde03c649f1e03457c': ExitStatus=64

... and I think there was an issue somewhere about these long paths showing up, referring to where it places the mtbs/builds/... path in front of the local PC path ... before C: in the path above.
Comment 3 GuardRex 2016-10-09 09:03:34 UTC
I think the issue was that the path should be .../C/... not .../C:/...

... but I can't find the (open?) issue on it.
Comment 4 GuardRex 2016-10-09 09:21:45 UTC
I was able to fix the path issue (apparently) by moving the project to a folder on the HD under c:.

However, I'm still stuck with the "Xamarin.iOS.Common.targets(700,3): warning ..." exception in the OP.
Comment 5 Nhat Ho 2016-10-09 12:52:38 UTC
So I solved the problem, it seems stupid, and weird but it worked for me.
In iOS Properties (right click on iOS project and select Properties), under iPhone Launch Images and iPad Launch Images, I had to manually set them (not using LaunchImage from Asset). I would think LaunchImage will provide those images properly but apparently not. Besides, another thing Xamarin should do is keep these manually set images somewhere when we switch to use Asset for Launch Images, having to re-apply them everytime I switch is quite annoying. 

@GuardRex, hope this will solve your issues too.
Comment 6 GuardRex 2016-10-09 18:40:23 UTC
Thanks, but I'm still stuck.

What I've been doing, which is working with the iOS Simulator, is that I have a LaunchScreen.storyboard. I have one image for the launch screen, and I provided "LaunchScreen" for the "Launch Storyboard" setting in iOS Application Settings.

I don't follow when you say "I had to manually set them (not using LaunchImage from Asset)." By "Asset," do you mean "Asset Catalog?" ... Did you create one for the launch screens?
Comment 7 Nhat Ho 2016-10-09 19:43:13 UTC
In iPhone/iPad Launch Images, I created an Asset Catalogs with LaunchImage, and I used that in iOS Properties which threw me that error. After setting iPhone/iPad Launch Images to "Don't use Asset Catalogs" and provide the images directly into the thumbnails in this section the error was resolved.
Comment 8 GuardRex 2016-10-09 19:59:05 UTC
Ah, I see. Thanks for explaining.

My problem turned out to be a little different. I found the build log on the Mac. It had an entry for ...

System.InvalidOperationException: Bitcode is currently not supported on iOS.

I was using the LLVM compiler with Bitcode enabled. I stuck with the LLVM compiler, but I un-checked the "Enable Bitcode" checkbox.

... and it compiles now.

This was my fault for not going in search of the build log sooner. However, I would have liked to have seen that exception back in the VS Output window when the compilation was failing. It also would have been helpful if their walk-through docs spoke in more detail about the LLVM compiler and settings ... and other iOS Build Advanced settings.
Comment 9 Nhat Ho 2016-10-10 15:59:50 UTC
Everytime MBuild failed it takes me hours to figure out what I did wrong. There should be more detailed error messages, funny thing is this error is not mentioned in MTouch documents: https://developer.xamarin.com/guides/ios/troubleshooting/mtouch-errors/
Comment 10 mbrady 2016-10-11 00:02:11 UTC
GuardRex, I am in the same boat. Where do you find the build logs on the Mac? Everything I can find about build logs are just related to native Xcode build log locations, and there's nothing there for the Xamarin builds from VS2015.
Comment 11 GuardRex 2016-10-12 15:02:55 UTC
@mbrady Sorry for the late reply. On the Mac, they should be in Library/Logs/Xamarin-4.2.
Comment 12 Ashley Gazich [MSFT] 2016-10-14 20:12:26 UTC
Hello,

It looks like the issue for which this report was filed is no longer a problem for the original reporter, per Comment 5. As such, I will now close this bug report. 

@GuardRex @mbrady
Please feel free to file a new bug report with as many details as possible if you continue to have trouble. 

Here are some resources that may be helpful:

- When and how should I file a bug report?
https://developer.xamarin.com/guides/cross-platform/troubleshooting/questions/howto-file-bug/

- Xamarin.iOS Troubleshooting
https://developer.xamarin.com/guides/ios/troubleshooting/

- Connection Troubleshooting
https://developer.xamarin.com/guides/ios/getting_started/installation/windows/connecting-to-mac/troubleshooting/

- Where can I find my version information and logs?
https://developer.xamarin.com/guides/cross-platform/troubleshooting/questions/version-logs/


Thank you!
Xamarin Support
Comment 13 GuardRex 2016-10-14 21:05:39 UTC
Thanks ... I'm ok, but I did have to disable Bitcode to get rid of this exception.

> System.InvalidOperationException: Bitcode is currently not supported on iOS.

If that's not correct. If Xamarin is supposed to work with Bitcode enabled with the LLVM compiler, then let me know if I need to open a new issue on that, and I'll take care of getting that open.

If Bitcode really isn't supported, then we're ok here. I'm good.