Bug 23327 - Can't deploy to physical device
Summary: Can't deploy to physical device
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 3.6
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-09-24 07:23 UTC by outring
Modified: 2016-12-22 20:59 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 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 outring 2014-09-24 07:23:02 UTC
After update to 3.6 (we've skipped 3.5) solution build fails. It seems that the problem is in wrong paths handling, because we're using absolute paths pointing to Windows temp directory to speed entire up build process (for Android mostly). The problem is in the colon after the C:

Build fails with following errors:
AOT Compilation exited with code 1, command:
8>  MONO_PATH=/Users/outring/Library/Caches/Xamarin/mtbs/builds/KnopkaiOS/c62a3bff9dffcb46b7ccd2f473b67a9d/C:/Users/user/AppData/Local/Temp/Knopka/Knopka.iOS/obj/mtouch-cache/Build /Library/Frameworks/Xamarin.iOS.framework/Versions/8.0.0.62/bin/arm-darwin-mono-sgen --debug -O=gsharedvt  --aot=mtriple=armv7-ios,full,static,asmonly,direct-icalls,dwarfdebug,no-direct-calls,iphone-abi,outfile=/Users/outring/Library/Caches/Xamarin/mtbs/builds/KnopkaiOS/c62a3bff9dffcb46b7ccd2f473b67a9d/C:/Users/user/AppData/Local/Temp/Knopka/Knopka.iOS/obj/mtouch-cache/System.ComponentModel.EventBasedAsync.dll.armv7.s "/Users/outring/Library/Caches/Xamarin/mtbs/builds/KnopkaiOS/c62a3bff9dffcb46b7ccd2f473b67a9d/C:/Users/user/AppData/Local/Temp/Knopka/Knopka.iOS/obj/mtouch-cache/Build/System.ComponentModel.EventBasedAsync.dll"
8>  '/Users/outring/Library/Caches/Xamarin/mtbs/builds/KnopkaiOS/c62a3bff9dffcb46b7ccd2f473b67a9d/C' in MONO_PATH doesn't exist or has wrong permissions.
8>  '/Users/user/AppData/Local/Temp/Knopka/Knopka.iOS/obj/mtouch-cache/Build' in MONO_PATH doesn't exist or has wrong permissions.
8>  The assembly mscorlib.dll was not found or could not be loaded.
8>  It should have been installed in the `/Developer/MonoTouch/Source/monotouch/builds/install/cross/lib/mono/2.0/mscorlib.dll' directory.
8>  
8>  AOT Compilation exited with code 1, command:
8>  MONO_PATH=/Users/outring/Library/Caches/Xamarin/mtbs/builds/KnopkaiOS/c62a3bff9dffcb46b7ccd2f473b67a9d/C:/Users/user/AppData/Local/Temp/Knopka/Knopka.iOS/obj/mtouch-cache/Build /Library/Frameworks/Xamarin.iOS.framework/Versions/8.0.0.62/bin/arm-darwin-mono-sgen --debug -O=gsharedvt  --aot=mtriple=armv7-ios,full,static,asmonly,direct-icalls,dwarfdebug,no-direct-calls,iphone-abi,outfile=/Users/outring/Library/Caches/Xamarin/mtbs/builds/KnopkaiOS/c62a3bff9dffcb46b7ccd2f473b67a9d/C:/Users/user/AppData/Local/Temp/Knopka/Knopka.iOS/obj/mtouch-cache/System.Threading.Tasks.dll.armv7.s "/Users/outring/Library/Caches/Xamarin/mtbs/builds/KnopkaiOS/c62a3bff9dffcb46b7ccd2f473b67a9d/C:/Users/user/AppData/Local/Temp/Knopka/Knopka.iOS/obj/mtouch-cache/Build/System.Threading.Tasks.dll"
8>  '/Users/outring/Library/Caches/Xamarin/mtbs/builds/KnopkaiOS/c62a3bff9dffcb46b7ccd2f473b67a9d/C' in MONO_PATH doesn't exist or has wrong permissions.
8>  '/Users/user/AppData/Local/Temp/Knopka/Knopka.iOS/obj/mtouch-cache/Build' in MONO_PATH doesn't exist or has wrong permissions.
8>  The assembly mscorlib.dll was not found or could not be loaded.
8>  It should have been installed in the `/Developer/MonoTouch/Source/monotouch/builds/install/cross/lib/mono/2.0/mscorlib.dll' directory.
8>  
8>  AOT Compilation exited with code 1, command:
8>  MONO_PATH=/Users/outring/Library/Caches/Xamarin/mtbs/builds/KnopkaiOS/c62a3bff9dffcb46b7ccd2f473b67a9d/C:/Users/user/AppData/Local/Temp/Knopka/Knopka.iOS/obj/mtouch-cache/Build /Library/Frameworks/Xamarin.iOS.framework/Versions/8.0.0.62/bin/arm-darwin-mono-sgen --debug -O=gsharedvt  --aot=mtriple=armv7-ios,full,static,asmonly,direct-icalls,soft-debug,dwarfdebug,no-direct-calls,iphone-abi,outfile=/Users/outring/Library/Caches/Xamarin/mtbs/builds/KnopkaiOS/c62a3bff9dffcb46b7ccd2f473b67a9d/C:/Users/user/AppData/Local/Temp/Knopka/Knopka.iOS/obj/mtouch-cache/Microsoft.Threading.Tasks.Extensions.dll.armv7.s "/Users/outring/Library/Caches/Xamarin/mtbs/builds/KnopkaiOS/c62a3bff9dffcb46b7ccd2f473b67a9d/C:/Users/user/AppData/Local/Temp/Knopka/Knopka.iOS/obj/mtouch-cache/Build/Microsoft.Threading.Tasks.Extensions.dll"
8>  '/Users/outring/Library/Caches/Xamarin/mtbs/builds/KnopkaiOS/c62a3bff9dffcb46b7ccd2f473b67a9d/C' in MONO_PATH doesn't exist or has wrong permissions.
8>  '/Users/user/AppData/Local/Temp/Knopka/Knopka.iOS/obj/mtouch-cache/Build' in MONO_PATH doesn't exist or has wrong permissions.
8>  The assembly mscorlib.dll was not found or could not be loaded.
8>  It should have been installed in the `/Developer/MonoTouch/Source/monotouch/builds/install/cross/lib/mono/4.5/mscorlib.dll' directory.
8>  
8>  AOT Compilation exited with code 1, command:
8>  MONO_PATH=/Users/outring/Library/Caches/Xamarin/mtbs/builds/KnopkaiOS/c62a3bff9dffcb46b7ccd2f473b67a9d/C:/Users/user/AppData/Local/Temp/Knopka/Knopka.iOS/obj/mtouch-cache/Build /Library/Frameworks/Xamarin.iOS.framework/Versions/8.0.0.62/bin/arm-darwin-mono-sgen --debug -O=gsharedvt  --aot=mtriple=armv7-ios,full,static,asmonly,direct-icalls,soft-debug,dwarfdebug,no-direct-calls,iphone-abi,outfile=/Users/outring/Library/Caches/Xamarin/mtbs/builds/KnopkaiOS/c62a3bff9dffcb46b7ccd2f473b67a9d/C:/Users/user/AppData/Local/Temp/Knopka/Knopka.iOS/obj/mtouch-cache/Knopka.Core.dll.armv7.s "/Users/outring/Library/Caches/Xamarin/mtbs/builds/KnopkaiOS/c62a3bff9dffcb46b7ccd2f473b67a9d/C:/Users/user/AppData/Local/Temp/Knopka/Knopka.iOS/obj/mtouch-cache/Build/Knopka.Core.dll"
8>  '/Users/outring/Library/Caches/Xamarin/mtbs/builds/KnopkaiOS/c62a3bff9dffcb46b7ccd2f473b67a9d/C' in MONO_PATH doesn't exist or has wrong permissions.
8>  '/Users/user/AppData/Local/Temp/Knopka/Knopka.iOS/obj/mtouch-cache/Build' in MONO_PATH doesn't exist or has wrong permissions.
8>  The assembly mscorlib.dll was not found or could not be loaded.
8>  It should have been installed in the `/Developer/MonoTouch/Source/monotouch/builds/install/cross/lib/mono/4.5/mscorlib.dll' directory.

Mac version info:
Xamarin Studio
Version 5.4 (build 240)
Installation UUID: 045b9af9-9241-475b-b9c6-5f4c0d657132
Runtime:
	Mono 3.8.0 ((no/45d0ba1)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 308000009

Apple Developer Tools
Xcode 6.0.1 (6528)
Build 6A317

Xamarin.iOS
Version: 8.0.0.62 (Business Edition)
Hash: 8bd8158
Branch: 
Build date: 2014-09-18 09:12:55-0400

Operating System
Mac OS X 10.9.5
Darwin T1000.local 13.4.0 Darwin Kernel Version 13.4.0
    Sun Aug 17 19:50:11 PDT 2014
    root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64



Windows version info:
Microsoft Visual Studio Professional 2012
Version 11.0.61030.00 Update 4
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

Team Explorer for Visual Studio 2012   04938-004-0034007-02717
Microsoft Team Explorer for Visual Studio 2012

Visual Basic 2012   04938-004-0034007-02717
Microsoft Visual Basic 2012

Visual C# 2012   04938-004-0034007-02717
Microsoft Visual C# 2012

Visual C++ 2012   04938-004-0034007-02717
Microsoft Visual C++ 2012

Visual F# 2012   04938-004-0034007-02717
Microsoft Visual F# 2012

Visual Studio 2012 Code Analysis Spell Checker   04938-004-0034007-02717
Microsoft® Visual Studio® 2012 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

HideMenu   1.0
Hides the Visual Studio main menu, similar to Windows Explorer and Internet Explorer

JetBrains ReSharper 8.2   C# Edition build 8.2.0.2160 on 2014-03-20T13:53:08
JetBrains ReSharper 8.2 package for Microsoft Visual Studio. For more information about ReSharper, visit http://www.jetbrains.com/resharper/. Copyright © 2003–2014 JetBrains, Inc.

NuGet Package Manager   2.8.50313.31
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.0
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

Xamarin   3.6.249.0 (1761822e6ff67640a80c21b22e2a7842e40780ba)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   4.16.0.17 (2a7b68212b17c903160fbd8e0106babb299d1be3)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   8.0.62.0 (8bd8158ae8c65c4fb50665dee520aa4ed86867ba)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 1 Saurabh 2014-10-08 03:24:24 UTC
I have checked this Issue with Xamarin (XVS) 3.6.262 on Windows and Xamarin.iOS 8.0.0.62 installed on build host, I am able to run ios application successfully after that I have updated my Xamarin (XVS) 3.6.262 to Xamarin (XVS) 3.7.203, Now I am getting error 'Error 1 The installed Xamarin.iOS (version 8.0) on the Mac Build Host 192.168.3.6 is not compatible with the local Xamarin.iOS 8.2. Double click here to select a new server. Xamarin.iOS Extension 0 0'

Now I have also updated Xamarin.iOS to 8.2.0.193 on build host and connected VS again, I am successfully able to build application after updating both Xamarin (XVS) and Xamarin.iOS.

@outring, Could you please check it with latest stable and let us know If you are still getting same Issue? OR could you please provide me you application for which you are getting this Issue?
Comment 2 outring 2014-10-10 11:41:43 UTC
Hello

Checked it with the latest stable release. Problem is still there unfortunately.
It's not very easy to create a test solution, because of all these provisioning profiles, etc. Let's try to solve this problem another way. The problem, as I think, is in <IntermediateOutputPath /> and/or <OutputPath /> directives of .csproj file. Problem occurs only when we have the following values:
<IntermediateOutputPath>$(Temp)\Build\$(MSBuildProjectName)\obj</IntermediateOutputPath>
<OutputPath>$(Temp)\Build\$(MSBuildProjectName)\bin\$(Platform)\$(Configuration)</OutputPath>

With default values everything is ok:
<IntermediateOutputPath>obj</IntermediateOutputPath>
<OutputPath>bin\$(Platform)\$(Configuration)</OutputPath>

If all of this wouldn't be enough, I'll try to create a test solution, but it will take some time.

Thank you
Comment 3 Jose Gallardo 2016-12-22 20:59:57 UTC
Hi,
As we've introduced several improvements around VS/Mac connectivity and the iOS build system, I'll mark the bug as resolved fixed.
Please feel free to reopen it if you can still reproduce the issue with current bits.
Thanks!