Bug 19499 - Can build with components
Summary: Can build with components
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 7.2.3
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
: 19516 ()
Depends on:
Reported: 2014-05-02 17:08 UTC by NeoDarque
Modified: 2014-05-04 14:32 UTC (History)
4 users (show)

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

Screen capture of invalid references (318.37 KB, image/jpeg)
2014-05-02 17:08 UTC, NeoDarque
IDE log file (34.73 KB, application/octet-stream)
2014-05-02 17:08 UTC, NeoDarque
Component log file (1.40 KB, application/octet-stream)
2014-05-02 17:09 UTC, NeoDarque

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:

Description NeoDarque 2014-05-02 17:08:12 UTC
Created attachment 6718 [details]
Screen capture of invalid references

When opening an existing project in XS 5.0 (that works just fine in older versions of XS), both two of my added components (ZipArchive & Json.Net) indicates that their references have not been added to the project despite the fact that they are visible under references. (See attached screenshot). If I remove the existing references and add new ones then XS is happy again.

Compiling for the emulator now works fine, but if I compile for iOS device I get 3 errors:

Error #1
Error MT5211: Native linking failed, undefined Objective-C class: _OBJC_CLASS_$_ZipArchiveDelegate. If '_OBJC_CLASS_$_ZipArchiveDelegate' is a protocol from a third-party binding, please check that it has the [Protocol] attribute in its api definition file, otherwise verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5211) (Involve)

Error #2
Error MT5210: Native linking failed, undefined symbol: _OBJC_METACLASS_$_ZipArchiveDelegate. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. (MT5210) (Involve)

Error #3
Error MT5202: Native linking failed. Please review the build log. (MT5202) (Involve)

Let me know if I can provide any further information. Thanks!

Btw, XS 5.0 looks great! :)

Comment 1 NeoDarque 2014-05-02 17:08:48 UTC
Created attachment 6719 [details]
IDE log file
Comment 2 NeoDarque 2014-05-02 17:09:10 UTC
Created attachment 6720 [details]
Component log file
Comment 3 Sebastien Pouliot 2014-05-03 11:26:49 UTC
The 3rd party author of ZipArchive has not updated his component to be compatible with the new registrars [1] requirements. 

The new registrars are default in 7.2.1 [2] but were introduced a year ago in 6.2.6 [3]. They fixes several issues but can require some (generally minor) changes to bindings. Most components have been updated, some for a long time and some recently.

The workaround is to use the older registrars by adding this to the "Additional mtouch arguments" of your project:


[1] http://docs.xamarin.com/guides/ios/advanced_topics/registrar/
[2] http://docs.xamarin.com/releases/ios/xamarin.ios_7/xamarin.ios_7.2/#1
[3] http://docs.xamarin.com/releases/ios/xamarin.ios_6/xamarin.ios_6.2/

p.s. for the issues specific to XS5 can you please file a separate bug report (on the "Xamarin Studio" product). You can copy/paste the top part of this bug report. Thanks!
Comment 4 Sebastien Pouliot 2014-05-04 14:32:57 UTC
*** Bug 19516 has been marked as a duplicate of this bug. ***