Bug 11934 - Contents of 'MonoCatalogMonoDevelop' ios sample not displaying on simulator
Summary: Contents of 'MonoCatalogMonoDevelop' ios sample not displaying on simulator
Alias: None
Product: iOS
Classification: Xamarin
Component: Samples ()
Version: 6.3.x
Hardware: PC Mac OS
: High major
Target Milestone: 6.4 (async)
Assignee: Rolf Bjarne Kvinge [MSFT]
Depends on:
Reported: 2013-04-24 08:40 UTC by Atin
Modified: 2013-07-19 04:46 UTC (History)
8 users (show)

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 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 Atin 2013-04-24 08:40:42 UTC
Steps to reproduce:
1. Open MonoCatalogMonoDevelop ios sample in X.S.
2. Debug or run the application.

Actual result:
Contents of 'MonoCatalogMonoDevelop' ios sample not displaying on simulator, However it is successfully displaying
on ios device and we are getting a message in Application output of X.S "Application windows are expected to have a root view controller at the end of application launch".

Below is the screencast for the same:

Expected result:
Contents of sample like,Alert, Address book,Buttons,controls etc.Should displayed on simulator.

Environment details:
All Mac
XS 4.0.4 - a8bf58d398a13bcc7595f5f85adae04865a834d4
Mono 3.0.10(no/eff4cb5)

Regression status:
REGRESSION: This is working fine with MT and with Mono 2.10.12
Comment 1 Saurabh 2013-07-02 13:42:30 UTC
Today, we have checked this issue with following builds:

Mono 3.0.12
XS 4.0.9(Build 12)

App info:
monotouch-samples-master-3.0. - 4638ae8895e6af6ba62ae30d0c7e28e92c6214b4

Now, application is working fine on DEBUG mode with simulator and options of the application display on the simulator.

But issue still exist on RELEASE mode with simulator and options of the application does not display on the simulator.

This is working fine with device on both DEBUG and RELEASE mode.
Comment 2 Saurabh 2013-07-03 10:18:23 UTC
This issue exists on both DEBUG and RELEASE mode with following linkers:

1. Link SDK assemblies only
2. Link all assemblies 

Simulator: iOS 6.0(Xcode 4.5)

Screencast: http://screencast.com/t/4sejnA1W
iOS log: https://gist.github.com/atin360/fb36669e27c95babe705

Mono 3.0.12
XS 4.0.9(Build 12)

App info:
monotouch-samples-master-3.0. - 4638ae8895e6af6ba62ae30d0c7e28e92c6214b4

This is working fine with "Don't link" linker option on both Debug and Release mode with simulator.
Comment 3 PJ 2013-07-03 14:38:16 UTC
This seems like an iOS bug, not an XS bug. Can you confirm this with the latest package?
Comment 4 Akhilesh kumar 2013-07-03 14:48:19 UTC
We are facing same issue as per comment 2 with MT
Comment 5 PJ 2013-07-03 14:50:11 UTC
I can reproduce on (new beta candidate), but not on (previous beta).
Comment 6 PJ 2013-07-03 15:03:31 UTC
Regression, so blocking.
Comment 7 Sebastien Pouliot 2013-07-06 13:28:13 UTC
It works fine if you add: `--registrar=olddynamic` to the aditional mtouch options.

That's what the device uses, but not the defaut for the iOS simulator (it uses dynamic).
Comment 8 Sebastien Pouliot 2013-07-07 11:27:38 UTC
Rolf, since we switched back to OldDynamic for the simlauncher [1] then I guess there's no reason [2] for not using the OldDynamic too when the launcher gets rebuilt (like enabling the linker would do).

I'm changed mtouch [3] to use OldDynamic until this is resolved (and think both settings, old or new, should remain identical anyway). 

Not closing the bug (until [2] is resolved) but I'm reducing it to major (from blocker, since we did not block anyway).

PJ: until recently [1] both cases used the same registrar (and that changed a few times). That likely explains why this was working (6.2), not working (6.3.4), working (6.3.6) and then not working (6.3.7) again.

[1] 5970bdf9cb7e1331de7dcfc892fe233816709015
[2] at least until the Dynamic registration issue is found
[3] b6a67345a9acb5f4dd32c5d7d289b99a5b12e172
Comment 9 Rolf Bjarne Kvinge [MSFT] 2013-07-15 09:13:57 UTC
The difference between simlauncher and other builds was not intentional.

I'll look into [2].
Comment 10 Rolf Bjarne Kvinge [MSFT] 2013-07-16 12:48:11 UTC
[2] fixed in monotouch/master-3.0 (fbfa0365b369e9437f27afe3c715e10f60dd0888).
Comment 11 narayanp 2013-07-19 04:46:13 UTC
Today I have checked this issue with following builds:

All Mac
X.S 4.0.10(build 5)
Mono 3.1.2
Xcode 4.5

And we have Run the application "MonoCatalogMonoDevelop" in both debug and release mode after changing Linker Linker option to Link SDK Assembly and Link ALL. We are successfully able to see the content of application on iOS Simulator 6.0

Changing the status to Verified.