Bug 60091 - I just updated Visual studio for Mac. On this I am getting an error saying: -Failed to compile the generated registrar code.
Summary: I just updated Visual studio for Mac. On this I am getting an error saying: ...
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Debugger ()
Version: XI 11.4 (d15-5)
Hardware: All All
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-10-10 14:47 UTC by Vishwajit Shep
Modified: 2017-11-17 06:36 UTC (History)
3 users (show)

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


Attachments
It contains the output after build is failed (16.50 KB, text/plain)
2017-10-10 14:47 UTC, Vishwajit Shep
Details


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 or GitHub 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 FIXED

Description Vishwajit Shep 2017-10-10 14:47:57 UTC
Created attachment 25247 [details]
It contains the output after build is failed

This is the data from the output window:-

1>  MeeloApp -> D:\FinalBuild\GoogleDrive\MeeloApp\MeeloApp\MeeloApp\MeeloApp\bin\Debug\MeeloApp.dll
2>------ Rebuild All started: Project: MeeloApp.iOS, Configuration: Debug iPhone ------
2>  Connecting to Mac server 192.168.1.197...
2>  No way to resolve conflict between "System.Xml.ReaderWriter, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Xml.ReaderWriter, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Choosing "System.Xml.ReaderWriter, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" arbitrarily.
2>  No way to resolve conflict between "System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "System.Runtime.Serialization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e". Choosing "System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.
2>  No way to resolve conflict between "System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "System.Xml.Linq, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Choosing "System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.
2>  Consider app.config remapping of assembly "System.IO, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.IO\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.IO.dll] to Version "4.0.10.0" [] to solve conflict and get rid of warning.
2>  Consider app.config remapping of assembly "System.Threading, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Threading\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Threading.dll] to Version "4.0.10.0" [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Facades\System.Threading.dll] to solve conflict and get rid of warning.
2>  Consider app.config remapping of assembly "System.Globalization, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Globalization\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Globalization.dll] to Version "4.0.10.0" [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Facades\System.Globalization.dll] to solve conflict and get rid of warning.
2>  Consider app.config remapping of assembly "System.Threading.Tasks, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Threading.Tasks\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Threading.Tasks.dll] to Version "4.0.10.0" [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Facades\System.Threading.Tasks.dll] to solve conflict and get rid of warning.
2>  Consider app.config remapping of assembly "System.Runtime.Extensions, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Extensions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Extensions.dll] to Version "4.0.10.0" [] to solve conflict and get rid of warning.
2>  Consider app.config remapping of assembly "System.Text.RegularExpressions, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Text.RegularExpressions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Text.RegularExpressions.dll] to Version "4.0.10.0" [] to solve conflict and get rid of warning.
2>  Consider app.config remapping of assembly "System.Xml.ReaderWriter, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml.ReaderWriter\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Xml.ReaderWriter.dll] to Version "4.1.0.0" [] to solve conflict and get rid of warning.
2>  Consider app.config remapping of assembly "System.Diagnostics.Debug, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Diagnostics.Debug\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Diagnostics.Debug.dll] to Version "4.0.10.0" [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Facades\System.Diagnostics.Debug.dll] to solve conflict and get rid of warning.
2>  Consider app.config remapping of assembly "System.Reflection, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Reflection\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Reflection.dll] to Version "4.0.10.0" [] to solve conflict and get rid of warning.
2>  Consider app.config remapping of assembly "System.Linq.Expressions, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Linq.Expressions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Linq.Expressions.dll] to Version "4.0.10.0" [] to solve conflict and get rid of warning.
2>  Consider app.config remapping of assembly "System.Text.Encoding, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Text.Encoding\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Text.Encoding.dll] to Version "4.0.10.0" [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Facades\System.Text.Encoding.dll] to solve conflict and get rid of warning.
2>  Consider app.config remapping of assembly "System.Runtime, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.dll] to Version "4.0.20.0" [] to solve conflict and get rid of warning.
2>  Consider app.config remapping of assembly "System.Collections, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Collections\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Collections.dll] to Version "4.0.10.0" [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Facades\System.Collections.dll] to solve conflict and get rid of warning.
2>  Consider app.config remapping of assembly "System.Net.Primitives, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Net.Primitives\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Primitives.dll] to Version "4.0.10.0" [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Facades\System.Net.Primitives.dll] to solve conflict and get rid of warning.
2>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3276: Found conflicts between different versions of the same dependent assembly. Please set the "AutoGenerateBindingRedirects" property to true in the project file. For more information, see http://go.microsoft.com/fwlink/?LinkId=294190.
2>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3277: Found conflicts between different versions of the same dependent assembly that could not be resolved.  These reference conflicts are listed in the build log when log verbosity is set to detailed.
2>D:\FinalBuild\GoogleDrive\MeeloApp\MeeloApp\MeeloApp\MeeloApp.iOS\CustomRenderer\CustomMapRenderer.cs(155,30,155,32): warning CS0168: The variable 'ex' is declared but never used
2>D:\FinalBuild\GoogleDrive\MeeloApp\MeeloApp\MeeloApp\MeeloApp.iOS\Helpers\AuthenticationHelper.cs(91,60,91,62): warning CS0168: The variable 'ex' is declared but never used
2>D:\FinalBuild\GoogleDrive\MeeloApp\MeeloApp\MeeloApp\MeeloApp.iOS\Helpers\AuthenticationHelper.cs(113,52,113,70): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
2>D:\FinalBuild\GoogleDrive\MeeloApp\MeeloApp\MeeloApp\MeeloApp.iOS\CustomRenderer\CustomMapRenderer.cs(25,16,25,29): warning CS0169: The field 'CustomMapRenderer.customPinView' is never used
2>  MeeloApp.iOS -> D:\FinalBuild\GoogleDrive\MeeloApp\MeeloApp\MeeloApp\MeeloApp.iOS\bin\iPhone\Debug\MeeloApp.iOS.exe
2>  Detected signing identity:
2>    Code Signing Key: "iPhone Developer: Sameer Kutty (MM4LVSL884)" (369952C3C13F47276102F325932A645A628813E6)
2>    Provisioning Profile: "redbytes_DEV" (5ca58a8a-3963-4e8b-8abf-73589b453a41)
2>    Bundle Id: com.redbytes.meeloapp
2>    App Id: M2QN3YN5JY.com.redbytes.meeloapp
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): warning : The dependency 'System.Threading.Tasks, Version=1.5.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of the assembly 'Microsoft.OData.ProxyExtensions, Version=1.0.35.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' was not found. Please review the project's references.
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): warning : The dependency 'System.Threading.Tasks, Version=1.5.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of the assembly 'Microsoft.Office365.Discovery, Version=1.0.22.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' was not found. Please review the project's references.
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): warning : Could not compute a complete dependency map for the project. This will result in slower build times because Xamarin.iOS can't properly detect what needs to be rebuilt (and what does not need to be rebuilt). Please review previous warnings for more details.
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): warning : The dependency 'System.Threading.Tasks, Version=1.5.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of the assembly 'Microsoft.OData.ProxyExtensions, Version=1.0.35.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' was not found. Please review the project's references.
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): warning : The dependency 'System.Threading.Tasks, Version=1.5.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of the assembly 'Microsoft.Office365.Discovery, Version=1.0.22.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' was not found. Please review the project's references.
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): warning : Could not compute a complete dependency map for the project. This will result in slower build times because Xamarin.iOS can't properly detect what needs to be rebuilt (and what does not need to be rebuilt). Please review previous warnings for more details.
2>  Process exited with code 1, command:
2>  /Users/Shailendra/Desktop/Xcode 2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang  -Wno-receiver-forward-class -gdwarf-2 -I/Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot '/Users/Shailendra/Desktop/Xcode 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk' -Qunused-arguments -miphoneos-version-min=8.0 -arch arm64 -c -o /Users/Shailendra/Library/Caches/Xamarin/mtbs/builds/MeeloApp.iOS/ce3c87451f3f72bec96a1af1d9060616/obj/iPhone/Debug/mtouch-cache/arm64/registrar.o -x objective-c++ -DDEBUG /Users/Shailendra/Library/Caches/Xamarin/mtbs/builds/MeeloApp.iOS/ce3c87451f3f72bec96a1af1d9060616/obj/iPhone/Debug/mtouch-cache/64/registrar.m
2>  /Users/Shailendra/Library/Caches/Xamarin/mtbs/builds/MeeloApp.iOS/ce3c87451f3f72bec96a1af1d9060616/obj/iPhone/Debug/mtouch-cache/64/registrar.m:3060:8: error: unknown type name 'MKClusterAnnotation'; did you mean 'MKPointAnnotation'?
2>  static MKClusterAnnotation * native_to_managed_trampoline_63 (id self, SEL _cmd, MonoMethod **managed_method_ptr, MKMapView * p0, NSArray * p1, uint32_t token_ref)
2>         ^~~~~~~~~~~~~~~~~~~
2>         MKPointAnnotation
2>  /Users/Shailendra/Desktop/Xcode 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/System/Library/Frameworks/MapKit.framework/Headers/MKPointAnnotation.h:16:12: note: 'MKPointAnnotation' declared here
2>  @interface MKPointAnnotation : MKShape
2>             ^ 
2>  /Users/Shailendra/Library/Caches/Xamarin/mtbs/builds/MeeloApp.iOS/ce3c87451f3f72bec96a1af1d9060616/obj/iPhone/Debug/mtouch-cache/64/registrar.m:3068:2: error: unknown type name 'MKClusterAnnotation'; did you mean 'MKPointAnnotation'?
2>          MKClusterAnnotation * res = {0};
2>          ^~~~~~~~~~~~~~~~~~~
2>          MKPointAnnotation
2>  /Users/Shailendra/Desktop/Xcode 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/System/Library/Frameworks/MapKit.framework/Headers/MKPointAnnotation.h:16:12: note: 'MKPointAnnotation' declared here
2>  @interface MKPointAnnotation : MKShape
2>             ^ 
2>  /Users/Shailendra/Library/Caches/Xamarin/mtbs/builds/MeeloApp.iOS/ce3c87451f3f72bec96a1af1d9060616/obj/iPhone/Debug/mtouch-cache/64/registrar.m:11603:4: error: expected a type
2>          -(MKClusterAnnotation *) mapView:(MKMapView *)p0 clusterAnnotationForMemberAnnotations:(NSArray *)p1;
2>            ^ 
2>  /Users/Shailendra/Library/Caches/Xamarin/mtbs/builds/MeeloApp.iOS/ce3c87451f3f72bec96a1af1d9060616/obj/iPhone/Debug/mtouch-cache/64/registrar.m:11665:4: error: expected a type
2>          -(MKClusterAnnotation *) mapView:(MKMapView *)p0 clusterAnnotationForMemberAnnotations:(NSArray *)p1
2>            ^ 
2>  4 errors generated.
2>  Process exited with code 1, command:
2>  /Users/Shailendra/Desktop/Xcode 2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang  -Wno-receiver-forward-class -gdwarf-2 -I/Library/Frameworks/Xamarin.iOS.framework/Versions/11.2.0.11/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot '/Users/Shailendra/Desktop/Xcode 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk' -Qunused-arguments -miphoneos-version-min=8.0 -arch armv7 -c -o /Users/Shailendra/Library/Caches/Xamarin/mtbs/builds/MeeloApp.iOS/ce3c87451f3f72bec96a1af1d9060616/obj/iPhone/Debug/mtouch-cache/armv7/registrar.o -x objective-c++ -DDEBUG /Users/Shailendra/Library/Caches/Xamarin/mtbs/builds/MeeloApp.iOS/ce3c87451f3f72bec96a1af1d9060616/obj/iPhone/Debug/mtouch-cache/32/registrar.m
2>  /Users/Shailendra/Library/Caches/Xamarin/mtbs/builds/MeeloApp.iOS/ce3c87451f3f72bec96a1af1d9060616/obj/iPhone/Debug/mtouch-cache/32/registrar.m:3831:8: error: unknown type name 'MKClusterAnnotation'; did you mean 'MKPointAnnotation'?
2>  static MKClusterAnnotation * native_to_managed_trampoline_76 (id self, SEL _cmd, MonoMethod **managed_method_ptr, MKMapView * p0, NSArray * p1, uint32_t token_ref)
2>         ^~~~~~~~~~~~~~~~~~~
2>         MKPointAnnotation
2>  /Users/Shailendra/Desktop/Xcode 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/System/Library/Frameworks/MapKit.framework/Headers/MKPointAnnotation.h:16:12: note: 'MKPointAnnotation' declared here
2>  @interface MKPointAnnotation : MKShape
2>             ^ 
2>  /Users/Shailendra/Library/Caches/Xamarin/mtbs/builds/MeeloApp.iOS/ce3c87451f3f72bec96a1af1d9060616/obj/iPhone/Debug/mtouch-cache/32/registrar.m:3839:2: error: unknown type name 'MKClusterAnnotation'; did you mean 'MKPointAnnotation'?
2>          MKClusterAnnotation * res = {0};
2>          ^~~~~~~~~~~~~~~~~~~
2>          MKPointAnnotation
2>  /Users/Shailendra/Desktop/Xcode 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/System/Library/Frameworks/MapKit.framework/Headers/MKPointAnnotation.h:16:12: note: 'MKPointAnnotation' declared here
2>  @interface MKPointAnnotation : MKShape
2>             ^ 
2>  /Users/Shailendra/Library/Caches/Xamarin/mtbs/builds/MeeloApp.iOS/ce3c87451f3f72bec96a1af1d9060616/obj/iPhone/Debug/mtouch-cache/32/registrar.m:11776:4: error: expected a type
2>          -(MKClusterAnnotation *) mapView:(MKMapView *)p0 clusterAnnotationForMemberAnnotations:(NSArray *)p1;
2>            ^ 
2>  /Users/Shailendra/Library/Caches/Xamarin/mtbs/builds/MeeloApp.iOS/ce3c87451f3f72bec96a1af1d9060616/obj/iPhone/Debug/mtouch-cache/32/registrar.m:11838:4: error: expected a type
2>          -(MKClusterAnnotation *) mapView:(MKMapView *)p0 clusterAnnotationForMemberAnnotations:(NSArray *)p1
2>            ^ 
2>  4 errors generated.
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(747,3): error : Failed to compile the generated registrar code. Please file a bug report at http://bugzilla.xamarin.com
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========
Comment 1 John Miller [MSFT] 2017-10-10 14:52:31 UTC
Hi Vishwajit,

Make sure your Mac has the latest updates for Xamarin.iOS and Xcode 9. If you do, please attach the full version information from VS on both Windows and Mac. 

Easiest way to get exact version information:
- On Visual Studio for Mac: "Visual Studio" menu, "About Visual Studio" item, "Show Details" button.
- On Visual Studio for Windows: "Help menu", "About Microsoft Visual Studio" item.
Then copy/paste the version information (you can use the "Copy Information" button).
Comment 2 Vishwajit Shep 2017-10-11 06:46:53 UTC
Hello John,
Thank you for your. I am updating my Xcode and  Mac iOS.
Also, as you needed, my Visual Studio version is 
Visual Studio Community 2017 for Mac
Version 7.2 (build 636)
Comment 3 Manuel de la Peña [MSFT] 2017-11-15 12:49:10 UTC
@Vishwajit Shep did the update resolve the issue?
Comment 4 Vishwajit Shep 2017-11-17 06:36:00 UTC
Yes @Manuel de la Peña. This issue is resolved after the mentioned updates.