Base solution for your next web application
Open Closed

Unable to create Release builds #10696


User avatar
0
shedspotter created
  • What is your product version = 10.3.0
  • What is your product type = Angular
  • What is product framework type = .net core

Hi, we are using the default Xamarin forms project provided with ASP.net core and we are trying to create release builds but getting this error also tried with not linking the sdk's getting the same this is happening for both platforms.

We have also tried updating the dependent Abp nugets to the latest version from 6.3.0 to 6.5.0 but the issue exits.

Severity Code Description Project File Line Suppression State
Error Mono.Linker.MarkException: Error processing method: 'System.Void Abp.Auditing.AuditingInterceptor/<InternalInterceptAsynchronous>d__6`1::MoveNext()' in assembly: 'Abp.dll' ---> System.ArgumentNullException: Value cannot be null.
Parameter name: document
   at Mono.Cecil.Cil.SequencePoint..ctor(Int32 offset, Document document) in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil.Cil/SequencePoint.cs:line 61
   at Mono.Cecil.SignatureReader.ReadSequencePoints(Document document) in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil/AssemblyReader.cs:line 3870
   at Mono.Cecil.MetadataReader.ReadSequencePoints(MethodDefinition method) in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil/AssemblyReader.cs:line 2870
   at Mono.Cecil.Cil.PortablePdbReader.Read(MethodDefinition method) in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil.Cil/PortablePdb.cs:line 118
   at Mono.Cecil.Cil.CodeReader.ReadMethodBody() in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil.Cil/CodeReader.cs:line 108
   at Mono.Cecil.Cil.CodeReader.ReadMethodBody(MethodDefinition method) in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil.Cil/CodeReader.cs:line 59
   at Mono.Cecil.MethodDefinition.&lt;&gt;c.&lt;get_Body&gt;b__41_0(MethodDefinition method, MetadataReader reader) in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil/MethodDefinition.cs:line 154
   at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TRet& variable, TItem item, Func`3 read) in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil/ModuleDefinition.cs:line 989
   at Mono.Cecil.MethodDefinition.get_Body() in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil/MethodDefinition.cs:line 154
   at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
   at Mono.Linker.Steps.MarkStep.ProcessQueue()
   --- End of inner exception stack trace ---
   at Mono.Linker.Steps.MarkStep.ProcessQueue()
   at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue()
   at Mono.Linker.Steps.MarkStep.Process()
   at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
   at MonoDroid.Tuner.MonoDroidMarkStep.Process(LinkContext context)
   at Mono.Linker.Pipeline.ProcessStep(LinkContext context, IStep step)
   at Mono.Linker.Pipeline.Process(LinkContext context)
   at MonoDroid.Tuner.Linker.Process(LinkerOptions options, ILogger logger, LinkContext& context)
   at Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res)
   at Xamarin.Android.Tasks.LinkAssemblies.RunTask()
   at Microsoft.Android.Build.Tasks.AndroidTask.Execute() in /Users/builder/azdo/_work/1/s/xamarin-android/external/xamarin-android-tools/src/Microsoft.Android.Build.BaseTasks/AndroidTask.cs:line 17	SmartSuite.Mobile.Droid

Thanks


6 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Could you implement this change in your project. It basically adds <MtouchExtraArgs>--interpreter</MtouchExtraArgs> to Mobile.iOS.csproj

  • User Avatar
    0
    shedspotter created

    We are still getting this error after updating the MTouchArgument with --interpreter

    Error	Error processing the method 'System.Void Abp.Auditing.AuditingInterceptor/<InternalInterceptAsynchronous>d__6`1::MoveNext()' in the assembly 'Abp.dll': Value cannot be null.	SmartSuite.Mobile.iOS``
    
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @shedspotter

    Did you add this to a specific build or to all builds ? If so, could you try using the below version ?

    <MtouchExtraArgs>--interpreter=Abp</MtouchExtraArgs>
    

    Thanks,

  • User Avatar
    0
    shedspotter created

    I have added this --interpreter=Abp under mtouch argument seems like for Android I am able to deploy in release mode also able to create Build but when I install the apk it is crashing I have Also attached the logs for the same

    Severity Code Description Project File Line Suppression State Error Mono.Linker.MarkException: Error processing method: 'System.Void Abp.Auditing.AuditingInterceptor/<InternalInterceptAsynchronous>d__61::MoveNext()' in assembly: 'Abp.dll' ---> System.ArgumentNullException: Value cannot be null. Parameter name: document at Mono.Cecil.Cil.SequencePoint..ctor(Int32 offset, Document document) in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil.Cil/SequencePoint.cs:line 61 at Mono.Cecil.SignatureReader.ReadSequencePoints(Document document) in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil/AssemblyReader.cs:line 3870 at Mono.Cecil.MetadataReader.ReadSequencePoints(MethodDefinition method) in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil/AssemblyReader.cs:line 2870 at Mono.Cecil.Cil.PortablePdbReader.Read(MethodDefinition method) in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil.Cil/PortablePdb.cs:line 118 at Mono.Cecil.Cil.CodeReader.ReadMethodBody() in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil.Cil/CodeReader.cs:line 108 at Mono.Cecil.Cil.CodeReader.ReadMethodBody(MethodDefinition method) in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil.Cil/CodeReader.cs:line 59 at Mono.Cecil.MethodDefinition.<>c.<get_Body>b__41_0(MethodDefinition method, MetadataReader reader) in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil/MethodDefinition.cs:line 154 at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TRet& variable, TItem item, Func3 read) in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil/ModuleDefinition.cs:line 989 at Mono.Cecil.MethodDefinition.get_Body() in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/cecil/Mono.Cecil/MethodDefinition.cs:line 154 at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method) at Mono.Linker.Steps.MarkStep.ProcessQueue() --- End of inner exception stack trace --- at Mono.Linker.Steps.MarkStep.ProcessQueue() at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue() at Mono.Linker.Steps.MarkStep.Process() at Mono.Linker.Steps.MarkStep.Process(LinkContext context) at MonoDroid.Tuner.MonoDroidMarkStep.Process(LinkContext context) at Mono.Linker.Pipeline.ProcessStep(LinkContext context, IStep step) at Mono.Linker.Pipeline.Process(LinkContext context) at MonoDroid.Tuner.Linker.Process(LinkerOptions options, ILogger logger, LinkContext& context) at Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res) at Xamarin.Android.Tasks.LinkAssemblies.RunTask() at Microsoft.Android.Build.Tasks.AndroidTask.Execute() in /Users/builder/azdo/_work/1/s/xamarin-android/external/xamarin-android-tools/src/Microsoft.Android.Build.BaseTasks/AndroidTask.cs:line 17 SmartSuite.Mobile.Droid

  • User Avatar
    0
    shedspotter created

    Hi @ismcagdas is there any update on the issue becuase it is a major blocker for us,as we are not able to create mobile builds for testing. please resolve this issue as soon as possible. Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @shedspotter

    In our tests, upgrading to ABP 6.6.1 solved the problem and another customer published the app to store successfully. See https://github.com/aspnetzero/aspnet-zero-core/issues/4051#issuecomment-984393308. Can you try the same as well ?