question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MTOUCH : error MT3001: Could not AOT the assembly

See original GitHub issue

I’ve encountered a pretty strange issue when building on certain machines where the build will fail:

MTOUCH : error MT3001: Could not AOT the assembly '/Library/TeamCity/buildAgent/work/dd40a4b36aa73d6e/iOS/obj/iPhone/Debug/mtouch-cache/3-Build/LanguageExt.Core.dll' [/Library/TeamCity/buildAgent/work/dd40a4b36aa73d6e/iOS/Project.iOS.csproj]

This, most importantly, fails on both of our build servers. So definitely a clean build each time. One dev also has this issue, while the other can build with no issue.

I’ve spent ages trying to determine the difference and had no luck whatsoever. Xamarin versions are the same, VS up to date, xcode versions are identical, I’ve checked LLVM is the same… Build logs don’t have anything that sticks out in them, all seems to go fine until that point. I have also tried -linkskip=LanguageExt.Core with no joy.

if I revert to 3.0.31 the build passes on all machines. I’ve tried 3.1.13, 3.1.14 and 3.1.10

I know I am probably not giving you much to go on. I know you’re pretty busy right now, for the moment, bumping to 3.0.31 is fine, if you can suggest anything I may have missed…

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mrpantsuitcommented, Jan 4, 2019

I solved this by turning on “Link All” then adding --linkskip for all my assemblies except LanguageExt and all the Xamarin assemblies. Not an ideal solution, but a workable one.

0reactions
louthycommented, Feb 5, 2019

I assume this is because the HKT T4 templates generates a ton of extension methods, and that might be pushing some limit. It’s potentially possible to split lang-ext into Core and HKT, but obviously if you want the transformer extension methods then the problem will continue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not AOT the assembly of my App
Hello,. I have an app written in xamarin forms, targeting xamarin.android and xamarin.iOS. Since the UIWebView deprecation ...
Read more >
MT3001 Could not AOT the assembly · Issue #9289
I'm not able to build the project, but trying to compile the .dll is enough to confirm that this is a mono AOT...
Read more >
Xamarin Forms - iOS - error MT3001: Could not AOT the ...
Xamarin Forms iOS project was building yesterday 10/10/19. Updated to latest components on Mac & Windows today, project no longer builds.
Read more >
Could not AOT the assembly - Developer Community
When performing an iOS build of a Xamarin Forms application, I receive the error MT3001, 'Could not AOT the assembly SixLabors.
Read more >
MTOUCH : error MT3001: Could not AOT the assembly / I'm ...
Hi Support and community. I'm stuck on the release of our new app. On the release build I get MTOUCH : error MT3001:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found