Visual Studio Mac download Xamarin.iOS from wrong branch

Hi all, it's about a year that my solution don't compile in Visual Studio Mac after update to the last tools version (VS Mac, Xamarin, etc).
I try to investigate myself and found that when I go to the Info in VS Mac I found that Xamarin.iOS is download from a branch that is not the stable.

=== Visual Studio Professional 2017 for Mac ===

Version 7.6.11 (build 9)
Installation UUID: dc3ea371-1dfd-400c-b88f-a7d708ad2940
Runtime:
Mono 5.12.0.309 (2018-02/39d89a335c8) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 4.4.1.178 (master / eeaeb7e6)

Package version: 512000309

=== NuGet ===

Version: 4.3.1.4445

=== .NET Core ===

Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
2.1.2
2.0.5
SDK: /usr/local/share/dotnet/sdk/2.1.302/Sdks
SDK Versions:
2.1.302
2.1.4
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin/Sdks

=== Xamarin.Profiler ===

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

=== Xamarin.Android ===

Version: 8.3.3.2 (Visual Studio Professional)
Android SDK: /Users/michelangelo/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
4.2 (API level 17)
7.0 (API level 24)
7.1 (API level 25)
8.0 (API level 26)
8.1 (API level 27)

SDK Tools Version: 26.1.1
SDK Platform Tools Version: 28.0.0
SDK Build Tools Version: 28.0.0

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

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

=== Apple Developer Tools ===

Xcode 10.0 (14320.25)
Build 10B61

=== Xamarin.Mac ===

Version: 5.0.0.0 (Visual Studio Professional)
Hash: b40230c0
Branch:
Build date: 2018-09-27 11:41:37-0400

**=== Xamarin.iOS ===

Version: 12.2.1.10 (Visual Studio Professional)
Hash: f2a05edd
Branch: d15-9
Build date: 2018-10-31 18:55:57-0400
**
=== Xamarin Inspector ===

Version: 1.4.3
Hash: db27525
Branch: 1.4-release
Build date: Mon, 09 Jul 2018 21:20:18 GMT
Client compatibility: 1

=== Build Information ===

Release ID: 706110009
Git revision: d7cd66f5e3acd3d46ba0b94a0c935378f828bde0
Build date: 2018-10-31 17:17:12+00
Build branch: release-7.6
Xamarin extensions: bc9b985bfcb480b04a208a6d4045adc443a07857

=== Operating System ===

Mac OS X 10.13.6
Darwin 17.7.0 Darwin Kernel Version 17.7.0
Thu Jun 21 22:53:14 PDT 2018
root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64

=== Enabled user installed extensions ===

MFractor 3.05.18
Redth's Addins 1.0.9

Probably is for this that my iOS solution don't compile anymore, instead of Android compile done.

I got this error:
/Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin/Roslyn/Microsoft.CSharp.Core.targets(5,5): Error: System.ComponentModel.Win32Exception (0x80004005): ApplicationName='mcs.exe', CommandLine=' /noconfig @/var/folders/sz/xwblzqx5585c6sb2ycxjky_w0000gn/T/tmpa4105c6203ca459eba1c69f42a3a9005.rsp', CurrentDirectory='', Native error= Cannot find the specified file
at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x002dc] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-02/external/bockbuild/builds/mono-x64/mcs/class/System/System.Diagnostics/Process.cs:775
at System.Diagnostics.Process.Start () [0x0003a] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-02/external/bockbuild/builds/mono-x64/mcs/class/referencesource/System/services/monitoring/system/diagnosticts/Process.cs:2005
at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
at Microsoft.Build.Utilities.ToolTask.ExecuteTool (System.String pathToTool, System.String responseFileCommands, System.String commandLineCommands) [0x000c9] in /_/src/Utilities/ToolTask.cs:862
at Microsoft.CodeAnalysis.BuildTasks.ManagedCompiler.ExecuteTool (System.String pathToTool, System.String responseFileCommands, System.String commandLineCommands) [0x00066] in <896b154c97654cea80889fd96e18abdc>:0 (ENSoft.iOS)

Posts

  • MichelangeloFrancoMichelangeloFranco ITUniversity ✭✭

    My colleague have this and He can build same iOS project with success

    === Xamarin.iOS ===

    Version: 11.6.1.4 (Visual Studio Community)
    Hash: db807ec9
    Branch: xcode9.2
    Build date: 2018-01-10 16:45:48-0500

    I think my problem depends of branch version of Xamarin but I don't know why my VS, and colleague's VS download different branch, and most important how I can switch this branch so VS can download Stable Branch only.
    I also tried to uninstall all instance of VS, Mono, Xamarin and so on and reinstall all after download from Microsoft Xamarin Site.

    Thanks you so much for the help that you give me.

    Best regards.

  • mattwardmattward GBMember Xamurai

    The current stable Xamarin.iOS is version 12.2.1.10, as of today. That version was published to the stable channel Nov 13th.

    Xamarin.iOS 11.6.1.4 was released quite a while ago - Jan 2018. Here is a download for that version which you can try to see if that resolves the problem you are having - https://dl.xamarin.com/MonoTouch/Mac/xamarin.ios-11.6.1.4.pkg

  • MichelangeloFrancoMichelangeloFranco ITUniversity ✭✭

    Thanks for reply, so If I understand I need to downgrade my Xamarin.iOS version?

  • MichelangeloFrancoMichelangeloFranco ITUniversity ✭✭

    For information, this is the error I have when build solution:
    /Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin/Roslyn/Microsoft.CSharp.Core.targets(5,5): Error: System.ComponentModel.Win32Exception (0x80004005): ApplicationName='mcs.exe', CommandLine=' /noconfig @/var/folders/0q/bwxlfh5j55s6k8c7g7971gww0000gn/T/tmp721768ed3a8f479e9b369d0b6427768c.rsp', CurrentDirectory='', Native error= Cannot find the specified file
    at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x002dc] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-02/external/bockbuild/builds/mono-x64/mcs/class/System/System.Diagnostics/Process.cs:775
    at System.Diagnostics.Process.Start () [0x0003a] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-02/external/bockbuild/builds/mono-x64/mcs/class/referencesource/System/services/monitoring/system/diagnosticts/Process.cs:2005
    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    at Microsoft.Build.Utilities.ToolTask.ExecuteTool (System.String pathToTool, System.String responseFileCommands, System.String commandLineCommands) [0x000c9] in /_/src/Utilities/ToolTask.cs:862
    at Microsoft.CodeAnalysis.BuildTasks.ManagedCompiler.ExecuteTool (System.String pathToTool, System.String responseFileCommands, System.String commandLineCommands) [0x00066] in <896b154c97654cea80889fd96e18abdc>:0 (ENSoft.iOS)

  • mattwardmattward GBMember Xamurai

    I do not know if downgrading your Xamarin.iOS is needed. If it is working for your co-worker who is using the older Xamarin.iOS you could try installing that older version to see if it works.

    The error itself seems to suggest that mcs.exe cannot be found in Mono, or the path being specified cannot be found. If you run msbuild with diagnostic output, msbuild yoursolution.sln /v:diag > build.log that might provide more information.

  • MichelangeloFrancoMichelangeloFranco ITUniversity ✭✭

    Yes I know, I have update all (Xcode, Xamarin,...)

Sign In or Register to comment.