Bug 41999 - Could not AOT the assembly...Facebook.dll
Summary: Could not AOT the assembly...Facebook.dll
Status: RESOLVED DUPLICATE of bug 42139
Alias: None
Product: iOS
Classification: Xamarin
Component: Mono runtime / AOT compiler ()
Version: XI 9.8 (tvOS / C7)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: C7SR1
Assignee: Zoltan Varga
Depends on:
Reported: 2016-06-20 15:24 UTC by David Ortinau [MSFT]
Modified: 2016-06-24 01:04 UTC (History)
6 users (show)

Is this bug a regression?: Yes
Last known good build: XI 9.6

Environment details (1.79 KB, text/plain)
2016-06-20 15:24 UTC, David Ortinau [MSFT]
new environment (1.69 KB, text/plain)
2016-06-22 01:49 UTC, David Ortinau [MSFT]
build output (215.46 KB, text/plain)
2016-06-22 16:49 UTC, David Ortinau [MSFT]

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description David Ortinau [MSFT] 2016-06-20 15:24:24 UTC
Created attachment 16406 [details]
Environment details

Added the Facebook iOS SDK and I cannot compile and deploy to my device in debug. The error is 

/work/rendr/audiograph/AudioGraph/iOS/MTOUCH: Error MT3001: Could not AOT the assembly '/work/rendr/audiograph/AudioGraph/iOS/obj/iPhone/Debug/build-iphone8.4-9.3.2/mtouch-cache/Build/Facebook.dll' (MT3001) (AudioGraph.iOS)

I'm seeing a discussion on the Forums about this issue, but didn't find any bug logged.


I've cleaned, rebooted, wiped bin/obj, rebuilt, etc. 

Is there a workaround or solution? 

Didn't know if this issue belonged here or elsewhere. Apologize if it's misplaced.

Comment 1 Vincent Dondain [MSFT] 2016-06-21 14:28:50 UTC
Hi David,

I could not reproduce that bug using a new iOS app project and adding the Facebook iOS SDK (v4.12.0) to it.

We'd need a test case to help track this down because the issue could have multiple causes, therefore we need to have the same binary and options as you.

Could you please link a test project to that bug?
Comment 2 jstawski 2016-06-21 23:02:28 UTC
I have ran into the same issue. More info: http://stackoverflow.com/questions/37955458/could-not-aot-the-assembly-facebook-dll-mt3001
Comment 3 David Ortinau [MSFT] 2016-06-22 01:49:24 UTC
I just installed updates today to see if I could send you a solution demonstrating this issue and the project runs. I also note that there was a release today of bug fixes as I compare my current environment with the environment from yesterday that had this issue for me. 

I have also confirmed today's release seems to have fixed this issue in my client solution. 

Current environment attached.

Comment 4 David Ortinau [MSFT] 2016-06-22 01:49:50 UTC
Created attachment 16433 [details]
new environment
Comment 5 jstawski 2016-06-22 03:35:41 UTC
I am still having the same problem with the latest build
Comment 6 David Ortinau [MSFT] 2016-06-22 16:39:36 UTC
And I was wrong, still getting the error when building for device. Sleep deprived, sorry.

I have a sample project that works fine, UNTIL I matched my build settings to my client project. Now I get the AOT error.

Sample Project:

Build Settings:
Comment 7 David Ortinau [MSFT] 2016-06-22 16:49:29 UTC
Created attachment 16441 [details]
build output

Perhaps this would help, it's my build output. 

No matter my build settings, I'm no longer able to get this solution to build for device. Repeatedly cleaning, building, deleting bin/obj....
Comment 8 David Ortinau [MSFT] 2016-06-22 17:31:51 UTC
These settings built successfully: https://www.dropbox.com/s/s47tbg3dzuufcqw/Screenshot%202016-06-22%2012.23.24.png?dl=0

I turned back on Incremental Builds and the AOT is back.
Comment 9 David Ortinau [MSFT] 2016-06-22 17:52:20 UTC
And confirmed these settings with Incremental Builds turned off works in my client project as well.


So what's up with the Incremental Builds option? Or is this coincidence that I can build/not build depending on changing that setting?

Comment 10 Claudio Redi 2016-06-22 18:20:37 UTC
Although disabling Incremental Builds works great (thanks David!) this option helps to have a fastest deploy so disabling may affect capacity to test frequently on real devices.

I'd love to see a definitive solution without involving Incremental Builds
Comment 11 Brendan Zagaeski (Xamarin Team, assistant) 2016-06-24 01:04:17 UTC
Thanks for the report!

*** This bug has been marked as a duplicate of bug 42139 ***