Bug 42881 - Creating watchOS 2 app in Xamarin Studio for a container project called "watch" fails to build
Summary: Creating watchOS 2 app in Xamarin Studio for a container project called "watc...
Alias: None
Product: iOS
Classification: Xamarin
Component: Pre-release ()
Version: XI 9.99 (iOS 10 previews)
Hardware: Macintosh Mac OS
: --- minor
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2016-07-28 12:00 UTC by Jonathan Moosekian
Modified: 2016-07-29 09:46 UTC (History)
3 users (show)

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

zipped up solution (64.82 KB, application/zip)
2016-07-28 12:00 UTC, Jonathan Moosekian

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 for Bug 42881 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Jonathan Moosekian 2016-07-28 12:00:49 UTC
Created attachment 16812 [details]
zipped up solution

Steps to reproduce:

Create an iOS 10 Single View App and name the application "watch" (without quotes)

Add a WatchKit App project and name it "myapp" (without quotes)

Compile the watch project.

Build error occurs: Error: Tool exited with code: 1. Output: ditto: bin/iPhoneSimulator/Debug/watch.app/Watch/watchmycards.app: Not a directory.

I am attaching the project solution as is.

Here's the Xamarin Studio version info:

=== Xamarin Studio Professional ===

Version 6.1 (build 5235)
Installation UUID: e6b7c7a2-f9c2-4f5f-b1d4-a7cad7d4d849
	Mono 4.4.0 (mono-4.4.0-branch/fcf7a6d) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 404000148

=== NuGet ===


=== Xamarin.Profiler ===

Location: /Users/jonathanmoosekian/Downloads/profiler-mac-0.9-0/XamarinProfiler.Mac.app/Contents/MacOS/XamarinProfiler.Mac

=== Apple Developer Tools ===

Xcode 8.0 (11209.5)
Build 8S174q

=== Xamarin.iOS ===

Version: (Visual Studio Professional)
Hash: d29eb7a
Branch: cycle8
Build date: 2016-07-15 18:47:59-0400

=== Xamarin.Android ===

Version: (Visual Studio Professional)
Android SDK: /Users/jonathanmoosekian/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.3   (API level 10)
		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)
		5.0   (API level 21)
		5.1   (API level 22)
		6.0   (API level 23)

SDK Tools Version: 25.1.7
SDK Platform Tools Version: 24.0.1
SDK Build Tools Version: 23.0.3

Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

Android Designer EPL code available here:

=== Xamarin Android Player ===

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

=== Xamarin.Mac ===

Not Installed

=== Xamarin Inspector ===

Hash: 4d868da
Branch: master
Build date: Mon Jun 13 19:14:13 UTC 2016

=== Build Information ===

Release ID: 601005235
Git revision: ec12ea3dd5b59de84d5007bff97f969439ab61cb
Build date: 2016-07-14 10:04:37-04
Xamarin addins: 2fd80118a267f656798bd002da0841811d1acb70
Build lane: monodevelop-lion-cycle8

=== Operating System ===

Mac OS X 10.11.6
Darwin Jonathans-MacBook-Pro.local 15.6.0 Darwin Kernel Version 15.6.0
    Thu Jun 23 18:25:34 PDT 2016
    root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64

=== Enabled user installed addins ===

Xamarin Inspector
Comment 1 Rolf Bjarne Kvinge [MSFT] 2016-07-29 09:46:57 UTC
This happens because the executable name for the main app is "watch", and any watch apps are supposed to go inside a directory called "Watch", so those two clash.

The workaround should be fairly simple: don't call your main project "watch" (and rename it if you already have such a project).