MTOUCH : error MT3001: Could not AOT the assembly
See original GitHub issueI’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:
- Created 5 years ago
- Reactions:2
- Comments:11 (5 by maintainers)
Top GitHub Comments
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.
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
andHKT
, but obviously if you want the transformer extension methods then the problem will continue.