Bug 25297 - After Xcode update, application is not consistently deploying to device
Summary: After Xcode update, application is not consistently deploying to device
Status: RESOLVED ANSWERED
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: XI 8.4.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Rolf Bjarne Kvinge [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2014-12-11 13:14 UTC by Allie Miller
Modified: 2014-12-18 05:23 UTC (History)
5 users (show)

Tags:
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:
Status:
RESOLVED ANSWERED

Description Allie Miller 2014-12-11 13:14:15 UTC
Overview
After updating Xcode to 6.1.1, the attached application seems to be inconsistently crashing when deploy to iOS 8.1 device. 

Steps to reproduce
1) On a Mac that has Xcode 6.1.1 installed, as well as the Xamarin software versions listed under the Versioning Information section of this report, attempt to deploy the attached sample application to a device running iOS 8.1.1.

Expected results
The application should successfully deploy for each deployment attempt.

Actual results
The application sometimes crashes and sometimes deploys with no crash. 

Additional Information
This issue only occurs on an iOS device. Deploying to the iOS Simulator throws an error that does not appear related to the inconsistent issue appearing on the device.

Attaching symbolicated crash log. 

Versioning Information
=== Xamarin Studio ===

Version 5.5.4 (build 15)
Installation UUID: b6512b3a-4b6c-47af-8447-e49ce0246b70
Runtime:
Mono 3.10.0 ((detached/92c4884)
GTK+ 2.24.23 (Raleigh theme)

Package version: 310000031

=== Apple Developer Tools ===

Xcode 6.1.1 (6611)
Build 6A2008a

=== Xamarin.iOS ===

Version: 8.4.0.43 (Business Edition)
Hash: 840a925
Branch: 
Build date: 2014-11-16 21:03:22-0500

=== Xamarin.Android ===

Version: 4.20.0.28 (Business Edition)
Android SDK: /Users/julioabreu/Library/Developer/Xamarin/android-sdk-mac_x86
Supported Android versions:
2.1   (API level 7)
2.2   (API level 8)
2.3   (API level 10)
3.1   (API level 12)
4.0   (API level 14)
4.0.3 (API level 15)
4.1   (API level 16)
4.2   (API level 17)
4.3   (API level 18)
4.4   (API level 19)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Xamarin.Mac ===

Version:

=== Build Information ===

Release ID: 505040015
Git revision: f93940a35458a18052f1a25e106e62ca970d9c40
Build date: 2014-11-19 15:32:41-05
Xamarin addins: dc23cbd91a3a0e1d326328e1229e86c942a49ec8

=== Operating System ===

Mac OS X 10.9.5
Darwin XXX-Macbook-Pro.local 13.4.0 Darwin Kernel Version 13.4.0
    Sun Aug 17 19:50:11 PDT 2014
    root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64
Comment 5 asimk 2014-12-16 13:34:27 UTC
Thanks Allie Miller,

We have checked the issue with the help of sample app attached in comment 4 and observed that application is getting crashed on device when we try to deploy. We are getting crash for each deployment attempt.

Screencast : http://www.screencast.com/t/hJXNIDcg8Te

Crash Log : https://gist.github.com/360logica1/56edf84114ed0124477b
Ide Log : https://gist.github.com/360logica1/2790deb8acb5c7206119
Application Output : https://gist.github.com/360logica1/4b22006da03638023997
Build Output : https://gist.github.com/360logica1/8b3e3a91dc8906b4ff39

Note : We have checked this issue with iOS device iPhone 5S(8.1.2) and getting crash for each deployment.

Environment Info :

=== Xamarin Studio ===

Version 5.7 (build 652)
Installation UUID: 0b7eaebc-a0ed-4b58-81df-91e378cad28c
Runtime:
	Mono 3.12.0 ((detached/a813491)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312000068

=== Apple Developer Tools ===

Xcode 6.1.1 (6611)
Build 6A2008a

=== Xamarin.iOS ===

Version: 8.6.0.32 (Enterprise Edition)
Hash: f31ad46
Branch: 
Build date: 2014-12-12 17:56:03-0500

=== Xamarin.Mac ===

Version: 1.11.3.0 (Enterprise Edition)

=== Build Information ===

Release ID: 507000652
Git revision: 042e44ba92a6a9c46bd2b69b0b4348df43f381ea
Build date: 2014-12-11 18:37:24-05
Xamarin addins: 06d3aaafde7f726d508e079c9b297cc9aae4af55

=== Operating System ===

Mac OS X 10.10.2
Darwin Admin-Macs-Mac-mini.local 14.1.0 Darwin Kernel Version 14.1.0
    Thu Nov 13 18:36:56 PST 2014
    root:xnu-2782.10.65~2/RELEASE_X86_64 x86_64
Comment 6 Rolf Bjarne Kvinge [MSFT] 2014-12-18 05:23:00 UTC
The project is using the legacy registrar with generics, random behavior/crashes is expected:

> warning MT4112: The registrar found a generic type: Xamarin.Forms.Platform.iOS.VisualElementRenderer`1. Registering generic types with ObjectiveC is not supported with the legacy registrar, and will lead to random behavior and/or crashes. Please remove any --registrar arguments passed as additional mtouch arguments in your project's iOS Build options. See http://docs.xamarin.com/guides/ios/advanced_topics/registrar for more information.
> warning MT4112: The registrar found a generic type: Xamarin.Forms.Platform.iOS.ViewRenderer`2. Registering generic types with ObjectiveC is not supported with the legacy registrar, and will lead to random behavior and/or crashes. Please remove any --registrar arguments passed as additional mtouch arguments in your project's iOS Build options. See http://docs.xamarin.com/guides/ios/advanced_topics/registrar for more information.