Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
Created attachment 17259 [details]
iPhone App References editor
1. I have existing iPhone app solution.
2. Right click on solution - Add New Project - watchOS - WatchKitApp (template for watchOS 2.0 or later)
3. Choose watch simulator - Run app
error MT0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com
System.IO.FileNotFoundException: Could not find required file '/Users/admin/<SolutionFolder>/<iPhoneAppProjectFolder>/bin/iPhoneSimulator/Debug Staging/<iPhoneAppName>.app/Watch/<WatchAppName>.app/Info.plist'.
at Xamarin.Hosting.PList.FromFile (System.String name) <0x10f3deac0 + 0x000f1> in <filename unknown>:0
at Xamarin.Hosting.AppBundle..ctor (System.String path) <0x10f3de9e0 + 0x0006d> in <filename unknown>:0
at Xamarin.Launcher.Driver.GetSimulatorLaunchConfig () <0x10f3d8920 + 0x000e7> in <filename unknown>:0
at Xamarin.Launcher.Driver.LaunchWatchSimulator () <0x10f3d5c50 + 0x00099> in <filename unknown>:0
at Xamarin.Launcher.Driver.Main2 (System.String args) <0x10f350000 + 0x02646> in <filename unknown>:0
at Xamarin.Launcher.Driver.Main (System.String args) <0x10b3e4b20 + 0x0009a> in <filename unknown>:0
[MVID] a19e5d5dd4fb498aaddec2bba6aedadb 0,1
[MVID] ceccb0d5ea4e40c4a6408ab76ad5d37d 2,3,4,5
Watch App runs on watch simulator
1. All bundle identifiers were set properly according to this guide https://developer.xamarin.com/guides/ios/watch/installation/#Set_Project_References_and_Identifiers
2. Linker behavior option (for iPhone and watch apps): Link FrameWork SDKs only
3. iPhone App project references WatchApp project; WatchApp project references WatchExtension project. According to this guide https://developer.xamarin.com/guides/ios/watch/installation/#Set_Project_References_and_Identifiers 'iPhone app references Watch Kit Extension and Watch Kit Extension references Watch App'. Is this a bug? Furthermore XS doesn't allow to change references (as it done in guide example) - please see screenshot attached
=== Xamarin Studio Business ===
Version 6.1 (build 5365)
Installation UUID: ad75fa22-708e-4a59-a5d8-28efd52cd42f
Mono 4.6.0 (mono-4.6.0-branch/23c6a4d) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 406000165
=== NuGet ===
=== Xamarin.Profiler ===
=== Xamarin.Android ===
=== Xamarin Android Player ===
=== Apple Developer Tools ===
Xcode 7.3.1 (10188.1)
=== Xamarin.Mac ===
=== Xamarin.iOS ===
Version: 126.96.36.199 (Xamarin Business)
Build date: 2016-08-23 14:45:42-0400
=== Build Information ===
Release ID: 601005365
Git revision: 4fb2e8b3f2042f3be28b370d01f1c8057e993e51
Build date: 2016-08-23 08:54:41-04
Xamarin addins: 60c0f9d8f0eb210499e1f8c6daf4972c10f4663f
Build lane: monodevelop-lion-cycle8
=== Operating System ===
Mac OS X 10.11.3
Darwin MacBook-Pro-Admin-2.local 15.3.0 Darwin Kernel Version 15.3.0
Thu Dec 10 18:40:58 PST 2015
@Vincent please check this
Hi, so watchOS projects are working fine with latest versions of XS and XI. I can deploy on both the watchOS 2 and watchOS 3 simulators and device.
I believe there is a possibility you're hitting the issue covered in https://bugzilla.xamarin.com/show_bug.cgi?id=43610 (in that case it's a reference to Microsoft.Bcl.Build.targets in the main app that break app extensions and watch apps and removing the import in your main project's csproj should fix everything).
You could be hitting something else but in order to investigate precisely we'd need a full verbose build log (Xamarin Studio > Preferences > Projects > Build > Log verbosity > Diagnostic) and also if possible a test case so we can check your project options and easily reproduce the issue here.
I'm putting the bug on NEEDINFO to let you confirm if you're hitting the Microsoft.Bcl.Build.targets issue or provide us with the additional information we need to help.
Thanks a lot @Vincent for explanation. I'll remove Bcl targets in the main app and try to build/launch watch app tomorrow and write about results here
Hi, @Vincent. I've removed Bcl.Build targets and moved other iOS targets to the bottom of iPhoneApp.csproj file. So now I can run/debug watchApp. Thank you for advice.
But I'm faced with another issue - any changes (e.g. in storyboard in Xcode IB) in WatchApp (not Extension) don't appear if WatchApp marked as Start Up project. They appear only if I rebuild and launch main iPhone app. Should I file new bug or leave it here.
@Victor, yes please file a new bug as this one is indeed solved.
FYI, the new bug should be for the iOS product and the MSBuild component, we'll have a look as soon as possible.
I'm closing this bug as ANSWERED.