Xamarin-macios: iOS: Could not AOT the assembly ..... Firebase.CloudMessaging.dll

Created on 21 Jul 2020  路  8Comments  路  Source: xamarin/xamarin-macios

Description

When trying to build a Release build error:
Could not AOT the assembly '/Users/****************.iOS/obj/iPhone/Release/mtouch-cache/3-Build/Firebase.CloudMessaging.dll'

Building for Debug works.

Expected Behavior

Build Successful

Actual Behavior

Could not AOT the assembly

Basic Information

macOS Mojave version 10.14.6
Visual Studio for Mac version: 8.6.5 (build 23)
Xcode version 11.1
Xamarin Forms version 4.7.0.1080
Xamarin.iOS version 13.4.0.2

need-info

All 8 comments

Thank you for your feedback @sotnaspina!

For us to investigate this further, could you please provide your full build logs, crash reports (if any), and a small sample solution that reproduces the issue? A test case is the best way for us to start investigating this issue.

To get full build logs just set the log verbosity to diagnostic at the following locations:

  • On Visual Studio for Mac: Preferences > Projects > Build
  • On Visual Studio for Windows: Tools > Options > Projects and Solutions > Build and Run

@whitneyschmidt thank you for your feedback!

Build error:

Log Build Error - Xamarin Forms iOS.txt

@sotnaspina Thanks for uploading your build log!

It appears that this specific assembly, Firebase.CloudMessaging.dll is the assembly in question that isn't being AOTed correctly in Release:

MTOUCH : error MT3001: Could not AOT the assembly '/Users/emioloi9mac/projects/OrubyLogNotificacao/OrubyLogNotificacao/OrubyLogNotificacao.iOS/obj/iPhone/Release/mtouch-cache/3-Build/Firebase.CloudMessaging.dll'

We need an example project using that assembly that shows this issue to move this to the runtime team. It is exceptionally difficult to fix a miscompile without a sample showing it.

A rough description of how our build works (borrowed heavily from this developer community thread):

Source Code --csc compiler--> Dll & EXE files (IL) --AOT compiler--> native executable

The problem is that an input to the AOT compiler (Firebase.CloudMessaging.dll) is causing the AOT compiler to fault.

For us to investigate further, could you provide one or both of the following:
1) The entire project, or a small sample subset, showing the problem would allow us full build and reproduce it.
2) At a bare minimum, if we had the entire bin directory of a build, we likely could do the same.

In any case, we need to be able to reproduce the issue to give the runtime compiler team an issue they can reasonably fix.

@whitneyschmidt thanks for the review!

Follow the /bin folder:
bin.zip

@sotnaspina We were able to test this out and reproduce it using the same build of Xamarin.iOS that you have.

Testing it out with a newer version of Xamarin.iOS (13.18.0.23) didn't reproduce the issue.

We believe that it's fixed in the latest version of of Xamarin.iOS/Xamarin.Mac. Could you try updating + building with the latest release?

@whitneyschmidt thanks for the review!

I will try to use the latest version.

Thank you for your support.

@sotnaspina Happy to help! Let us know if that solves the problem.

Closing this as it's been a couple of weeks. If you are still experiencing this issue please provide all the requested information then click the Reopen Issue button.

Thanks!

Was this page helpful?
0 / 5 - 0 ratings