Bug 55313 - iWatch target disappeared and "Generic Device" appeared instead
Summary: iWatch target disappeared and "Generic Device" appeared instead
Status: RESOLVED ANSWERED
Alias: None
Product: iOS
Classification: Xamarin
Component: Debugger ()
Version: XI 10.4 (C9)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Future Cycle (TBD)
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-04-17 23:02 UTC by Shay
Modified: 2017-05-22 05:29 UTC (History)
4 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 Shay 2017-04-17 23:02:59 UTC
I recently upgraded to the latest stable version. I now experience a weird behavior in Xamarin Studio where I no longer see "iWatch" under the device list for compilation. Instead, I see "Generic Device". When I try to debug on the device, I get error saying that the program could not be deployed (see below).

The watch appears correctly in Xcode and provisioning profile is set correctly (everything was working before the upgrade).
Logs below:


/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mlaunch -sdkroot "/Applications/Xcode.app/Contents/Developer" --installdev "/Users/shayo/Projects/ClimbTag/iOS/bin/iPhone/Debug/ClimbTag.iOS.app" --device watchos,ios --install-progress
Using Xcode 8.3.1 found in /Applications/Xcode.app/Contents/Developer
Xamarin.Hosting: Xamarin.Hosting
Xamarin.Hosting:     Version: ed6832a (d15-1)
Xamarin.Hosting:     Xcode: /Applications/Xcode.app
Xamarin.Hosting:     Xcode Version: 8.3.1
Xamarin.Hosting:     Verbosity: 10
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/DVTFoundation
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTiPhoneSimulatorRemoteClient.framework/DVTiPhoneSimulatorRemoteClient
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/CoreSimulator
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/DTDeviceKitBase
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/DVTKit
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKit.framework/DTDeviceKit
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DTXConnectionServices.framework/DTXConnectionServices
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTSourceControl.framework/DVTSourceControl
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTServices.framework/DVTServices
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTPortal.framework/DVTPortal
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftCore.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftDarwin.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftObjectiveC.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftDispatch.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftXPC.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftIOKit.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftCoreGraphics.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftFoundation.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftCoreData.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftCoreImage.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftQuartzCore.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/libswiftAppKit.dylib
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTDocumentation.framework/DVTDocumentation
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTAnalyticsClient.framework/DVTAnalyticsClient
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTAnalytics.framework/DVTAnalytics
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/SourceKit.framework/SourceKit
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/IDEFoundation.framework/IDEFoundation
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DTGraphKit.framework/DTGraphKit
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTDeveloperModeHelper.framework/DVTDeveloperModeHelper
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DADocSetAccess.framework/DADocSetAccess
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DADocSetManagement.framework/DADocSetManagement
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTProducts.framework/DVTProducts
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/IDEKit
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/IBFoundation.framework/IBFoundation
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/IBAutolayoutFoundation.framework/IBAutolayoutFoundation
Xamarin.Hosting: Loaded Xcode plugins successfully.
Xamarin.Hosting: Device discovery started
Xamarin.Hosting: Device discovery event: Connected
Xamarin.Hosting: Device discovery event: GizmoPaired
Xamarin.Hosting: Watch discovery event: GizmoPaired
Xamarin.Hosting: Device discovery event: Connected
Xamarin.Hosting: Device discovery event: Connected
Installing application bundle 'com.climbtag.climbtag' on 'iPhone5cBlue'

.....

 GeneratingApplicationMap: 95%
  PercentComplete: 90
  Status: GeneratingApplicationMap
Application bundle 'com.climbtag.climbtag' installed on 'iPhone5cBlue'
Installing the WatchOS app com.climbtag.climbtag.watchkitapp on the device 'Shay’s Apple Watch'
error MT1006: Could not install the application '/Users/shayo/Projects/ClimbTag/iOS/bin/iPhone/Debug/ClimbTag.iOS.app' on the device: Send Message Error (error: 0xe800002d).
--- inner exception
Xamarin.Hosting.MobileDeviceException: Send Message Error (error: 0xe800002d)
  at Xamarin.Hosting.RealDevice.ValidatePairing () [0x00049] in /Users/builder/data/lanes/4466/a04678c2/source/maciostools/Xamarin.Hosting/Xamarin.Hosting/RealDevice.cs:333 
  at Xamarin.Hosting.RealDevice.ExecuteWithSession (System.Action action) [0x00002] in /Users/builder/data/lanes/4466/a04678c2/source/maciostools/Xamarin.Hosting/Xamarin.Hosting/RealDevice.cs:363 
  at Xamarin.Launcher.DevController+<InstallApplicationBundleAsync>c__async2.MoveNext () [0x00261] in /Users/builder/data/lanes/4466/a04678c2/source/maciostools/Xamarin.Hosting/Xamarin.Launcher/controller-device.cs:152 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/4466/a04678c2/source/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00047] in /Users/builder/data/lanes/4466/a04678c2/source/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /Users/builder/data/lanes/4466/a04678c2/source/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /Users/builder/data/lanes/4466/a04678c2/source/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128 
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in /Users/builder/data/lanes/4466/a04678c2/source/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:113 
  at Xamarin.Launcher.DevController+<InstallApplicationAsync>c__async1.MoveNext () [0x001c4] in /Users/builder/data/lanes/4466/a04678c2/source/maciostools/Xamarin.Hosting/Xamarin.Launcher/controller-device.cs:105 
---
  at Xamarin.Launcher.DevController+<InstallApplicationAsync>c__async1.MoveNext () [0x0027e] in /Users/builder/data/lanes/4466/a04678c2/source/maciostools/Xamarin.Hosting/Xamarin.Launcher/controller-device.cs:114 
--- End of stack trace from previous location where exception was thrown ---
  at Xamarin.Utils.NSRunLoopExtensions.RunUntilTaskCompletion[T] (Foundation.NSRunLoop this, System.Threading.Tasks.Task`1[TResult] task) [0x00084] in /Users/builder/data/lanes/4466/a04678c2/source/maciostools/Xamarin.Hosting/Xamarin.Utils/Extensions.cs:35 
  at Xamarin.Launcher.Driver.Main2 (System.String[] args) [0x00a4b] in /Users/builder/data/lanes/4466/a04678c2/source/maciostools/Xamarin.Hosting/Xamarin.Launcher/Main.cs:429 
  at Xamarin.Launcher.Driver.Main (System.String[] args) [0x00075] in /Users/builder/data/lanes/4466/a04678c2/source/maciostools/Xamarin.Hosting/Xamarin.Launcher/Main.cs:139 

Application could not be uploaded to the device.



=== Xamarin Studio Community ===

Version 6.3 (build 863)
Installation UUID: 07360e74-2c80-443b-94a1-6221c776bc97
Runtime:
	Mono 4.8.1 (mono-4.8.0-branch/22a39d7) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 408010000

=== NuGet ===

Version: 3.5.0.0

=== Xamarin.Profiler ===

Version: 1.4.0
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Apple Developer Tools ===

Xcode 8.3.1 (12170)
Build 8E1000a

=== Xamarin.iOS ===

Version: 10.8.0.175 (Xamarin Studio Community)
Hash: a04678c2
Branch: d15-1
Build date: 2017-03-28 14:05:38-0400

=== Xamarin Inspector ===

Version: 1.2.1
Hash: 0ea0a12
Branch: d15-1
Build date: Thu, 06 Apr 2017 20:24:44 GMT

=== Xamarin.Mac ===

Version: 3.2.0.175 (Xamarin Studio Community)

=== Xamarin.Android ===

Version: 7.2.0.7 (Xamarin Studio Community)
Android SDK: /Users/shayo/Library/Android/sdk
	Supported Android versions:
		4.0.3 (API level 15)
		4.4   (API level 19)
		5.0   (API level 21)
		5.1   (API level 22)
		6.0   (API level 23)
		7.0   (API level 24)
		7.1   (API level 25)

SDK Tools Version: 25.2.5
SDK Platform Tools Version: 25.0.3
SDK Build Tools Version: 25.0.1

Java SDK: /usr
java version "1.8.0_112"
Java(TM) SE Runtime Environment (build 1.8.0_112-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.112-b16, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Build Information ===

Release ID: 603000863
Git revision: a2163670efe259c85cd8f335d95b175068fbbe2a
Build date: 2017-04-03 14:33:15-04
Xamarin addins: 2045d688ea1420e0381b473360ca62a763eb7d04
Build lane: monodevelop-lion-d15-1

=== Operating System ===

Mac OS X 10.12.4
Darwin Shays-MacBook-Pro.local 16.5.0 Darwin Kernel Version 16.5.0
    Fri Mar  3 16:52:33 PST 2017
    root:xnu-3789.51.2~3/RELEASE_X86_64 x86_64
Comment 1 Rolf Bjarne Kvinge [MSFT] 2017-04-18 08:26:59 UTC
(In reply to Shay from comment #0)

> error MT1006: Could not install the application
> '/Users/shayo/Projects/ClimbTag/iOS/bin/iPhone/Debug/ClimbTag.iOS.app' on
> the device: Send Message Error (error: 0xe800002d).

This is usually a transient error. Sometimes it works if you try again, but sometimes I've had to reboot the watch / phone / mac to make it work again.

Can you try that and see if it works?

The problem with "Generic Device" showing in Xamarin Studio might be related too.
Comment 2 Shay 2017-04-18 11:20:55 UTC
Rebooted all devices. Problem persists.
Comment 3 Rolf Bjarne Kvinge [MSFT] 2017-04-18 11:25:32 UTC
Can you try manually uninstalling the app from the phone and try again?
Comment 4 Shay 2017-04-18 11:27:17 UTC
I've tried that yesterday. Even unpaired and repaired the iWatch. Nothing worked.
Woke up today and now it appears correctly. I don't understand what has changed since yesterday.
Comment 5 Rolf Bjarne Kvinge [MSFT] 2017-04-18 11:33:58 UTC
You mean the device appears correctly in Xamarin Studio, but you still can't deploy to it?
Comment 6 Alex Soto [MSFT] 2017-05-22 01:03:52 UTC
@Shay Is this still an issue?
Comment 7 Shay 2017-05-22 04:19:10 UTC
This was resolved. You may close the ticket.
Comment 8 Rolf Bjarne Kvinge [MSFT] 2017-05-22 05:29:38 UTC
Thanks, we'll close this. Please reopen if the issue reappears and we'll look at it again.