Open danim-hub opened 4 years ago
Would it be possible to attach Logistics.Sales.dll itself at least?
Without a sample, we can't dig into the AOT error.
I made a very simplified version of the project.
Please remove the .txt extension as the file is a tgz.
I think the offending line is in class InventoryReportTemplate:
#line 6 ""
I can reproduce the AOT issue with the provided sample.
It only happens first few times I build, after awhile it seems to fix itself even after a clean. Something strange is going on.
@jonathanpeppers this could be a bin/obj thing, could you have a look?
I think https://github.com/xamarin/xamarin-macios/issues/8957 might be a duplicate re-filed by the customer, or a related issue.
Hi Chris. That is another issue, although the scenario is very similar, it is not identical. When preparing the repro for this MT3001, I also got an MT5106 error, and the error message instructed to file an issue.
The repro is very similar but it has a couple of changes in a single file, and results in a different error code and message.
I hope this lets you catch two different bugs, but it is possible that both have the same cause
Thanks for your help
On Mon, Jun 29, 2020 at 10:25 AM Chris Hamons notifications@github.com wrote:
I think #8957 https://github.com/xamarin/xamarin-macios/issues/8957 might be a duplicate re-filed by the customer, or a related issue.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xamarin/xamarin-macios/issues/8944#issuecomment-651192282, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFJTYGVFKMY4T7K7H7SHZPTRZCW7NANCNFSM4OGZVB3Q .
I don't think this is a bin/obj problem, because the first build fails for me (or even Rebuild):
% msbuild Sales.sln /p:Configuration=Release /p:Platform=iPhone /r /t:Rebuild
...
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk -Qunused-arguments -miphoneos-version-min=9.0 -arch arm64 -c -o /Users/jopepper/Downloads/logistics/Sales.iOS/obj/iPhone/Release/mtouch-cache/arm64/Xamarin.iOS.dll.o -x assembler /Users/jopepper/Downloads/logistics/Sales.iOS/obj/iPhone/Release/mtouch-cache/arm64/Xamarin.iOS.dll.s
MTOUCH : error MT3001: Could not AOT the assembly '/Users/jopepper/Downloads/logistics/Sales.iOS/obj/iPhone/Release/mtouch-cache/3-Build/Logistics.Sales.dll'
If I comment out one line in Sales.Share/Reports/InventoryReportTemplate.cs
:
//#line 6 ""
this.Write("\r\n<Styl|Arial|50|Bold>\r\n<TexC|");
The problem goes away. I don't think I actually know how to fix this, @chamons could this be a problem with Mono AOT in general? I think it's probably something with this #line
preprocessor:
I don't see how the problem could "fix itself" as described in: https://github.com/xamarin/xamarin-macios/issues/8944#issuecomment-650262812
There might be a second problem with incremental builds after a failure.
I'm not sure if I should open a new issue for this or not, but we're seeing this same issue on Microsoft.Diagnostics.Runtime
version 2.0.222201
/Users/dean/Projects/osu/osu.iOS/MTOUCH: Error MT3001: Could not AOT the assembly '/Users/dean/Projects/osu/osu.iOS/obj/iPhone/Release/mtouch-cache/3-Build/Microsoft.Diagnostics.Runtime.dll' (MT3001) (osu.iOS)
@peppy
I'm not sure if I should open a new issue for this or not
When in doubt (and even when not too) always open a new issue. It's easy to merge two identical issues, but can turn out very confusing to have two separate problems in the same issue (and most likely one of them will end up not getting fixed).
So please file a new issue, and at the very least attach your diagnostic build log as the new issue template requests.
I am getting this error compiling a Xamarin.Forms on Visual studio for Mac, targeting Release|iPhone /Users/danim/apps/logistics/Sales.iOS/MTOUCH: Error MT3001: Could not AOT the assembly '/Users/danim/apps/logistics/Sales.iOS/obj/iPhone/Release/mtouch-cache/3-Build/Logistics.Sales.dll' (MT3001) (Logistics.Sales.iOS)
It started happening with no apparent reason. This particular branch haven't had any commit since Jun 3rd, so I cannot tell exactly when it stopped compiling.
In Android it works fine.
It only happens in Release|iPhone mode. On Debug|iPhone it compiles, installs and runs fine.
I found online several workarounds for similar issues from 1 to 3 years old, but with no luck:
Steps to Reproduce
Expected Behavior
The compiler generates an ipa
Actual Behavior
I get this error: /Users/danim/apps/logistics/Sales.iOS/MTOUCH: Error MT3001: Could not AOT the assembly '/Users/danim/apps/logistics/Sales.iOS/obj/iPhone/Release/mtouch-cache/3-Build/Logistics.Sales.dll' (MT3001) (Logistics.Sales.iOS)
Environment
Using visual studio 8.6.5 for mac, last updated today Jun 24 2020
Build Logs
build.log
Example Project (If Possible)
Sorry no example minimum project yet. I am attaching the csproj for reference hope it helps
Logistics.Sales.iOS.csproj.txt