mono / Embeddinator-4000

Tools to turn .NET libraries into native libraries that can be consumed on Android, iOS, Mac, Linux and other platforms.
MIT License
758 stars 95 forks source link

Embeddinator-4000.sln build fails on MacOS 10.14.6 Visual Studio 2019 v8.4.8 #764

Closed dbell-movano closed 4 years ago

dbell-movano commented 4 years ago

Steps to Reproduce

  1. Clone github > Embeddinator-4000
  2. cd to the clone directory
  3. git submodule update --recursive --init
  4. Open Embeddinator-4000.sln with Visual Studio
  5. Build

Expected Behavior

Should build.

Actual Behavior

Build fails with these 3 errors: Error 1: /PRIMARY/WORK/Embeddinator-4000/external/Xamarin.Android.Tools/src/Xamarin.Android.Tools.AndroidSdk/Sdks/AndroidSdkWindows.cs(31,31): Error CS0246: The type or namespace name 'JdkInfo' could not be found (are you missing a using directive or an assembly reference?) (CS0246) (Xamarin.Android.Tools)

Error 2: Error: The Java SDK could not be found, please set the path to it in the Xamarin.Android SDKs settings panel.

Error 3: Error: The Java SDK could not be found, please set the path to it in the Xamarin.Android SDKs settings panel.

Environment

Visual Studio 2019 8.4.8 on MAC OS 10.14.6 builds Xamarin.obj class lib project Embeddinator-4000 (ie. objcgen etc)

Build Logs

Example Project (If Possible)

chamons commented 4 years ago

/PRIMARY/WORK/Embeddinator-4000/external/Xamarin.Android.Tools/src/Xamarin.Android.Tools.AndroidSdk/Sdks/AndroidSdkWindows.cs(31,31): Error CS0246: The type or namespace name 'JdkInfo' could not be found (are you missing a using directive or an assembly reference?) (CS0246) (Xamarin.Android.Tools)

Can you please post the entire build log and environment, as the template requests.

dbell-movano commented 4 years ago

FYI- I am only using Emb4000 for a Xamarin.ios project, no Android.

re error #1 /PRIMARY/WORK/Embeddinator-4000/external/Xamarin.Android.Tools/src/Xamarin.Android.Tools.AndroidSdk/Sdks/AndroidSdkWindows.cs(113,31,113,38): error CS0246: The type or namespace name 'JdkInfo' could not be found (are you missing a using directive or an assembly reference?) 0 Warning(s) 1 Error(s)

dbell-movano commented 4 years ago

Build Logs...

EMB4000 BUILD.txt

dbell-movano commented 4 years ago

QUESTIONS: How do I build objcgen from project Embeddinator-4000 ?

Do I build form issuing "make" within MacOS terminal, or which project should I open to build with Visual Studio?...

IE. which project .csproj will build objcgen for embeddinator4000 conversion of a Xamarin. ios project?

16 -rw-r--r-- 1 dbell wheel 7303 Mar 11 11:46 CppSharp.AST.csproj 40 -rw-r--r-- 1 dbell wheel 16402 Mar 11 11:46 CppSharp.Generator.csproj 8 -rw-r--r-- 1 dbell wheel 3343 Mar 11 11:46 CppSharp.Parser.CSharp.csproj 8 -rw-r--r-- 1 dbell wheel 4036 Mar 11 11:46 CppSharp.Parser.csproj 8 -rw-r--r-- 1 dbell wheel 2917 Mar 11 11:46 CppSharp.Runtime.csproj 8 -rw-r--r-- 1 dbell wheel 3691 Mar 11 11:46 CppSharp.csproj 24 -rw-r--r--@ 1 dbell wheel 10841 Mar 11 11:46 Embeddinator-4000.csproj 8 -rw-r--r-- 1 dbell wheel 773 Mar 14 16:41 Embeddinator-4000.sln 32 -rw-r--r-- 1 dbell wheel 16310 Mar 11 11:46 IKVM.Reflection.csproj 16 -rw-r--r-- 1 dbell wheel 5934 Mar 11 11:46 Xamarin.Android.Tools.csproj 24 -rw-r--r-- 1 dbell wheel 8938 Mar 14 16:46 Xamarin.MacDev.csproj 8 -rw-r--r-- 1 dbell wheel 767 Mar 14 16:46 Xamarin.MacDev.sln

chamons commented 4 years ago

https://github.com/mono/Embeddinator-4000#makefile

Makefile

The Objective-C portions of the project can be built with make in objcgen.
dbell-movano commented 4 years ago

chamons, okay, I wentinto objcgen/ and did make but got 91 errors beginning with these: CSC : error CS2001: Source file '/PRIMARY/WORK/Embeddinator-4000_attempt_2/Embeddinator-4000/build/projects/../../external/ikvm/reflect/Emit/ConstructorBuilder.cs' could not be found. [/PRIMARY/WORK/Embeddinator-4000_attempt_2/Embeddinator-4000/build/projects/IKVM.Reflection.csproj] CSC : error CS2001: Source file '/PRIMARY/WORK/Embeddinator-4000_attempt_2/Embeddinator-4000/build/projects/../../external/ikvm/reflect/Type.cs' could not be found. [/PRIMARY/WORK/Embeddinator-4000_attempt_2/Embeddinator-4000/build/projects/IKVM.Reflection.csproj] CSC : error CS2001: Source file '/PRIMARY/WORK/Embeddinator-4000_attempt_2/Embeddinator-4000/build/projects/../../external/ikvm/reflect/Writer/TextSection.cs' could

chamons commented 4 years ago

Did you follow the instructions on the main page first:

https://github.com/mono/Embeddinator-4000

Specifically: Initialize/update submodules: git submodule update --recursive --init

?

Why are you trying to build objcgen instead of using the binary from the nuget?

dbell-movano commented 4 years ago

Hi, Chris. Thanks so much for taking the time to help me. Emb-4000 is going to be a fantastic way for us to unite our Xamarin.IOS with our Xcode ObjC.

I answered your questions below.

But I feel there is something wrong in my workflow..

  1. https://github.com/mono/Embeddinator-4000
  2. Download emb4000:

git clone https://github.com/mono/Embeddinator-4000.git

cd Embeddinator-4000

git submodule update --recursive --init

EVERYTHING IS OKAY TO HERE

  1. Open the solution file Embeddinator-4000.sln with Visual Studio For Mac
  2. VS > Build All <<< GETS 3 ERRORS. PLEASE SEE BELOW
  3. cd into objcgen/
  4. make nuget

From: Chris Hamons notifications@github.com Sent: Tuesday, March 17, 2020 11:40 AM To: mono/Embeddinator-4000 Embeddinator-4000@noreply.github.com Cc: Doug Bell dbell@movano.com; Author author@noreply.github.com Subject: Re: [mono/Embeddinator-4000] Embeddinator-4000.sln build fails on MacOS 10.14.6 Visual Studio 2019 v8.4.8 (#764)

Did you follow the instructions on the main page first:

https://github.com/mono/Embeddinator-4000

Specifically: Initialize/update submodules: git submodule update --recursive --init

?

Why are you trying to build objcgen instead of using the binary from the nuget?

[Doug Bell] Because I get these 3 errors when I try to build Embeddinator-4000.sln with Visual Studio on Mac …

1ST ERROR: /PRIMARY/WORK/Embeddinator-4000_attempt_3/Embeddinator-4000/external/Xamarin.Android.Tools/src/Xamarin.Android.Tools.AndroidSdk/Sdks/AndroidSdkWindows.cs(31,31): Error CS0246: The type or namespace name 'JdkInfo' could not be found (are you missing a using directive or an assembly reference?) (CS0246) (Xamarin.Android.Tools)

2ND ERROR: Error: The Java SDK could not be found, please set the path to it in the Xamarin.Android SDKs settings panel.

3RD ERROR: Error: The Java SDK could not be found, please set the path to it in the Xamarin.Android SDKs settings panel.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mono/Embeddinator-4000/issues/764#issuecomment-600234427, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOM563ZBBLBQ6W7HJYH66FDRH67XVANCNFSM4LF4QRPQ.

chamons commented 4 years ago

The errors are expected, if you build from the sln and not the objcgen directory you are building both the iOS/mac and Android support.

1ST ERROR:
/PRIMARY/WORK/Embeddinator-4000_attempt_3/Embeddinator-4000/external/Xamarin.Android.Tools/src/Xamarin.Android.Tools.AndroidSdk/Sdks/AndroidSdkWindows.cs(31,31): Error CS0246: The type or namespace name 'JdkInfo' could not be found (are you missing a using directive or an assembly reference?) (CS0246) (Xamarin.Android.Tools)

2ND ERROR:
Error: The Java SDK could not be found, please set the path to it in the Xamarin.Android SDKs settings panel.

3RD ERROR:
Error: The Java SDK could not be found, please set the path to it in the Xamarin.Android SDKs settings panel.

There errors are complaining about misconfiguration in your Android/Java SDK. If you unload the Java project from the sln, you shouldn't see them.

wcoder commented 4 years ago

I have the same error when building e4k for Android:

Android

error CS0246: The type or namespace name 'JdkInfo' could not be found (are you missing a using directive or an assembly reference?)

Steps:

  1. Checkout to latest e4k master with submodules
  2. run ./build.sh -t Generate-Android -v diagnostic - ERROR:
    Logs
Feeds used:
  /Users/yauhenipakala/.nuget/packages/
  https://api.nuget.org/v3/index.json

Restoring NuGet package Cake.0.31.0.

...
...

Compiling build script...

Error: System.IO.FileLoadException: The assembly name is invalid.
  at System.Reflection.AssemblyName..ctor (System.String assemblyName) [0x00043] in <f9d1b832704f410aa8ec771f4fe80552>:0
  at Microsoft.CodeAnalysis.MonoGlobalAssemblyCache+<GetAssemblyIdentitiesAndPaths>d__6.MoveNext () [0x000af] in <3bfae55b53254752b1c3dc824b21dbe3>:0
  at Microsoft.CodeAnalysis.MonoGlobalAssemblyCache.ResolvePartialName (System.String displayName, System.String& location, System.Collections.Immutable.ImmutableArray`1[T] architectureFilter, System.Globalization.CultureInfo preferredCulture) [0x00092] in <3bfae55b53254752b1c3dc824b21dbe3>:0
  at Microsoft.CodeAnalysis.Scripting.Hosting.GacFileResolver.Resolve (System.String assemblyName) [0x00014] in <3bfae55b53254752b1c3dc824b21dbe3>:0
  at Microsoft.CodeAnalysis.Scripting.Hosting.RuntimeMetadataReferenceResolver.ResolveMissingAssembly (Microsoft.CodeAnalysis.MetadataReference definition, Microsoft.CodeAnalysis.AssemblyIdentity referenceIdentity) [0x0001d] in <3bfae55b53254752b1c3dc824b21dbe3>:0
  at Microsoft.CodeAnalysis.Scripting.ScriptMetadataResolver.ResolveMissingAssembly (Microsoft.CodeAnalysis.MetadataReference definition, Microsoft.CodeAnalysis.AssemblyIdentity referenceIdentity) [0x00000] in <3bfae55b53254752b1c3dc824b21dbe3>:0
  at Microsoft.CodeAnalysis.CommonReferenceManager`2[TCompilation,TAssemblySymbol].ResolveAndBindMissingAssemblies (TCompilation compilation, System.Collections.Immutable.ImmutableArray`1[T] explicitAssemblies, System.Collections.Immutable.ImmutableArray`1[T] explicitModules, System.Collections.Immutable.ImmutableArray`1[T] explicitReferences, System.Collections.Immutable.ImmutableArray`1[T] explicitReferenceMap, Microsoft.CodeAnalysis.MetadataReferenceResolver resolver, Microsoft.CodeAnalysis.MetadataImportOptions importOptions, System.Boolean supersedeLowerVersions, Microsoft.CodeAnalysis.PooledObjects.ArrayBuilder`1[T] referenceBindings, System.Collections.Generic.Dictionary`2[TKey,TValue] assemblyReferencesBySimpleName, System.Collections.Immutable.ImmutableArray`1[Microsoft.CodeAnalysis.CommonReferenceManager`2+AssemblyData[TCompilation,TAssemblySymbol]]& allAssemblies, System.Collections.Immutable.ImmutableArray`1[Microsoft.CodeAnalysis.MetadataReference]& metadataReferences, System.Collections.Immutable.ImmutableArray`1[Microsoft.CodeAnalysis.CommonReferenceManager`2+ResolvedReference[TCompilation,TAssemblySymbol]]& resolvedReferences, Microsoft.CodeAnalysis.DiagnosticBag resolutionDiagnostics) [0x00123] in <45499d95dd89417f88ab4e01794e214c>:0
  at Microsoft.CodeAnalysis.CommonReferenceManager`2[TCompilation,TAssemblySymbol].Bind (TCompilation compilation, System.Collections.Immutable.ImmutableArray`1[T] explicitAssemblies, System.Collections.Immutable.ImmutableArray`1[T] explicitModules, System.Collections.Immutable.ImmutableArray`1[T] explicitReferences, System.Collections.Immutable.ImmutableArray`1[T] explicitReferenceMap, Microsoft.CodeAnalysis.MetadataReferenceResolver resolverOpt, Microsoft.CodeAnalysis.MetadataImportOptions importOptions, System.Boolean supersedeLowerVersions, System.Collections.Generic.Dictionary`2[TKey,TValue] assemblyReferencesBySimpleName, System.Collections.Immutable.ImmutableArray`1[Microsoft.CodeAnalysis.CommonReferenceManager`2+AssemblyData[TCompilation,TAssemblySymbol]]& allAssemblies, System.Collections.Immutable.ImmutableArray`1[Microsoft.CodeAnalysis.MetadataReference]& implicitlyResolvedReferences, System.Collections.Immutable.ImmutableArray`1[Microsoft.CodeAnalysis.CommonReferenceManager`2+ResolvedReference[TCompilation,TAssemblySymbol]]& implicitlyResolvedReferenceMap, Microsoft.CodeAnalysis.DiagnosticBag resolutionDiagnostics, System.Boolean& hasCircularReference, System.Int32& corLibraryIndex) [0x0003f] in <45499d95dd89417f88ab4e01794e214c>:0
  at Microsoft.CodeAnalysis.CSharp.CSharpCompilation+ReferenceManager.CreateAndSetSourceAssemblyFullBind (Microsoft.CodeAnalysis.CSharp.CSharpCompilation compilation) [0x0007f] in <7fb80e7e71474ba9a2b7085379c47dd6>:0
  at Microsoft.CodeAnalysis.CSharp.CSharpCompilation+ReferenceManager.CreateSourceAssemblyForCompilation (Microsoft.CodeAnalysis.CSharp.CSharpCompilation compilation) [0x00008] in <7fb80e7e71474ba9a2b7085379c47dd6>:0
  at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.GetBoundReferenceManager () [0x00008] in <7fb80e7e71474ba9a2b7085379c47dd6>:0
  at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.GetDiagnostics (Microsoft.CodeAnalysis.CompilationStage stage, System.Boolean includeEarlierStages, Microsoft.CodeAnalysis.DiagnosticBag diagnostics, System.Threading.CancellationToken cancellationToken) [0x00219] in <7fb80e7e71474ba9a2b7085379c47dd6>:0
  at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.GetDiagnostics (Microsoft.CodeAnalysis.CompilationStage stage, System.Boolean includeEarlierStages, System.Threading.CancellationToken cancellationToken) [0x00006] in <7fb80e7e71474ba9a2b7085379c47dd6>:0
  at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.GetDiagnostics (System.Threading.CancellationToken cancellationToken) [0x00000] in <7fb80e7e71474ba9a2b7085379c47dd6>:0
  at Cake.Scripting.Roslyn.RoslynScriptSession.Execute (Cake.Core.Scripting.Script script) [0x00099] in <a008ec96744a4a7683f917682c225be4>:0
  at Cake.Core.Scripting.ScriptRunner.Run (Cake.Core.Scripting.IScriptHost host, Cake.Core.IO.FilePath scriptPath, System.Collections.Generic.IDictionary`2[TKey,TValue] arguments) [0x00358] in <5b0aab9fcc1a4aee9b9c4ae93daf4114>:0
  at Cake.Commands.BuildCommand.Execute (Cake.CakeOptions options) [0x0003f] in <a008ec96744a4a7683f917682c225be4>:0
  at Cake.CakeApplication.Run (Cake.CakeOptions options) [0x00015] in <a008ec96744a4a7683f917682c225be4>:0
  at Cake.Program.Main () [0x000d1] in <a008ec96744a4a7683f917682c225be4>:0

  1. manual remove .cake folder
  2. run ./build.sh -t Generate-Android -v diagnostic again - ERROR:
    Logs
...
<Here everything is fine (Download-Xamarin-Android, Clean, Generate-Project-Files)>
...
...
Finished executing task: Generate-Project-Files

========================================
NuGet-Restore
========================================
Executing task: NuGet-Restore
Executing: /Users/yauhenipakala/Projects/github/wcoder/xamarin-embedding-starter-kit/e4k/.cake/NuGet.exe restore "/Users/yauhenipakala/Projects/github/wcoder/xamarin-embedding-starter-kit/e4k/Embeddinator-4000.sln" -NonInteractive
MSBuild auto-detection: using msbuild version '15.0' from '/Library/Frameworks/Mono.framework/Versions/6.8.0/lib/mono/msbuild/15.0/bin'.
Error parsing solution file at /Users/yauhenipakala/Projects/github/wcoder/xamarin-embedding-starter-kit/e4k/Embeddinator-4000.sln: Exception has been thrown by the target of an invocation.  The project file could not be loaded. Could not load file or assembly 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.  /Users/yauhenipakala/Projects/github/wcoder/xamarin-embedding-starter-kit/e4k/Embeddinator-4000.sln
An error occurred when executing task 'NuGet-Restore'.
Error: System.AggregateException: One or more errors occurred. (NuGet: Process returned an error (exit code 1).) ---> Cake.Core.CakeException: NuGet: Process returned an error (exit code 1).
  at Cake.Core.Tooling.Tool`1[TSettings].ProcessExitCode (System.Int32 exitCode) [0x00023] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Core.Tooling.Tool`1[TSettings].Run (TSettings settings, Cake.Core.IO.ProcessArgumentBuilder arguments, Cake.Core.IO.ProcessSettings processSettings, System.Action`1[T] postAction) [0x000a0] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Core.Tooling.Tool`1[TSettings].Run (TSettings settings, Cake.Core.IO.ProcessArgumentBuilder arguments) [0x00000] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Common.Tools.NuGet.Restore.NuGetRestorer.Restore (Cake.Core.IO.FilePath targetFilePath, Cake.Common.Tools.NuGet.Restore.NuGetRestoreSettings settings) [0x00026] in <f9be2685cd444b48bcc7c151afd77c59>:0
  at Cake.Common.Tools.NuGet.NuGetAliases.NuGetRestore (Cake.Core.ICakeContext context, Cake.Core.IO.FilePath targetFilePath, Cake.Common.Tools.NuGet.Restore.NuGetRestoreSettings settings) [0x00044] in <f9be2685cd444b48bcc7c151afd77c59>:0
  at Cake.Common.Tools.NuGet.NuGetAliases.NuGetRestore (Cake.Core.ICakeContext context, Cake.Core.IO.FilePath targetFilePath) [0x00006] in <f9be2685cd444b48bcc7c151afd77c59>:0
  at Submission#0.NuGetRestore (Cake.Core.IO.FilePath targetFilePath) [0x0000c] in <ace52ddd76c74844863d3614e57355f1>:0
  at Submission#0.<<Initialize>>b__0_31 () [0x0000c] in <ace52ddd76c74844863d3614e57355f1>:0
  at Cake.Core.CakeTaskBuilderExtensions+<>c__DisplayClass29_0.<Does>b__0 (Cake.Core.ICakeContext context) [0x00000] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Core.CakeTaskBuilderExtensions+<>c__DisplayClass32_0.<Does>b__0 (Cake.Core.ICakeContext x) [0x00000] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Core.CakeTask.Execute (Cake.Core.ICakeContext context) [0x0006c] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Core.DefaultExecutionStrategy.ExecuteAsync (Cake.Core.CakeTask task, Cake.Core.ICakeContext context) [0x000ee] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Core.CakeEngine.ExecuteTaskAsync (Cake.Core.ICakeContext context, Cake.Core.IExecutionStrategy strategy, System.Diagnostics.Stopwatch stopWatch, Cake.Core.CakeTask task, Cake.Core.CakeReport report) [0x000de] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Core.CakeEngine.ExecuteTaskAsync (Cake.Core.ICakeContext context, Cake.Core.IExecutionStrategy strategy, System.Diagnostics.Stopwatch stopWatch, Cake.Core.CakeTask task, Cake.Core.CakeReport report) [0x00270] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Core.CakeEngine.ExecuteTaskAsync (Cake.Core.ICakeContext context, Cake.Core.IExecutionStrategy strategy, System.Diagnostics.Stopwatch stopWatch, Cake.Core.CakeTask task, Cake.Core.CakeReport report) [0x00354] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Core.CakeEngine.RunTask (Cake.Core.ICakeContext context, Cake.Core.IExecutionStrategy strategy, Cake.Core.CakeTask task, System.String target, System.Diagnostics.Stopwatch stopWatch, Cake.Core.CakeReport report) [0x00124] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Core.CakeEngine.RunTargetAsync (Cake.Core.ICakeContext context, Cake.Core.IExecutionStrategy strategy, Cake.Core.ExecutionSettings settings) [0x00338] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Scripting.BuildScriptHost.RunTargetAsync (System.String target) [0x0009f] in <f7ab677035254e96ac028557e3c3278e>:0
  at Cake.Core.Scripting.ScriptHost.RunTarget (System.String target) [0x0000d] in <352990cac81e4748b475ea51792a9c60>:0
  at Submission#0+<<Initialize>>d__0.MoveNext () [0x00c79] in <ace52ddd76c74844863d3614e57355f1>:0
  at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.RunSubmissionsAsync[TResult] (System.Collections.Immutable.ImmutableArray`1[T] precedingExecutors, System.Func`2[T,TResult] currentExecutor, System.Runtime.CompilerServices.StrongBox`1[T] exceptionHolderOpt, System.Func`2[T,TResult] catchExceptionOpt, System.Threading.CancellationToken cancellationToken) [0x00186] in <e3eeb0e906164dce94410e4a1bbdb018>:0
  at Microsoft.CodeAnalysis.Scripting.Script`1[T].RunSubmissionsAsync (Microsoft.CodeAnalysis.Scripting.ScriptExecutionState executionState, System.Collections.Immutable.ImmutableArray`1[T] precedingExecutors, System.Func`2[T,TResult] currentExecutor, System.Func`2[T,TResult] catchExceptionOpt, System.Threading.CancellationToken cancellationToken) [0x000ab] in <e3eeb0e906164dce94410e4a1bbdb018>:0
   --- End of inner exception stack trace ---
  at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <f9d1b832704f410aa8ec771f4fe80552>:0
  at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in <f9d1b832704f410aa8ec771f4fe80552>:0
  at System.Threading.Tasks.Task.Wait () [0x00000] in <f9d1b832704f410aa8ec771f4fe80552>:0
  at Cake.Scripting.Roslyn.RoslynScriptSession.Execute (Cake.Core.Scripting.Script script) [0x00216] in <f7ab677035254e96ac028557e3c3278e>:0
  at Cake.Core.Scripting.ScriptRunner.Run (Cake.Core.Scripting.IScriptHost host, Cake.Core.IO.FilePath scriptPath, System.Collections.Generic.IDictionary`2[TKey,TValue] arguments) [0x00382] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Commands.BuildCommand.Execute (Cake.CakeOptions options) [0x0003f] in <f7ab677035254e96ac028557e3c3278e>:0
  at Cake.CakeApplication.Run (Cake.CakeOptions options) [0x00015] in <f7ab677035254e96ac028557e3c3278e>:0
  at Cake.Program.Main () [0x000d1] in <f7ab677035254e96ac028557e3c3278e>:0
---> (Inner Exception #0) Cake.Core.CakeException: NuGet: Process returned an error (exit code 1).
  at Cake.Core.Tooling.Tool`1[TSettings].ProcessExitCode (System.Int32 exitCode) [0x00023] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Core.Tooling.Tool`1[TSettings].Run (TSettings settings, Cake.Core.IO.ProcessArgumentBuilder arguments, Cake.Core.IO.ProcessSettings processSettings, System.Action`1[T] postAction) [0x000a0] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Core.Tooling.Tool`1[TSettings].Run (TSettings settings, Cake.Core.IO.ProcessArgumentBuilder arguments) [0x00000] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Common.Tools.NuGet.Restore.NuGetRestorer.Restore (Cake.Core.IO.FilePath targetFilePath, Cake.Common.Tools.NuGet.Restore.NuGetRestoreSettings settings) [0x00026] in <f9be2685cd444b48bcc7c151afd77c59>:0
  at Cake.Common.Tools.NuGet.NuGetAliases.NuGetRestore (Cake.Core.ICakeContext context, Cake.Core.IO.FilePath targetFilePath, Cake.Common.Tools.NuGet.Restore.NuGetRestoreSettings settings) [0x00044] in <f9be2685cd444b48bcc7c151afd77c59>:0
  at Cake.Common.Tools.NuGet.NuGetAliases.NuGetRestore (Cake.Core.ICakeContext context, Cake.Core.IO.FilePath targetFilePath) [0x00006] in <f9be2685cd444b48bcc7c151afd77c59>:0
  at Submission#0.NuGetRestore (Cake.Core.IO.FilePath targetFilePath) [0x0000c] in <ace52ddd76c74844863d3614e57355f1>:0
  at Submission#0.<<Initialize>>b__0_31 () [0x0000c] in <ace52ddd76c74844863d3614e57355f1>:0
  at Cake.Core.CakeTaskBuilderExtensions+<>c__DisplayClass29_0.<Does>b__0 (Cake.Core.ICakeContext context) [0x00000] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Core.CakeTaskBuilderExtensions+<>c__DisplayClass32_0.<Does>b__0 (Cake.Core.ICakeContext x) [0x00000] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Core.CakeTask.Execute (Cake.Core.ICakeContext context) [0x0006c] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Core.DefaultExecutionStrategy.ExecuteAsync (Cake.Core.CakeTask task, Cake.Core.ICakeContext context) [0x000ee] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Core.CakeEngine.ExecuteTaskAsync (Cake.Core.ICakeContext context, Cake.Core.IExecutionStrategy strategy, System.Diagnostics.Stopwatch stopWatch, Cake.Core.CakeTask task, Cake.Core.CakeReport report) [0x000de] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Core.CakeEngine.ExecuteTaskAsync (Cake.Core.ICakeContext context, Cake.Core.IExecutionStrategy strategy, System.Diagnostics.Stopwatch stopWatch, Cake.Core.CakeTask task, Cake.Core.CakeReport report) [0x00270] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Core.CakeEngine.ExecuteTaskAsync (Cake.Core.ICakeContext context, Cake.Core.IExecutionStrategy strategy, System.Diagnostics.Stopwatch stopWatch, Cake.Core.CakeTask task, Cake.Core.CakeReport report) [0x00354] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Core.CakeEngine.RunTask (Cake.Core.ICakeContext context, Cake.Core.IExecutionStrategy strategy, Cake.Core.CakeTask task, System.String target, System.Diagnostics.Stopwatch stopWatch, Cake.Core.CakeReport report) [0x00124] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Core.CakeEngine.RunTargetAsync (Cake.Core.ICakeContext context, Cake.Core.IExecutionStrategy strategy, Cake.Core.ExecutionSettings settings) [0x00338] in <352990cac81e4748b475ea51792a9c60>:0
  at Cake.Scripting.BuildScriptHost.RunTargetAsync (System.String target) [0x0009f] in <f7ab677035254e96ac028557e3c3278e>:0
  at Cake.Core.Scripting.ScriptHost.RunTarget (System.String target) [0x0000d] in <352990cac81e4748b475ea51792a9c60>:0
  at Submission#0+<<Initialize>>d__0.MoveNext () [0x00c79] in <ace52ddd76c74844863d3614e57355f1>:0
  at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.RunSubmissionsAsync[TResult] (System.Collections.Immutable.ImmutableArray`1[T] precedingExecutors, System.Func`2[T,TResult] currentExecutor, System.Runtime.CompilerServices.StrongBox`1[T] exceptionHolderOpt, System.Func`2[T,TResult] catchExceptionOpt, System.Threading.CancellationToken cancellationToken) [0x00186] in <e3eeb0e906164dce94410e4a1bbdb018>:0
  at Microsoft.CodeAnalysis.Scripting.Script`1[T].RunSubmissionsAsync (Microsoft.CodeAnalysis.Scripting.ScriptExecutionState executionState, System.Collections.Immutable.ImmutableArray`1[T] precedingExecutors, System.Func`2[T,TResult] currentExecutor, System.Func`2[T,TResult] catchExceptionOpt, System.Threading.CancellationToken cancellationToken) [0x000ab] in <e3eeb0e906164dce94410e4a1bbdb018>:0 <---

  1. show diff:
    diff --git a/.cake/packages.config b/.cake/packages.config
    index 6c62e9b..cedcc6a 100644
    --- a/.cake/packages.config
    +++ b/.cake/packages.config
    @@ -1,4 +1,4 @@
    <?xml version="1.0" encoding="utf-8"?>
    <packages>
    -    <package id="Cake" version="0.31.0" />
    +    <package id="Cake" version="0.37.0" />
    </packages>
    diff --git a/build/projects/Embeddinator-4000.csproj b/build/projects/Embeddinator-4000.csproj
    index bb28f7c..fda8e31 100644
    --- a/build/projects/Embeddinator-4000.csproj
    +++ b/build/projects/Embeddinator-4000.csproj
    @@ -11,7 +11,6 @@
     <AssemblyName>Embeddinator-4000</AssemblyName>
     <TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
     <FileAlignment>512</FileAlignment>
    -    <BaseIntermediateOutputPath>..\obj\Debug\Embeddinator-4000</BaseIntermediateOutputPath>
    </PropertyGroup>
    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
     <PlatformTarget>x86</PlatformTarget>
    @@ -141,8 +140,8 @@
     <Compile Include="../../binder/Parser.cs">
       <Link>binder/Parser.cs</Link>
     </Compile>
    -    <Compile Include="..\..\binder\Passes\CheckDeclarationsPass.cs">
    -      <Link>binder\Passes\CheckDeclarationsPass.cs</Link>
    +    <Compile Include="../../binder/Passes/CheckDeclarationsPass.cs">
    +      <Link>binder/Passes/CheckDeclarationsPass.cs</Link>
     </Compile>
     <Compile Include="../../binder/Passes/CheckReservedKeywordsPass.cs">
       <Link>binder/Passes/CheckReservedKeywordsPass.cs</Link>
    diff --git a/build/projects/Xamarin.Android.Tools.csproj b/build/projects/Xamarin.Android.Tools.csproj
    index fd35b86..6361c33 100644
    --- a/build/projects/Xamarin.Android.Tools.csproj
    +++ b/build/projects/Xamarin.Android.Tools.csproj
    @@ -73,6 +73,9 @@
     <Compile Include="../../external/Xamarin.Android.Tools/src/Xamarin.Android.Tools.AndroidSdk/FileUtil.cs">
       <Link>external/Xamarin.Android.Tools/src/Xamarin.Android.Tools.AndroidSdk/FileUtil.cs</Link>
     </Compile>
    +    <Compile Include="../../external/Xamarin.Android.Tools/src/Xamarin.Android.Tools.AndroidSdk/JdkInfo.cs">
    +      <Link>external/Xamarin.Android.Tools/src/Xamarin.Android.Tools.AndroidSdk/JdkInfo.cs</Link>
    +    </Compile>
     <Compile Include="../../external/Xamarin.Android.Tools/src/Xamarin.Android.Tools.AndroidSdk/OS.cs">
       <Link>external/Xamarin.Android.Tools/src/Xamarin.Android.Tools.AndroidSdk/OS.cs</Link>
     </Compile>
    diff --git a/build/projects/packages.config b/build/projects/packages.config
    index 2755199..18f4e92 100644
    --- a/build/projects/packages.config
    +++ b/build/projects/packages.config
    @@ -1,5 +1,4 @@
    -<?xml version="1.0" encoding="utf-8"?>
    -<packages>
    -  <package id="Mono.Cecil" version="0.9.6.4" targetFramework="net46" />
    -  <package id="Mono.TextTransform" version="1.0.0" targetFramework="net46" />
    -</packages>
    +<?xml version="1.0" encoding="utf-8"?>
    +<packages>
    +  <package id="Mono.Cecil" version="0.9.6.4" targetFramework="net46" />
    +</packages>
    \ No newline at end of file
System Info ``` === Visual Studio Community 2019 for Mac === Version 8.5 (build 3183) Installation UUID: 718c9426-9b34-4dad-a550-66605f1e5527 GTK+ 2.24.23 (Raleigh theme) Xamarin.Mac 6.14.1.39 (d16-5 / 30e8706b4) Package version: 608000123 === Mono Framework MDK === Runtime: Mono 6.8.0.123 (2019-10/1d0d939dc30) (64-bit) Package version: 608000123 === Roslyn (Language Service) === 3.5.0-beta4-20125-04+1baa0b3063238ed752ad1f0368b1df6b6901373e === NuGet === Version: 5.4.0.6315 === .NET Core SDK === SDK: /usr/local/share/dotnet/sdk/3.1.200/Sdks SDK Versions: 3.1.200 3.1.102 MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/6.8.0/lib/mono/msbuild/Current/bin/Sdks === .NET Core Runtime === Runtime: /usr/local/share/dotnet/dotnet Runtime Versions: 3.1.2 2.1.16 === Xamarin.Profiler === Version: 1.6.13.11 Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler === Updater === Version: 11 === Apple Developer Tools === Xcode 11.4 (16134) Build 11E146 === Xamarin.Mac === Version: 6.14.1.39 (Visual Studio Community) Hash: 30e8706b4 Branch: d16-5 Build date: 2020-02-20 16:41:47-0500 === Xamarin.iOS === Version: 13.14.1.39 (Visual Studio Community) Hash: 30e8706b4 Branch: d16-5 Build date: 2020-02-20 16:41:48-0500 === Xamarin.Android === Version: 10.2.0.100 (Visual Studio Community) Commit: xamarin-android/d16-5/988c811 Android SDK: /Users/yauhenipakala/Library/Developer/Xamarin/android-sdk-macosx Supported Android versions: 7.0 (API level 24) 8.0 (API level 26) 8.1 (API level 27) SDK Tools Version: 26.1.1 SDK Platform Tools Version: 29.0.6 SDK Build Tools Version: 29.0.3 Build Information: Mono: c0c5c78 Java.Interop: xamarin/java.interop/d16-5@fc18c54 ProGuard: xamarin/proguard/master@905836d SQLite: xamarin/sqlite/3.28.0@46204c4 Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-5@9f4ed4b === Microsoft Mobile OpenJDK === Java SDK: /Users/yauhenipakala/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25 1.8.0-25 Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL === Android SDK Manager === Version: 16.5.0.39 Hash: 6fb4c79 Branch: remotes/origin/d16-5 Build date: 2020-02-20 23:25:56 UTC === Android Device Manager === Version: 16.5.0.71 Hash: 49194e8 Branch: remotes/origin/d16-5 Build date: 2020-02-20 23:26:18 UTC === 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 === Xamarin Designer === Version: 16.5.0.471 Hash: 35aa4889d Branch: remotes/origin/d16-5 Build date: 2020-02-25 00:52:08 UTC === Build Information === Release ID: 805003183 Git revision: 60e06e010baa677204535600661dda3fb4677c2f Build date: 2020-03-20 06:18:03-04 Build branch: release-8.5 Xamarin extensions: 60e06e010baa677204535600661dda3fb4677c2f === Operating System === Mac OS X 10.15.4 Darwin 19.4.0 Darwin Kernel Version 19.4.0 Wed Mar 4 22:28:40 PST 2020 root:xnu-6153.101.6~15/RELEASE_X86_64 x86_64 === Enabled user installed extensions === BinObjCleaner 1.5 MonoDevelop.TouchBar 1.0.3 DT.VS4Mac.SolutionName 1.2 Code Coverage 2.0.1-alpha ```

objcgen

objcgen works fine.

ghost commented 4 years ago

I followed the instructions and now objcgen command line generates ObjC from Xamarin ios.

This is closed. But I can't find a CLOSE button.