Bug 22188 - Unable to deploy on iOS8 beta 5 (iPhone 4s)
Summary: Unable to deploy on iOS8 beta 5 (iPhone 4s)
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Debugger ()
Version: master
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: 8.0.0 (iOS 8)
Assignee: Sebastien Pouliot
URL:
Depends on:
Blocks:
 
Reported: 2014-08-18 23:43 UTC by cwaldron
Modified: 2014-09-22 14:35 UTC (History)
5 users (show)

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


Attachments
Zip file of the application that produces the error. (282.28 KB, application/zip)
2014-08-18 23:47 UTC, cwaldron
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 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 FIXED

Description cwaldron 2014-08-18 23:43:41 UTC
When deploying my application to the iPhone 4s for debugging I receive the following messages ...

Please ensure your device is connected... Connected to: A's iPhone warning MT1003: Could not kill the application 'com.xamarin.recipe.webview'. You may have to kill the application manually. error MT0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com MonoTouch.MobileDevice.MobileDeviceException: AMDeviceMountImage returned: 0xe8000070 (kAMDMobileImageMounterMissingImagePath) at MonoTouch.Installation.Device.MountDeveloperImage () [0x00000] in :0 at MonoTouch.Installation.Installer.FindApplication (MonoTouch.Installation.Device d, System.String appId) [0x00000] in :0 at MonoTouch.Installation.Installer+c__AnonStorey3.<>m__0 (MonoTouch.Installation.Device d) [0x00000] in :0

This application is using the latest WKWebView.  Attached is a zip file of the application.
Comment 1 cwaldron 2014-08-18 23:47:28 UTC
Created attachment 7716 [details]
Zip file of the application that produces the error.
Comment 3 Saurabh 2014-08-19 09:44:12 UTC
I have checked this issue with iOS8 builds and I am successfully able to deploy application on iOS 8 beta 5 device (iPhone 4S).

Using the attached sample, sample deployed to device but when it is about to launch, It is throwing exception: https://gist.github.com/Shruti360/9fe67fb73cb2341498f8

This is my Build info:

=== Xamarin Studio ===

Version 5.3 (build 423)
Installation UUID: 67eaf3b4-f8a7-4ab4-a9df-3197350ca5dc
Runtime:
	Mono 3.6.0 ((no/f540f8a)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 306000039

=== Apple Developer Tools ===

Xcode 6.0 (6256.8)
Build 6A279r

=== Xamarin.iOS ===

Version: 7.9.3.52 (Business Edition)
Hash: 1686c40
Branch: 
Build date: 2014-08-11 14:09:33-0400

=== Build Information ===

Release ID: 503000423
Git revision: f4bb573b38a18c9f5400d8734eada2d5610deae4
Build date: 2014-08-12 17:26:33-04
Xamarin addins: 0961e1860cd1dcb4e47062f25c40d224979a02fb

=== Operating System ===

Mac OS X 10.9.4
Darwin XamnewiMac.local 13.3.0 Darwin Kernel Version 13.3.0
    Tue Jun  3 21:27:35 PDT 2014
    root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64

@cwaldron, Could you please let me know on which build you are getting this issue?
Comment 4 cwaldron 2014-08-19 22:09:08 UTC
I'm using Version 5.3 (build 423).  

My preferences is set to use Alpha version of Xamarin and my versions are reported to be all up to date.
Comment 5 cwaldron 2014-08-19 22:12:56 UTC
Full build info ...

=== Xamarin Studio ===

Version 5.3 (build 423)
Installation UUID: 94e3b007-3e10-4b0a-89bd-1da7932bb17c
Runtime:
	Mono 3.8.0 ((no/62a857e)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 308000007

=== Apple Developer Tools ===

Xcode 6.0 (6256.8)
Build 6A279r

=== Xamarin.iOS ===

Version: 7.9.3.52 (Business Edition)
Hash: 1686c40
Branch: 
Build date: 2014-08-11 15:30:23-0400

=== Xamarin.Android ===

Version: 4.17.0 (Business Edition)
Android SDK: /Users/cwaldron/Library/Developer/Xamarin/android-sdk-macosx
	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.3  (API level 15)
		4.4    (API level 19)
		4.4.87 (API level 20)
		4.5    (API level 21)
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: 503000423
Git revision: f4bb573b38a18c9f5400d8734eada2d5610deae4
Build date: 2014-08-12 17:26:33-04
Xamarin addins: 0961e1860cd1dcb4e47062f25c40d224979a02fb

=== Operating System ===

Mac OS X 10.9.4
Darwin vensa.local 13.3.0 Darwin Kernel Version 13.3.0
    Tue Jun  3 21:27:35 PDT 2014
    root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64
Comment 6 cwaldron 2014-08-28 18:50:38 UTC
Another point is that I'm able to run the application in the simulator but it won't run at all on the device.  Could there be some build or deployment settings that I'm missing or could I have an incompatible iPhone4s?
Comment 7 cwaldron 2014-08-28 19:04:28 UTC
Ok.  I tried something different:

[1] In the project options.IOS Application, I set the "Deployment Target" to 8.0.  It was previously blank.

[2] I ran the debugger to the device and still got the same messages as above.  However while Xamarin is still trying to connect I started the application manually on the device.  Before I was assuming that Xamarin would automatically start the app but I guess this bug is preventing that from happening.

[3]  After I manually started the application I received the following exception:

MonoTouch.MonoTouchException: Wrapper type 'MonoTouch.WebKit.WKPreferences' is missing its native ObjectiveC class 'WKPreferences'.
  at MonoTouch.Registrar.DynamicRegistrar.OnRegisterType (MonoTouch.Registrar.ObjCType type) [0x003bb] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/DynamicRegistrar.cs:617
  at MonoTouch.Registrar.Registrar.RegisterTypeUnsafe (System.Type type, System.Collections.Generic.List`1& exceptions) [0x00ab1] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Registrar.cs:1237
  at MonoTouch.Registrar.Registrar.RegisterType (System.Type type, System.Collections.Generic.List`1& exceptions) [0x00011] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Registrar.cs:868
  at MonoTouch.Registrar.DynamicRegistrar.Register (System.Type type) [0x00002] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/DynamicRegistrar.cs:883
  at MonoTouch.ObjCRuntime.Class.Register (System.Type type) [0x00000] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Class.cs:132
  at MonoTouch.ObjCRuntime.Class.GetHandle (System.Type type) [0x00000] in <filename unknown>:0
  at MonoTouch.Foundation.NSObject.AllocIfNeeded () [0x00015] in /Developer/MonoTouch/Source/maccore/src/Foundation/NSObject2.cs:386
  at MonoTouch.Foundation.NSObject..ctor (MonoTouch.Foundation.NSObjectFlag x) [0x00006] in /Developer/MonoTouch/Source/maccore/src/Foundation/NSObject2.cs:102
  at MonoTouch.WebKit.WKPreferences..ctor () [0x00000] in /Developer/MonoTouch/Source/monotouch/src/build/compat/WebKit/WKPreferences.g.cs:59
  at Vensa.WebView.WebView..ctor (RectangleF bounds) [0x00007] in /Users/cwaldron/Prototypes/WebView_iOS/WebView/WebViewIos.cs:19
  at WebViewIos.MainViewController.ViewDidLoad () [0x0002e] in /Users/cwaldron/Prototypes/WebView_iOS/MainViewController.cs:22
  at at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
  at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:39
  at WebViewIos.Application.Main (System.String[] args) [0x00008] in /Users/cwaldron/Prototypes/WebView_iOS/Main.cs:15


*This is more like it but can you now tell me what this exception mean?  MonoTouch.MonoTouchException: Wrapper type 'MonoTouch.WebKit.WKPreferences' is missing its native ObjectiveC class 'WKPreferences'.

Is there a mapping missing in MonoTouch or did I fail to include something in my code?

Thanks.
Comment 8 cwaldron 2014-08-28 19:55:16 UTC
It looks like it is failing on this line of my code ...

var preferences = new WKPreferences { JavaScriptCanOpenWindowsAutomatically = false };

I hope this helps narrows it down for you.
Comment 9 Sebastien Pouliot 2014-09-02 17:15:23 UTC
I can duplicate the issue.
Comment 10 Sebastien Pouliot 2014-09-02 19:58:32 UTC
Fixed in master / f61e6b9d27843024b4006719a690d6dafd2fcc17
ios8-7.4.0 / 1972429987722a8c3a54111037ecb0472655a25e
Comment 11 Mohit Kheterpal 2014-09-22 14:35:32 UTC
I have tried to verify this issue but we are able to deploy attached sample on iPhone 4S with the build mentioned in comment 3, i.e. we are not able to reproduce this issue.

Could you please provide some steps, so that we can reproduce this issue and verify it.

Thanks