Bug 42381 - Failed to compile the generated registrar code.
Summary: Failed to compile the generated registrar code.
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.1.0 (C7)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-07-06 11:19 UTC by Mikael Nensén
Modified: 2016-07-06 11:34 UTC (History)
3 users (show)

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


Attachments
Build output (1.18 MB, text/plain)
2016-07-06 11:19 UTC, Mikael Nensén
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 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 Mikael Nensén 2016-07-06 11:19:13 UTC
Created attachment 16589 [details]
Build output

Trying to compile results in "Failed to compile the generated registrar code.". I've attached the build log. I don't remember having this problem untill a recent update, the project had been on hold for a couple of months.

I'm guessing it's something to do with the following:
warning: method 'collectionView:numberOfItemsInSection:' in protocol 'UICollectionViewDataSource' not implemented [-Wprotocol] (TaskId:76)
1>  @implementation MvvmCross_Binding_iOS_Views_MvxBaseCollectionViewSource { }  (TaskId:76)
1>                  ^  (TaskId:76)

Excerpt from log:
1>  /Users/development/Library/Caches/Xamarin/mtbs/builds/MerlotAppiOS/a6371690b562b25a743791465736ac3c/obj/iPhone/Debug/mtouch-cache/64/registrar.m:4368:17: warning: method 'collectionView:numberOfItemsInSection:' in protocol 'UICollectionViewDataSource' not implemented [-Wprotocol] (TaskId:76)
1>  @implementation MvvmCross_Binding_iOS_Views_MvxBaseCollectionViewSource { }  (TaskId:76)
1>                  ^  (TaskId:76)
1>  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionView.h:51:1: note: method 'collectionView:numberOfItemsInSection:' declared here (TaskId:76)
1>  - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section; (TaskId:76)
1>  ^  (TaskId:76)
1>  /Users/development/Library/Caches/Xamarin/mtbs/builds/MerlotAppiOS/a6371690b562b25a743791465736ac3c/obj/iPhone/Debug/mtouch-cache/64/registrar.m:7321:103: error: expected ':' (TaskId:76)
1>                          rv = ((id (*)(objc_super*, SEL, CGRect)) objc_msgSendSuper) (&super, @selector (initWithFrame:frame), p0); (TaskId:76)
1>                                                                                                                             ^  (TaskId:76)
1>                                                                                                                             :  (TaskId:76)
1>  1 warning and 1 error generated. (TaskId:76)
1>   (TaskId:76)
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(681,3): error : Failed to compile the generated registrar code. Please file a bug report at http://bugzilla.xamarin.com
Comment 1 Mikael Nensén 2016-07-06 11:34:29 UTC
I was using GMImagePicker NuGet package version 0.8, removing it fixed the build.

https://bugzilla.xamarin.com/show_bug.cgi?id=42184