Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
1. Open Frog Scroller sample in X.S.
2. Select linker option Link all assemblies.
3. Debug or run the application.
Application is throwing 'System.InavlidOperationException' with link all assemblies Linker option. However its working fine with Don't link and Link sdk assemblies only options.
Stack trace: https://gist.github.com/atin360/3e1b0b6d57a7a1b4aff3
iOS device log: https://gist.github.com/atin360/28e0649c0a2ee0348631
Application should run successfully with link all assemblies option.
XS 4.0.7- 0f1da1e7f83345a52a4b68b8142ce699a6b2ada0
Mono 3.0.11 ((no/edc181c)
Device info: iPhone4 6.1.3
App info: monotouch-samples-master974d38caf99f18d189b58da0ecd7d0f146de5f72
Regression status: NOT REGRESSION,This issue also exist with stable MT 188.8.131.52
I cannot duplicate the issue.
I nearly certain that this issue only existed when using `clang` (as show in your log in comment #2) and was fixed by Rolf on  (same commit as bug #12941). Since then we moved back to use `gcc`, by default for 6.3.x (unless `gcc` is not found, e.g. xcode5).
If I'm wrong (and you can duplicate this again) please re-open.
*** This bug has been marked as a duplicate of bug 12941 ***
Today, We have checked this issue with following builds:
XS 4.0.9(build 15)
Mono 3.1.0 ((no/1c4db5e)
This issue still exists Application is throwing 'System.InavlidOperationException' with link all
assemblies Linker option. Hence Reopening this issue.
Given that Sebastien says Xcode version is a factor here in comment 3, please include the Xcode version. If it's Xcode 5, then he knows what the issue is, otherwise there is more investigation needed.
This issue is exist with xcode 4.6.2, xcode 4.6 and xcode 4.5.
Sorry for the confusion, my comment #3 was a reply to comment #2 - and that's fixed.
This is a sample issue. Note that unlike "Link SDK" (where Xamarin *has* to get right), "Link All" works only if the applications (the sample in this case) takes care about it.
IOW there's no guarantee any application will work with "Link All" if it as not been developped/tested with this in mind. It also means I'm not gonna fix every sample to work under "Link All" ;-)
You can either:
1. keep a list of apps what are "linker friendly" (i.e. where "Link All" works) and ensure it does not regress over time; or
2. find the original sample author to fix its samples to work under all settings; or
3. mix 1 and 2
note: updated severity and target
Modified FrogScroller sample app to use "Linksdk assembly" only.
Version 4.2.2 (build 2)
Installation UUID: 5ed3a124-4b77-4c6f-beb9-c830fd815e2a
Mono 3.2.5 ((no/964e8f0)
GTK+ 2.24.20 theme: Raleigh
Package version: 302050000
Apple Developer Tools
Xcode 5.0.1 (3335.23)
Version: 184.108.40.206 (Enterprise Edition)
Build date: 2013-11-11 16:04:00-0500
Device: iPad 7.0.3
Today, we have checked this issue with:
XS 4.2.3(build 29)
App info: monotouch-samples-master 4c4db9c34329c89c9f9b739d9b98c7e11d3324ae
Device info: iPhone 4s 7.0.4
Now the application is not throwing exception with Link All assemblies option, application is run successfully on device and simulator.
Hence marking this as Verified.