I am trying to generate an archive of my iOS project but I can't, everything is working fine on debug mode but when I go to release mode the process fails, I am getting this error:
/myproject/packages/Xamarin.Forms.4.7.0.1080/build/Xamarin.Forms.targets(114,3): error MSB4018: The "XamlCTask" task failed unexpectedly.
/myproject/packages/Xamarin.Forms.4.7.0.1080/build/Xamarin.Forms.targets(114,3): error MSB4018: Mono.Cecil.Cil.SymbolsNotFoundException: No symbol found for file: /myproject/test/obj/iPhone/Release/test.exe
/myproject/packages/Xamarin.Forms.4.7.0.1080/build/Xamarin.Forms.targets(114,3): error MSB4018:
/myproject/packages/Xamarin.Forms.4.7.0.1080/build/Xamarin.Forms.targets(114,3): error MSB4018:
/myproject/packages/Xamarin.Forms.4.7.0.1080/build/Xamarin.Forms.targets(114,3): error MSB4018: Server stack trace:
/myproject/packages/Xamarin.Forms.4.7.0.1080/build/Xamarin.Forms.targets(114,3): error MSB4018: at Mono.Cecil.Cil.DefaultSymbolReaderProvider.GetSymbolReader (Mono.Cecil.ModuleDefinition module, System.String fileName) [0x000a4] in <02cd44f94ebd4355b3be9e1dbd9d77a1>:0
/myproject/packages/Xamarin.Forms.4.7.0.1080/build/Xamarin.Forms.targets(114,3): error MSB4018: at Mono.Cecil.ModuleReader.ReadSymbols (Mono.Cecil.ModuleDefinition module, Mono.Cecil.ReaderParameters parameters) [0x00032] in <02cd44f94ebd4355b3be9e1dbd9d77a1>:0
/myproject/packages/Xamarin.Forms.4.7.0.1080/build/Xamarin.Forms.targets(114,3): error MSB4018: at Mono.Cecil.ModuleReader.CreateModule (Mono.Cecil.PE.Image image, Mono.Cecil.ReaderParameters parameters) [0x00081] in <02cd44f94ebd4355b3be9e1dbd9d77a1>:0
/myproject/packages/Xamarin.Forms.4.7.0.1080/build/Xamarin.Forms.targets(114,3): error MSB4018: at Mono.Cecil.ModuleDefinition.ReadModule (Mono.Disposable1[T] stream, System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x0000d] in <02cd44f94ebd4355b3be9e1dbd9d77a1>:0 /myproject/packages/Xamarin.Forms.4.7.0.1080/build/Xamarin.Forms.targets(114,3): error MSB4018: at Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x0006c] in <02cd44f94ebd4355b3be9e1dbd9d77a1>:0 /myproject/packages/Xamarin.Forms.4.7.0.1080/build/Xamarin.Forms.targets(114,3): error MSB4018: at Mono.Cecil.AssemblyDefinition.ReadAssembly (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x00000] in <02cd44f94ebd4355b3be9e1dbd9d77a1>:0 /myproject/packages/Xamarin.Forms.4.7.0.1080/build/Xamarin.Forms.targets(114,3): error MSB4018: at Xamarin.Forms.Build.Tasks.XamlCTask.Execute (System.Collections.Generic.IList
1[System.Exception]& thrownExceptions) [0x0023e] in <194637163a754df3b62b8bf9aa013363>:0
/myproject/packages/Xamarin.Forms.4.7.0.1080/build/Xamarin.Forms.targets(114,3): error MSB4018: at Xamarin.Forms.Build.Tasks.XamlTask.Execute () [0x00000] in <194637163a754df3b62b8bf9aa013363>:0
/myproject/packages/Xamarin.Forms.4.7.0.1080/build/Xamarin.Forms.targets(114,3): error MSB4018: at (wrapper remoting-invoke-with-check) Xamarin.Forms.Build.Tasks.XamlTask.Execute()
/myproject/packages/Xamarin.Forms.4.7.0.1080/build/Xamarin.Forms.targets(114,3): error MSB4018: at (wrapper xdomain-dispatch) Xamarin.Forms.Build.Tasks.XamlTask.Execute(object,byte[]&,byte[]&)
/myproject/packages/Xamarin.Forms.4.7.0.1080/build/Xamarin.Forms.targets(114,3): error MSB4018:
/myproject/packages/Xamarin.Forms.4.7.0.1080/build/Xamarin.Forms.targets(114,3): error MSB4018: Exception rethrown at [0]:
/myproject/packages/Xamarin.Forms.4.7.0.1080/build/Xamarin.Forms.targets(114,3): error MSB4018: at (wrapper xdomain-invoke) Xamarin.Forms.Build.Tasks.XamlTask.Execute()
/myproject/packages/Xamarin.Forms.4.7.0.1080/build/Xamarin.Forms.targets(114,3): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00023] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-12/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs:575
/myproject/packages/Xamarin.Forms.4.7.0.1080/build/Xamarin.Forms.targets(114,3): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x002a9] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-12/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/Components/RequestBuilder/TaskBuilder.cs:818
Here are my computer details
=== Visual Studio Enterprise 2019 for Mac ===
Version 8.6.5 (build 23)
Installation UUID: 65aaf5c2-46d5-4ee1-9383-d27decdcf313
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)
Package version: 610000104
=== Mono Framework MDK ===
Runtime:
Mono 6.10.0.104 (2019-12/5d03a6fe116) (64-bit)
Package version: 610000104
=== Roslyn (Language Service) ===
3.6.0-3.20210.9+4eafdcb1bcbd8d3573f2ba6065e56d9b9ce4f8a3
=== NuGet ===
Version: 5.6.0.6591
=== .NET Core SDK ===
SDK: /usr/local/share/dotnet/sdk/3.1.301/Sdks
SDK Versions:
3.1.301
3.1.300
3.1.200
3.1.102
3.1.101
3.1.100
3.0.101
3.0.100
2.2.300
2.2.103
2.1.505
2.1.302
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/6.10.0/lib/mono/msbuild/Current/bin/Sdks
=== .NET Core Runtime ===
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
3.1.5
3.1.4
3.1.2
3.1.1
3.1.0
3.0.1
3.0.0
2.2.5
2.2.1
2.1.19
2.1.18
2.1.17
2.1.15
2.1.14
2.1.13
2.1.9
2.1.2
=== Xamarin.Profiler ===
Version: 1.6.12.29
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
=== Updater ===
Version: 11
=== Apple Developer Tools ===
Xcode 11.5 (16139)
Build 11E608c
=== Xamarin.Mac ===
Version: 6.18.2.1 (Visual Studio Enterprise)
Hash: 29c4ea731
Branch: d16-6
Build date: 2020-05-26 17:03:04-0400
=== Xamarin.iOS ===
Version: 13.18.2.1 (Visual Studio Enterprise)
Hash: 29c4ea731
Branch: d16-6
Build date: 2020-05-26 17:03:05-0400
=== Xamarin Designer ===
Version: 16.6.0.329
Hash: d4f8bcd13
Branch: remotes/origin/d16-6
Build date: 2020-04-24 02:16:02 UTC
=== Xamarin.Android ===
Version: 10.3.1.4 (Visual Studio Enterprise)
Commit: xamarin-android/d16-6/3a10de9
Android SDK: /Users/oscarumc/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
5.0 (API level 21)
5.1 (API level 22)
6.0 (API level 23)
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: 29.0.6
SDK Build Tools Version: 29.0.2
Build Information:
Mono: 165f4b0
Java.Interop: xamarin/java.interop/d16-6@2cab35c
ProGuard: xamarin/proguard/master@905836d
SQLite: xamarin/sqlite/3.31.1@49232bc
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-6@bfb66f3
=== Microsoft OpenJDK for Mobile ===
Java SDK: /Users/oscarumc/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_8.0.25
1.8.0-25
Android Designer EPL code available here:
=== Android SDK Manager ===
Version: 16.6.0.50
Hash: 5901879
Branch: remotes/origin/d16-6
Build date: 2020-06-10 22:42:50 UTC
=== Android Device Manager ===
Version: 16.6.0.96
Hash: 6e8b80b
Branch: remotes/origin/d16-6
Build date: 2020-06-10 22:43:28 UTC
=== Build Information ===
Release ID: 806050023
Git revision: 5289d413b99fddfc20b4ecf3e445ccb822213427
Build date: 2020-06-18 12:08:30-04
Build branch: release-8.6
Xamarin extensions: 5289d413b99fddfc20b4ecf3e445ccb822213427
=== Operating System ===
Mac OS X 10.15.5
Darwin 19.5.0 Darwin Kernel Version 19.5.0
Tue May 26 20:41:44 PDT 2020
root:xnu-6153.121.2~2/RELEASE_X86_64 x86_64