Bug 37926 - AOT Errors building WatchKitExtension and app for device with watchOS2
Summary: AOT Errors building WatchKitExtension and app for device with watchOS2
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Mono runtime / AOT compiler ()
Version: XI 9.8 (tvOS / C7)
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: WatchOS 2.0
Assignee: Zoltan Varga
URL:
Depends on:
Blocks:
 
Reported: 2016-01-22 19:24 UTC by David Ortinau [MSFT]
Modified: 2016-06-19 18:03 UTC (History)
7 users (show)

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


Attachments
build output (48.34 KB, text/plain)
2016-01-22 19:24 UTC, David Ortinau [MSFT]
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 David Ortinau [MSFT] 2016-01-22 19:24:31 UTC
Created attachment 14681 [details]
build output

Using the Xamarin Studio 6.0 Pre-Release and Xamarin.iOS 9.5.0.73, I created a blank project to try running on an Apple Watch device. I'm getting AOT errors. 

My understanding from the 6.0 release notes is that this should work on device. 

https://forums.xamarin.com/discussion/57967/tvos-and-watchos-2-0-preview-4-xamarin-studio-with-designer-memory-profiling-support?

/Users/dave/Projects/WatchingYou/WatchingYou.WatchingYouWatchExtension/MTOUCH: Error MT3001: Could not AOT the assembly '/Users/dave/Projects/WatchingYou/WatchingYou.WatchingYouWatchExtension/obj/iPhone/Debug/mtouch-cache/Build/WatchingYouWatchingYouWatchExtension.dll' (MT3001) (WatchingYou.WatchingYouWatchExtension)

Project files: https://dl.dropboxusercontent.com/u/2270076/WatchingYou.zip

Build output attached.

Environment Details:

=== Xamarin Studio ===

Version 6.0 (build 3668)
Installation UUID: 89b6d01c-6671-4dc0-af25-78eba7a1514b
Runtime:
	Mono 4.3.0 (mono-4.3.1-branch/37d269c) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 403002114

=== Xamarin.Profiler ===

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

=== Apple Developer Tools ===

Xcode 7.2 (9548)
Build 7C68

=== Xamarin.iOS ===

Version: 9.5.0.73 (Enterprise Edition)
Hash: f5270a6
Branch: master
Build date: 2015-12-16 12:41:25-0500

=== Xamarin.Android ===

Version: 6.0.1.9 (Enterprise Edition)
Android SDK: /Users/dave/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
		5.1    (API level 22)
		6.0    (API level 23)

SDK Tools Version: 24.4.1
SDK Platform Tools Version: 1602
SDK Build Tools Version: 23.0.2

Java SDK: /usr
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

=== Xamarin Android Player ===

Version: 0.6.5
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Not Installed

=== Build Information ===

Release ID: 600003668
Git revision: 23e9d5d22133ca5a7c56b26644ab59a4626bccdb
Build date: 2016-01-20 15:12:22-05
Xamarin addins: bca6749910827de4af7eab7a925ff4ccf2bda06a
Build lane: monodevelop-lion-roslyn-dark-skin-64bit

=== Operating System ===

Mac OS X 10.11.3
Darwin RMBP.local 15.3.0 Darwin Kernel Version 15.3.0
    Thu Dec 10 18:40:58 PST 2015
    root:xnu-3248.30.4~1/RELEASE_X86_64 x86_64
Comment 1 Sebastien Pouliot 2016-01-25 19:00:04 UTC
We do not yet support running code on devices. From the release notes:

> Features:
> * watchOS 2.0 on simulator (only)
Comment 2 David Ortinau [MSFT] 2016-01-25 19:52:30 UTC
Ok, understood. Would you please notify whoever manages that XS 6.0 preview to clarify that as well. It was confusing to several of us reading that and the iOS release notes. 

Between forum posts, release notes and blog posts I'm sure it's hard to keep everything in sync. From my perspective it's difficult to determine which notes are most current and reliable. 

Is there an open user voice or something where we can upvote watchOS2 support? I'll go hunting. 

Thx
Dave
Comment 3 Sebastien Pouliot 2016-01-25 21:05:45 UTC
I suspect you refer to this phrase

> It is also now possible to launch the dedicated watchOS 2 simulator and deploy to your device.

That's a misunderstanding. We have the tools to deploy apps. However the mono runtime for watchOS 2 (bitcode, coop-sgen and arm7k support) is not completed yet and, as you found out, the toolchain is not bug free either.


The XS release notes describe what the IDE can do, not what the Xamarin.iOS (or Mac or Android) products ships. In cases of previews the delta can be significant, like the IDE exposing incomplete features or the SDK/tooling having features not visible in the IDE.

The Xamarin.iOS releases notes (or preview post) will be the most accurate/up-to-date source of information about the tooling/SDK for iOS.

watchOS 2.0 support is still a work in progress and we'll continue to do periodic previews until we have a complete, stable solution to offers.
Comment 4 Nina 2016-01-25 21:31:55 UTC
Sorry, David, I got confused by this too :(. It's a messaging issue we need to fix.
Comment 5 David Ortinau [MSFT] 2016-01-25 21:34:50 UTC
No worries, it's why I asked. 

We'll just continue with Swift as needed. All good.

Thx
Save
Comment 6 Sebastien Pouliot 2016-06-19 18:03:34 UTC
XI 9.9.288 (alpha channel) supports watch devices. Please report any issues you find with it. Thanks!